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)
-   -   Language Variable not updating on live site (https://forum.x-cart.com/showthread.php?t=32453)

MendoDev 07-10-2007 11:50 AM

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.

chamberinternet 07-10-2007 11:56 AM

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

MendoDev 07-10-2007 12:22 PM

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

chamberinternet 07-10-2007 12:37 PM

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

MendoDev 07-10-2007 01:02 PM

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.

chamberinternet 07-10-2007 01:20 PM

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

MendoDev 07-10-2007 01:30 PM

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?

chamberinternet 07-10-2007 01:33 PM

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

MendoDev 07-10-2007 01:51 PM

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?

chamberinternet 07-10-2007 01:59 PM

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


All times are GMT -8. The time now is 10:28 PM.

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