Extra More Info Image Fields

General ShopSite user discussion

Extra More Info Image Fields

Postby lhennings » Fri Mar 13, 2015 9:48 am

We have products on our site that require more than 20 picture options. We sell apparel so I have some sku's that have upwards of 60 color options. Are you adding additional options for more pictures?
lhennings
 
Posts: 3
Joined: Fri Mar 13, 2015 9:14 am

Re: Extra More Info Image Fields

Postby 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.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 88 guests