| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
product.tpl image display!!!!! | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
product.tpl image display!!!!!
Hi All
Still having trouble with the product tpl. The problem i need resolving is as follows:- i have a number of featured products which include thumbnail images, when the product is clicked for more details and the product.tpl is displayed i want to have a detailed image displayed, if there is no detailed image i want the thumbnail to display instead and if there is no thumbnail then i have added a new no_image.tpl which includes an graphic stating there isn't a picture of the product. i've tried using the code below to swap the detailed image for my new tpl if there is no detailed image but this won't even work so any help would be great!! {section name=image loop=$images} {if $images[image].avail eq ""} [img]../product_image.php?imageid={$images[image].imageid}[/img] {else}{include file="customer/main/noimage.tpl" }{/if} {/section} regards jon
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
#2
|
|||||||
|
|||||||
I did a slight variation on this which shows the first detailed product image instead of the thumbnail.
First I cretaed a new template in modules/detailed_product_images/product_images_main.tpl Code:
Then amended the product.tpl template to show the code below where you want the detailed image to show: Code:
This will show the detail image if there is one, if not then show the thumbnail and if there isn't one of those then the standard no image icon will appear. You will need to load a new personalised one up.
__________________
ex x-cart guru |
|||||||
#3
|
|||||||
|
|||||||
Please note that unless you modify the product images template then the first detail image will show twice. If you dont want this then amend code to the following:
Code:
btw this show two images per row.
__________________
ex x-cart guru |
|||||||
#4
|
|||||||
|
|||||||
Question About This Mod
What happens if you have more than one detailed images?
Where do the other images go? |
|||||||
#5
|
|||||||
|
|||||||
They just show up as normal in the detailled images area on the product page.
__________________
ex x-cart guru |
|||||||
#6
|
|||||||
|
|||||||
Thanks
Awsome!!!!!!!!!!!
|
|||||||
#7
|
|||||||
|
|||||||
A client needed it this way so I built it.
That is the beauty of x-cart...it can do almost anything
__________________
ex x-cart guru |
|||||||
#8
|
|||||||
|
|||||||
One more thing
I saw it mentioned that it displays two products per row.
How can we make it display one product per row. I'm about to implement your mod. This is cool. What I have already done is delete the icon dispay code and move the detailed image code in its place, but I think your mod will work much better. Thanks |
|||||||
#9
|
|||||||
|
|||||||
change it to:
Code:
__________________
ex x-cart guru |
|||||||
|
|||
X-Cart forums © 2001-2020
|