X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Variable Problem (https://forum.x-cart.com/showthread.php?t=43851)

John Ling 11-24-2008 12:48 PM

Variable Problem
 
Hi everyone,

I'm having a small problem with a language variable I created.

It shows up if I test it in head.tpl with this:
{$lng.lbl_test_variable}

However, if I put this line anywhere in the product.tpl file, nothing shows up. :(

Does anyone know why this is happening? Does it have something to do with product.php?

Thanks,
John

balinor 11-24-2008 12:49 PM

Re: Variable Problem
 
Clear your template cache using the summary/tools link.

John Ling 11-25-2008 05:34 AM

Re: Variable Problem
 
Hi Balinor,

Thanks for the reply. I tried that and the force generation tool. Problem is still there. Whats weird is that some language variables work and some don't in the same location. All the variables show up perfectly normal in the admin and other parts of the store.

Is there anything else that could restrict certain variables from being read through product.tpl?

balinor 11-25-2008 05:44 AM

Re: Variable Problem
 
No, it should work fine no matter what template you place it in. I've had issues with this in the past on other client sites - usually the clear cache tools do the trick. Clear your browser cache as well, and try it in another browser.

John Ling 11-25-2008 05:48 AM

Re: Variable Problem
 
Ok thanks for the help. I guess I will have to play with it and hope for the best. I'll try creating a new variable and test that as well.


All times are GMT -8. The time now is 02:21 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.