How do I determine which files to edit?

Where do I make the change?

I want to make changes to the text that shows up in xxxxxxxxx spot on xxxxxx page. How do I find out what where it is, and what file to change?

  1. Use a text-search tool that can handle standard text files. Alternatively, you may use the built-in Developers Toolkit. You can enter the words you’re looking for right there, and it will find them.

  2. Search everything under the “includes” folder for the text you are trying to change/edit/delete.

  3. That will show you the text inside a “define” statement much like this:

   define('TEXT_GREET_USER','Welcome to my site');
  1. This is where you’ll be making your changes. You should be sure to save the file according to the Template Overrides concept (see the Overrides Explained FAQ).

  2. Then use this article to be sure you put your CHANGES into the right place:

  3. IF YOU ARE desiring to modify the PHP code that “uses” the text you just located, then you need to do another search – ie: for the TEXT_GREET_USER (constant name that you just found), and find the files that reference it.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified September 4, 2020 by Scott C Wilson (9e8cba3).