Multiple Images per product.

General ShopSite user discussion

Multiple Images per product.

Postby pigfox » Tue Jan 09, 2007 8:19 pm

My client wants many diffrent images (graphics) per product, ie, side, top, angle view etc. This is done in a custom template.
Does anyone know?
pigfox
 
Posts: 5
Joined: Mon Jan 08, 2007 9:11 pm

Postby Jim » Tue Jan 09, 2007 9:59 pm

ShopSite provides for 2 images per product, the product image and the moreinfo image. If you need additional images you can do it in several ways.

1. Hard code the image urls into the product description (or moreinfo description) text fields.
2. Use the custom product fields (pro stores) to contain additional complete image urls. Then where you want the images displayed just use the tag [-- product.fieldx --] where x is a number 1-5 for the field corresponding to the image you want.
3. Use one of the custom product fields to contain a base name for the image and then in your custom template build the urls for the other images based on the base name + the angle direction. This would require that all images have a specific naming convention i.e. myimagetop.jpg, myimageleft.jpg, myimageright.jpg etc. If custom product field 1 is used for the base image name and it contains "myimage" then your custom template would supply the initial image url path to the media directory, the tag for product field 1, the angle direction + the extention.
for example where you want to display a top view you would have

< img src="[-- STORE.Output_URL --]/media/yourpath/[-- PRODUCT.Field1 --]top.jpg" ... >

You could add space, alt text, height and width etc by using other custom fields or if the images are all the size you could hard code that into the image tag also where the ... is.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 81 guests

cron