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

Language Variable not updating on live site

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-10-2007, 11:50 AM
 
MendoDev MendoDev is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 44
 

Default Language Variable not updating on live site

I am trying to update a language variable that is a label in the Admin section of my cart (v.4.1) under Languages. In the Admin section it says that the "Language variables have been successfully updated" and shows the update in the box below. However, when I view the website, the information remains the same.

I have been perusing this forum for a posting of a similar issue, and I saw an entry that advised going to to Summary/Tools to clear the templates cache in addition to ensuring that the cache on the browser had been cleared. I have done that, and I am still seeing the old data.

The only way I have been able to work around this in the past is to go into webmaster mode and update the language information on the particular page in order to update the website. However, the label that I wish to update is on a secure page and cannot be accessed from my webmaster mode.

Can anyone offer me any ideas on how to have language variable update on the live site? I would greatly appreciate it.

P.S. I know just enough to be dangerous.
__________________
X-Cart 4.1.10, 4.2.0, 4.4.2, 4.4.5, 4.6.0, 4.6.4
Linux
Reply With Quote
  #2  
Old 07-10-2007, 11:56 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Language Variable not updating on live site

Also try http://www.domain.com/cleanup.php

If no joy then,
- Which language variable are you trying to update ?
- on Which template/page does it reside ?

:sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 07-10-2007, 12:22 PM
 
MendoDev MendoDev is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 44
 

Default Re: Language Variable not updating on live site

The language variable that I am trying to update is lbl_tax_number

The template is register_personal_info.tpl
__________________
X-Cart 4.1.10, 4.2.0, 4.4.2, 4.4.5, 4.6.0, 4.6.4
Linux
Reply With Quote
  #4  
Old 07-10-2007, 12:37 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Language Variable not updating on live site

Does the updated language variable appear correct within the admin panel in the General Settings > User Profiles options:
http://www.domain.com/admin/configuration.php?option=User_Profiles

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #5  
Old 07-10-2007, 01:02 PM
 
MendoDev MendoDev is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 44
 

Default Re: Language Variable not updating on live site

Yes, the language variable appears to be correctly updated on within the admin panel in the General Settings > User Profiles options.

I am going to back up here for a moment. This is my first experience with x-cart, and I am still exploring its nooks and crannies. The reason that I wanted to change the value of the language variable lbl_tax_number in the first place was because I wanted to use that field to capture "how did you find us" information.

When you asked me if the label had been updated under User Profiles options, I was blown away to see that I could add the field of my choice, call it "how did you find us", place it where I wanted to and make it a required field. This cart is amazing!!

However, back to the original issue, the value for the label lbl_tax_number still appears as "Tax number" on the web site, and I would still like to address this issue in case I need to change a language variable somewhere else in the future.
__________________
X-Cart 4.1.10, 4.2.0, 4.4.2, 4.4.5, 4.6.0, 4.6.4
Linux
Reply With Quote
  #6  
Old 07-10-2007, 01:20 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Language Variable not updating on live site

Strange to why is appears ok in the admin panel but not on the front-end as they share the same variable ...

Have you modified register_personal_info.tpl in anyway ?

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #7  
Old 07-10-2007, 01:30 PM
 
MendoDev MendoDev is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 44
 

Default Re: Language Variable not updating on live site

No, I haven't modified the template. Also, this issue has occurred with other language variables on other templates, like the welcome text on the home page, and some information in the policies and privacy statement in the help area, for example.

In those cases, first I would try to update the information under Languages, but each time I ended up having to go into Webmaster Mode in the Admin section and update the labels there, so that they would appear updated on the site. Sometimes, all I had to do was to open the page in Webmaster Mode and that was enough to update the changes on the site.

Each time I have run into this problem, as mentioned above, it was occuring on a non-secure page, and I was able to go into Webmaster Mode. In this case, the Profile page is a secure page, and Webmaster Mode won't load.

One thing that warrants mentioning is that I hired x-cart to customize the look and feel of the site. Perhaps they might have changed something?
__________________
X-Cart 4.1.10, 4.2.0, 4.4.2, 4.4.5, 4.6.0, 4.6.4
Linux
Reply With Quote
  #8  
Old 07-10-2007, 01:33 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Language Variable not updating on live site

Hmmm .. Not sure on that ... worth asking though just to make sure ...

One more thing: Try deleting all files inside /var/templates_c directory then refresh your browser. See if that makes a difference.

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #9  
Old 07-10-2007, 01:51 PM
 
MendoDev MendoDev is offline
 

Advanced Member
  
Join Date: Mar 2007
Posts: 44
 

Default Re: Language Variable not updating on live site

I deleted all of the files inside /var/templates_c directory and that did the trick. I guess that will be the method for ensuring future updates of language variables on the site.

Thank you so much for your time and assistance. If I may ask one more question, what is purpose do the files in /var/templates_c directory serve, and do you know the purpose of the clearing the templates cache option in Summary/Tools?
__________________
X-Cart 4.1.10, 4.2.0, 4.4.2, 4.4.5, 4.6.0, 4.6.4
Linux
Reply With Quote
  #10  
Old 07-10-2007, 01:59 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Language Variable not updating on live site

Quote:
Originally Posted by MendoDev
what is purpose do the files in /var/templates_c directory serve, and do you know the purpose of the clearing the templates cache option in Summary/Tools?

The 'clearing the templates cache' option is meant to do what you manually did (empty the /var/templates_c directory that is)

Ensure the folder permissions for templates_c is set to '777' (Thats if you're hosting on a linux server)

Quote:
Originally Posted by MendoDev
what is purpose do the files in /var/templates_c directory

The 'templates_c' directory is a repository for "compiled" templates.

Templates are written using Smarty syntax, which resembles normal HTML to a great extent - however, for those templates to be usable by the system, they must be compiled to PHP code.

When a template is invoked for the first time, it is compiled to PHP code and placed in the templates_c directory for faster access on next invocation.

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
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:48 PM.

   

 
X-Cart forums © 2001-2020