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

Labels do not display on an new form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-02-2008, 01:42 PM
 
RichardJ RichardJ is offline
 

Newbie
  
Join Date: Jan 2008
Posts: 3
 

Default Labels do not display on an new form

Hello,

I have a created a new module that collects some follow-up information from a Customer after a purchase. The module works fine, except for form labels.

Two examples:
1. {$lng.lbl_Customer} a standard string distributed with X-Cart does not display (note: languages.topic="Labels")

2. {$lng.txt_modify_sp_profile} a new string I created in Languages works fine (note: languages.topic="Text")

I am guessing that I failed to initialize something regarding the languages table. If I change the Topic of the "my" string from "Text" to "Labels", it no longer displays.

No errors thrown or logged.

Any suggestions on further reading would be helpful and appreciated.

Thanks.
__________________
Version 4.1.9
Reply With Quote
  #2  
Old 04-02-2008, 03:31 PM
 
balinor balinor is offline
 

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

Default Re: Labels do not display on an new form

First, make sure you use the exact text...customer and Customer are not the same. Next, make sure you refresh your browser and clear your template cache from the Summary/Tools area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-03-2008, 06:16 AM
 
RichardJ RichardJ is offline
 

Newbie
  
Join Date: Jan 2008
Posts: 3
 

Default Re: Labels do not display on an new form

My bad typo in the example - $lng.lbl_Customer. It is actually $lng.lbl_customer.

No misspellings in the actual code.
Cleared template cache using the Summary/Tools/Clear templates cache operation
No better results.

So I backed up the templates_c folder (just in case) and deleted the contents.
Voila! all the labels are displayed.

Now to check that I broke nothing else... heeh!

Thanks for the pointer. Much appreciated.
__________________
Version 4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 08:11 PM.

   

 
X-Cart forums © 2001-2020