View Single Post
  #9  
Old 07-17-2008, 01:16 PM
 
Asiaplay Asiaplay is offline
 

X-Wizard
  
Join Date: Oct 2005
Posts: 1,242
 

Default Re: PHP and Smarty coding mods for newbie???

Hi Spia,

You have used webmaster correctly and found the code which corresponds to the text you want to change.

I am about to sleep - so quick reply without checking.

Assuming your code example is correct, then it is telling me that smarty language variable holds the text "CALL US:" is "lbl_phone_1_title" (note: the lng. in front of this is telling smarty to use the current language version of this smarty variable e.g. if someone was in French on your store they would get the French version of the language variable "lbl_phone_1_title" and not the English one - just explaining the meaning of "lng." for you).

The easiest way is to change the text for this language variable "lbl_phone_1_title".

So in X-Cart Admin open the "Administration" -> "Languages" page and choose "English" for the selected language.
This will then reload the page and show a list of all the smarty language variables used for English within your store (there are around 5000 for customer and admin side - so do not go page to page to search for this).
In the search box (find) put in "lbl_phone_1_title" (without quotes obviously) and click to search for this variable (you could also put in "CALL US" - but that might not show just one language variable - so "lbl_phone_1_title" is best idea).

Manually change the text in the box for this field "lbl_phone_1_title", to read "If you need assistance call us at" (note the colon ":" is not needed in the text in this box, as it appears in the template code example you showed above).
Then click the save (update) button.

Refresh your homepage in your browser and you should see the changed text appear.
If it does not appear - clear your browser cache (e.g. Tools, Clear Private Data in Firefox browser) and try to view again...

Hope this helps - cheers, Asiaplay

PS: an alternative method is to add a new language variable in X-Cart languages (e.g. "lbl_phone_1_title_custom4me" and change the template line to use that - however I wouldn't bother adding a language variable in this case and changing the template (as no need for a simple change like this)... and would just change the text of the present "lbl_phone_1_title" being used (i.e. change standard X-Cart text as suggested above).
__________________
X-Cart Gold version 4.1.9
(plus built in X-Cart bugs!)
Reply With Quote