| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Passing Variables between tpl files. | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Passing Variables between tpl files.
I think this is a basic question. I know php well but not smarty.
Any given X-Cart page loads many tpl files, which can be identified in the debug console. If I assign a variable in a tpl file. Code:
and the wish to call that variable in a different tpl that is loaded later it does not seem to be there. If these tpls are loaded just like standard php includes this should work, but it doesn't. The only two things I can think of is that these tpls are not loaded like standard php includes or the Debug console is not listing the tpls in the order they are loaded. Any suggestions? Thank you. Jed
__________________
Jed Herzog Gold X-Cart 4.0.17 http://www.outliersolutions.com Portland Advertising Agency, Portland Web Design |
|||||||
#2
|
|||||||
|
|||||||
Re: Passing Variables between tpl files.
Quote:
Code:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#3
|
|||||||
|
|||||||
humm..
what if you have one file with two includes. Main.tpl Code:
and you define a variable in the first include "file1.tpl" but want the second include "file2.tpl" to have access to it. You are not including the second include in the first. Rather it is just loading after it. Is this possilbe?
__________________
Jed Herzog Gold X-Cart 4.0.17 http://www.outliersolutions.com Portland Advertising Agency, Portland Web Design |
|||||||
#4
|
|||||||
|
|||||||
Quote:
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#5
|
|||||||
|
|||||||
Okay, thanks for your help.
I have decided to explain why I want this functionality in case someone has a good idea. This new post is http://forum.x-cart.com/viewtopic.php?t=27609
__________________
Jed Herzog Gold X-Cart 4.0.17 http://www.outliersolutions.com Portland Advertising Agency, Portland Web Design |
|||||||
|
|||
X-Cart forums © 2001-2020
|