I would like to make the product image thumbnail, link to a new page showing the full size image. Just in the view_product page, not the product list.
Is there a way to do that?
Bob
Add a link to the product image
7 posts
• Page 1 of 1
Add a link to the product imageI would like to make the product image thumbnail, link to a new page showing the full size image. Just in the view_product page, not the product list.
Is there a way to do that? Bob
I expanded on the idea of having a link to a larger image. I created new fields in the products table for image_two, image_three etc. and made changes to the templates>view_product.html page so that multiple thumbnails can be seen, and each one can be clicked for an enlarged view in a new window.
This works OK, but I would like to tweak it a bit. Right now, If there is only one image for the product, then a missing image icon is displayed for any missing images. What I would like to do, is have the app check the products table to see if image_two is null, and if it is, use code to display only product_image, if it is not null then use code to display product_image and image_two. I was thinking that an if else would probably work for this, but being new to php I don't know the mechanics of checking the table for the values. Any help would be appreciated. Thanks Bob
Wow. I'm surprising myself.
I managed to get the if and else working to display either multiple thumbnails or a single thumbnail. I would like to post the complete code but much of it is getting stripped out by phpbb. Here is the basic info.
I plan to expand this so that up to 4 thumbnails can be displayed by adding elseif sections. Bob
7 posts
• Page 1 of 1
Return to Web Auction Discussion Who is onlineUsers browsing this forum: No registered users and 15 guests |