Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Variable Problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-24-2008, 12:48 PM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Unhappy 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
__________________
X-Cart Version 4.2.3
Reply With Quote
  #2  
Old 11-24-2008, 12:49 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Variable Problem

Clear your template cache using the summary/tools link.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-25-2008, 05:34 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Default 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?
__________________
X-Cart Version 4.2.3
Reply With Quote
  #4  
Old 11-25-2008, 05:44 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-25-2008, 05:48 AM
 
John Ling John Ling is offline
 

Advanced Member
  
Join Date: Dec 2007
Posts: 42
 

Default 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.
__________________
X-Cart Version 4.2.3
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:07 PM.

   

 
X-Cart forums © 2001-2020