Jump to content

[Resolved] Modify string in $lang file


Recommended Posts

I am very new to Cubecart and need to change the display on the Popular Products box and others to custom heading. 

I see they all refer to the $lang variable, is it possible to change this eg:

<h3>{$LANG.catalogue.title_popular}</h3> return "Popular Products"  as expected but I want it to say "Latest Puppies"

Option 1 would obviously be to just override the reference with a Static label, but is that the most elegant way, especially if later there is an upgrade or change?

 

If changing the language file is an option where and how do i do this?

Thanks

Link to comment
Share on other sites

CubeCart provides a way to override phrases in a language pack, including the default phrases.

In admin, Languages, click the edit icon of the language you want to change.

You will be shown a drop-down selector. Choose 'catalogue'.

In a few seconds, you will be shown the list of phrases in that group. Scroll to "title_popular" and change the phrase to what you want.

Click save at the bottom of the list.

This change is databased, easily returned to the default, and survives updates to CubeCart.

Doing changes this way means there is no need to edit the skin code, and all skins will use the new phrase.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...