| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Alter product.tpl for one product | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Is there an IF statement that I can use to change the look and feel of the product.tpl file for one particular product? V 4.1.8
TIA!
__________________
~ Andrea Beight |
|||||||||
#2
|
|||||||
|
|||||||
![]() At least 2 ways to do this:
1. Buy WebsiteCM's "multiple product page templates" mod (I did) 2. CLONE your product.tpl -- for example, if you have 2 "unique" products -- call them 01_product.tpl and 02_product.tpl then, in /skin1/customer/home_main.tpl FIND: Code:
Code:
If you have more than a few unique product layouts, Jon's mod can be an invaluable time saver. I am happy I am using the mod. He also has a mod for unique categories. Works great.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Thank you for your suggestions. I will give the second one a shot first. I only need to change the layout for one product, but I can see how Jon's mod would be very helpful if you wanted several different product layouts.
![]()
__________________
~ Andrea Beight |
|||||||||
#4
|
|||||||
|
|||||||
![]() $product.categoryid
may need to be $product.productid not sure on this -- you can fish it out in webamster mode with your smarty template engine set to debug in file, smarty.php find: $smarty->debug_tpl = "file:debug_templates.tpl"; change to: #$smarty->debug_tpl = "file:debug_templates.tpl"; $smarty->debug_tpl = "file:debug.tpl"; (then turn on webmaster mode)
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() I finally got around to using this and wanted to let you know that your code worked like a charm! Thank you so much!
__________________
~ Andrea Beight |
|||||||||
|
|||
X-Cart forums © 2001-2020
|