Difference between revisions of "How to Change Text"

From Phoenix Cart User Guide
Line 30: Line 30:
 
</div>
 
</div>
  
 
+
*In this example, it shows that the text is in the file - '''includes/languages/english/modules/notifications/n_create_account.php'''
*Find the language file in admin '''Tools → Define Languages''' list - in this example the file is '''includes/languages/english/modules/notifications/n_create_account.php'''.
+
*Backup any files before making changes.
 +
*This language file in your backup directory could be changed and uploaded to overwrite the one on your server.
 +
*Alternatively, find the language file in admin '''Tools → Define Languages''' list - in this example the file is '''modules/notifications/n_create_account.php'''.
 
*Click to open, make changes to the text (make sure you only change the text and not any code or punctuation marks that may also be part of the code), click Save - done. Check and test the shop.
 
*Click to open, make changes to the text (make sure you only change the text and not any code or punctuation marks that may also be part of the code), click Save - done. Check and test the shop.
  

Revision as of 08:18, 4 September 2020

<historylink type="back">🠈 Back</historylink> 🠉 FAQS TIPS & TRICKS


You can change any text in a language file in admin Tools → Define Languages - see Change Language Files.

Sometimes it can be difficult to find which language file contains the text.

To find text in a language file, use the search facility at Github where the repository for the code for CE Phoenix is stored.

For our example: How to change Welcome email text.

After completing a test purchase, it can be seen that an email is sent to the customer that starts with the text, We welcome


GithubSearch.jpg


  • Enter the search term in the input box (top left) - enclose the text in double quotes.
  • For this example enter, "We welcome"
  • Click In this repository in the drop down menu.
  • The search results will show this:


GithubSearchResult.jpg

  • In this example, it shows that the text is in the file - includes/languages/english/modules/notifications/n_create_account.php
  • Backup any files before making changes.
  • This language file in your backup directory could be changed and uploaded to overwrite the one on your server.
  • Alternatively, find the language file in admin Tools → Define Languages list - in this example the file is modules/notifications/n_create_account.php.
  • Click to open, make changes to the text (make sure you only change the text and not any code or punctuation marks that may also be part of the code), click Save - done. Check and test the shop.



Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.

Code references are licensed under a Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org