| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Can you use PHP code in Smarty templates? | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
Solution
Same thing was driving me crazy for a while last night, the answer was staring me right in the face all the time but it was so simple I couldn't see it until the very last minute then it hit me.
In the include file from smarty level do this: Lets say you want to include the above in product.tpl: Put Code:
In product.tpl Notice I'm passing the productcode via smarty. Now in whatever.tpl Put Code:
And your home and dry. Note: Include() is dependant on server PHP configuration, looks like you're trying to pull in a product page from another site so keep in mind PHP may be set up in such a way that it doesn't let you do remote includes.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#12
|
|||||||
|
|||||||
Groovico,
You are the X-cart KING!! You gave me the resolution to an issue I've been trying to solve for months! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! ATKOgirl |
|||||||
|
|||
X-Cart forums © 2001-2020
|