Editing Text Labels
page last edited on 17 May 2018
When you need to edit an existing piece of text of your X-Cart user interface, you need to identify the text label that stores this piece of text as a value, and then edit this value. If you use multiple languages in X-Cart, you may also need to check if a similar change needs to be done for the values of this label in the other languages.
Let us show how to edit text labels in X-Cart. For example, we want to change the wording of the phrase “Your shopping cart” shown in the snapshot below so it says “Your shopping bag”:
Let’s do it:
In your store’s Admin area, go to the Translations section (Store setup > Translations):
Switch to the Edit labels tab:
If your store uses more than one language, select the language for which the text label needs to be edited. In our example, we will edit the phrase “Your shopping cart” for the English language. On the following snapshot, the English language is already selected:
If you need to edit the same phrase in more than one languages, just select any one of them.
Use search to find the phrase you want to edit. Please do mind that this search is case-sensitive. We need to find the phrase “Your shopping cart”, so we simply paste it into the search bar and click Search:
The list of search results (if any) will be provided below:
If you recieve no search results, it means that either you are searching in a wrong language or the label does not exist. If necessary, you can add the missing label following the guides from Adding New Text Labels.
Review the search results to find the phrase you need to edit. If none of the phrases in the results list matches the phrase you searched for exactly, do not worry: the items in the list of search results are text labels, and what you see in the list are their names. Their values are concealed from view and have yet to be revealed. To view the value of any text label, hover your cursor over the respective entry in the list of the search results; an Edit link will be revealed:
Click on the Edit link; this will expand a section where you will be able to view/edit the value of the selected text label:
Edit the text label value as you require. In our example, we will need to edit the last two labels in the search results list (the first one is used for the case when the cart contains a single item, the second one - when the cart contains multiple items). So we replace the word “cart” with the word “bag” in both of the text label values:
Note that if you need to edit the same phrase in more than one language, you can use a special section that will help you to edit all the translations of the phrase simultaneously. To access this section, click on the Global edit icon:
The section where you can edit text labels for multiple languages looks as follows:
After making the changes you require, click Save changes. The text labels will be updated.
Now you can check the results in the store’s front end. In our case, we should be able to see the phrase “Your shopping bag” instead of “Your shopping cart”:
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.