| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Calling a .tpl in production description | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hey all,
I noticed that its not possible to call a .tpl file from the product description (at least using the usual method used throughout x-cart) but is there a way of doing this? We have a lot of regular content that spans many products that we'd like to be able to update by modifying a single .TPL as opposed to editing each product.
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#2
|
|||||||
|
|||||||
![]() You don't need to call a tpl, just put a language variable in customer/main/product.tpl just under the product description and use {if} statements to determine what products get it.
Or, to make life even easier, just put the content in Extra Fields and then you can easily control what product gets what content.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks Balinor,
If I wanted to limit what is displayed depending the name of the category, what might the if statement look like?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#4
|
|||||||
|
|||||||
![]() {if $cat eq "1"}
show this {elseif $cat eq "2"} show that etc The number is the corresponding number of the category.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Thanks again,
It appears x-cart is limiting me to 10 extra fields -- is there a workaround for this?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() Got it - in the module settings for 'extra fields'
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World - Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com) X-Cart Version 4.1.10 |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|