by ShopSite Lauren » Mon Mar 16, 2015 9:03 am
ShopSite only has 21 (20 extra, 1 original) more information page image fields. However, I have seen some merchants/designers create custom templates and use PHP or JavaScript and one extra product field to display as many images as they want.
PHP
For example, with PHP, I have seen designers write code where the merchant enters the beginning of the image file name, and the PHP code 'looks' through the media folder and displays all images that have that code at the beginning of the file name.
So the merchant might type "shirt" into an extra product field. Then the PHP would show all the following images in the media folder:
shirt1.jpg
shirt2.jpg
shirt3.jpg
shirt4.jpg
shirt5.jpg
...
JavaScript
An example with JavaScript would be where merchants type all the image file names that they would like displayed, separated by a pipe bar or comma. For example, the merchant would type the following into one of the extra product fields:
shirt1.jpg|shirt2.jpg|shirt3.jpg|shirt4.jpg|shirt5.jpg
and the javascript would separate out all those images as an array and display the images on the more information pages.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.