Author |
Topic |
|
Crumplezone
Starting Member
United Kingdom
12 Posts |
Posted - September 13 2006 : 08:11:06
|
Again, apologies if this is a dumb question.
I want thumbnail images for sub products to display below the main product image in shopdisplayproducts.asp.
I've managed to set up the pother fields to upload these images, but the help notes aren't very helpful on how exactly to get them to display.
Any help appreciated. |
|
ironhawker
VP-CART Super User
USA
260 Posts |
Posted - September 15 2006 : 00:52:02
|
So make small images and include them in the small image entry of each sub-product when you are entering them. If you have different size images you may want to control the width "or" the height in one of your templates- or the default templates, but not both.
~-~-~-~-~-~-~-~-~-~ Randy "RC" Corn Institute of Higher Learning
[email protected] 425-828-0738 |
|
|
Crumplezone
Starting Member
United Kingdom
12 Posts |
Posted - September 15 2006 : 07:59:39
|
I've done that, but they don't display.
I've read the help notes and a similar post on this subject.
Help notes say
Multiple Images Per Product
To display multiple images for a product, you can use the pother fields in the product record to hold the references to the extra images.
If you wish to set up the pother fields to have the image upload button like the Image fields do, you need to make the following code change:
1. Open shop_addproduct.asp
2. Locate the following line:
PCreateRow getlang("LangProductOther1"),"strPother1", strPother1
(if you want to change another pother field, rather than pother1, just find the line that corresponds to the pother field you want to change)
3. Change it to:
PCreateRowImage getlang("LangProductOther1"),"strPother1", strPother1, "pother1"
Then you just need to add the extra field to your template, whereever you want it to display (put a $ symbol at the front of each line to stop that html line from showing up if you haven't uploaded an extra image to the new image field).
eg: table border=0 cellpadding=0 cellspacing=0> tr> $td>img src="[pother1]">/td> $td>img src="[pother2]">/td> /tr> /table>
All I need to know is _which_ template to insert this code into. I've done everything else up to 'Then you just need to' |
Edited by - Crumplezone on September 15 2006 08:01:20 |
|
|
Scooter
VP-CART New User
USA
102 Posts |
Posted - September 15 2006 : 08:06:44
|
hi
You open tmp_product.htm an add your code
<img src="[pother3]" alt="[pother4]">
I made pother4 alt name in my local site.
Use $ at front and it hide line if field empty.
$ <img src="[pother3]" alt="[pother4]">
Other template ius tmp_productfirmat.htm
Hope this helps. Really very easy to do but take a bit to find things at start. :-)
S. |
|
|
Crumplezone
Starting Member
United Kingdom
12 Posts |
Posted - September 15 2006 : 10:07:48
|
Thanks. Sounds like that should do it. |
|
|
go4gold
VP-CART New User
151 Posts |
Posted - December 03 2006 : 17:42:43
|
Hi,
As a follow up to this question on multiple images, I found the instructions very useful and have successfully adapted 3 of the "other" fields to accept images - thank you. My question is can I change the description of these fields so instead of showing "other3", "other4" and "other5", they can instead say "image 2", "image 3" and "image 4". I will be giving many people access to add their own products and changing the descriptions in this way will I am sure help them.
Many thanks for any guidance anyone can give.
Go4Gold |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
|
go4gold
VP-CART New User
151 Posts |
Posted - December 03 2006 : 23:46:42
|
Many thanks devshb, much appreciated.
Go4Gold |
|
|
|
Topic |
|