| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
First detailed image instead of thumbnail | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
First detailed image instead of thumbnail
Ever wanted to replace the thumbnail on the product page with the first image from your detailed images and then have your detailed images section start with the second detailed image?
Well here is how to do it This code is for the 4.0 branch (the version for 3.4 and 3.5 is very similar) You need to modify two files: customer/product.tpl modules/detailed_product_images/product_images.tpl You will also need to make a new file: modules/detailed_product_images/product_images_one.tpl In product.tpl find this: Code:
replace with this: Code:
Then in product_images.tpl find this: Code:
Replace with this: Code:
Make a new file in modules/detailed_product_images called product_images_one.tpl Put this code in it: Code:
That's it |
|||||||
#2
|
|||||||
|
|||||||
hi light speed um could u give us an example of the mod or give us a link to your site that shows an example of this mod that would be great
__________________
www.supremeroofing.co.nz |
|||||||
#3
|
|||||||
|
|||||||
Don't really need an example, it does just what it says Nice one...moving it to Custom Mods.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||
|
|||||||
Quote:
Yeah it's pretty straight forward I have boomers cart-lab tabbed mod installed also and you can see my little mod works fine with that |
|||||||
#5
|
|||||||
|
|||||||
lol
oh cool nice mod sorry for my dumbness
__________________
www.supremeroofing.co.nz |
|||||||
#6
|
|||||||
|
|||||||
Thanks!
|
|||||||
#7
|
|||||||||
|
|||||||||
Hey,
Really cool mod and was looking for a long time and you saved my time a lot.. cheers !!!!!
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
#8
|
|||||||
|
|||||||
Glad to help!
|
|||||||
#9
|
|||||||
|
|||||||
Love it!
Works great! Does anyone know how this could be modified so the "detailed images" box only shows up if there are more than one detailed image? I have lots of products with only one image, and I now have one detailed image on top (nice) but a big old empty dialog box at the bottom. Looks like there is something missing.
Thanks again for the great mod!
__________________
x-cart 4.0.14 |
|||||||
#10
|
|||||||
|
|||||||
Re: Love it!
Quote:
There is probably a way to set an if statement at the detail dialog insert but I am too swamped to look into it. Maybe somebody else can take a stab at it? |
|||||||
|
|||
X-Cart forums © 2001-2020
|