Instructions in docs don't work
Quote:
Zen Cart 1.5.8 and above:
Open the includes/languages/english/lang.index.php file and find the following code:
'HEADING_TITLE' => 'Congratulations! You have successfully installed your Zen Cart® E-Commerce Solution.', Replace the text starting “Congratulations” with your own text that is welcoming and describes your business.
Make sure that the single quote marks at the beginning and end are not left out. If your text includes single-quotes (apostrophes) be sure to add a \ before them to “escape” them for proper PHP syntax.
NOTE: There is a similar line that starts with 'HEADING_TITLE_NESTED', so be sure to replace both lines.
I followed instructions and replaced text in both lines but text doesn't change. it is not a cache issue, tested in two browsers (Firefox and Chromium, refreshed and SOL).
This must be coming from a different file, which one?
Re: Instructions in docs don't work
First, you should not be editing the 'base' file (the directions need to be updated). You should copy /includes/languages/lang.index.php to your template override version (/includes/language/YOUR_TEMPLATE/lang.index.php and then make the edits.
Here's what I've done for a client:
Code:
<?php
$define = [
/*
'TEXT_GREETING_GUEST' => 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?',
'TEXT_GREETING_GUEST_SHOWCASE' => 'Welcome, please enjoy our online showcase.',
'TEXT_GREETING_PERSONAL' => 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?',
'TEXT_INFORMATION' => 'Define your main Index page copy here.',
'TEXT_NO_PRODUCTS' => 'There are no products to list in this category.',
'TEXT_NO_PRODUCTS2' => 'There is no product available from this manufacturer.',
'TEXT_NUMBER_OF_PRODUCTS' => 'Number of Products: ',
'TEXT_SHOW' => 'Filter Results by:',
'TEXT_BUY' => 'Buy 1 \'',
'TEXT_NOW' => '\' now',
'HEADING_TITLE_PRODUCTS' => 'Available Products',
*/
'HEADING_TITLE' => 'Welcome to Our Site!',
'HEADING_TITLE_NESTED' => 'Welcome to Our Site!',
];
return $define;
Re: Instructions in docs don't work
The instructions in https://docs.zen-cart.com/user/new_u...ngratulations/ say
> Save the edited file to includes/languages/english/YOURTEMPLATE/lang.index.php and upload it to your server.
You probably have already created this file and but are still editing the base file.
Re: Instructions in docs don't work
Quote:
Originally Posted by
swguy
The instructions in
https://docs.zen-cart.com/user/new_u...ngratulations/ say
> Save the edited file to includes/languages/english/YOURTEMPLATE/lang.index.php and upload it to your server.
You probably have already created this file and but are still editing the base file.
I guess I missed the last part of copying over base file to template override.
My apologies
Re: Instructions in docs don't work
Just a thought. Sometimes the problem is that the information may not be in your primary language.
For those that are trying to get through the docs and English is not your first language, You can click on the accessibility icon on any page and click on the Select Language Dropdown. That will transform that page to the selected language.
Re: Instructions in docs don't work
Quote:
Originally Posted by
swguy
The instructions in
https://docs.zen-cart.com/user/new_u...ngratulations/ say
> Save the edited file to includes/languages/english/YOURTEMPLATE/lang.index.php and upload it to your server.
You probably have already created this file and but are still editing the base file.
I just double checked and both files have been edited, just in case, still changes do not show.
Agreed that base file should not be edited, just copied over, but both are identical now.
Re: Instructions in docs don't work
Quote:
Originally Posted by
dbltoe
Just a thought. Sometimes the problem is that the information may not be in your primary language.
For those that are trying to get through the docs and English is not your first language, You can click on the accessibility icon on any page and click on the Select Language Dropdown. That will transform that page to the selected language.
Praise to the translationi effort, but that doesn't apply to my case.
Re: Instructions in docs don't work
So is you use the developers tool kit to search the catalog side for:
Congratulations!
In what file(s) does it appear?
Re: Instructions in docs don't work
Quote:
Originally Posted by
mc12345678
So is you use the developers tool kit to search the catalog side for:
Congratulations!
In what file(s) does it appear?
It was edited successfully, thanks!
Re: Instructions in docs don't work
What exactly happened? I like to document common failure paths so people can figure out how to recover.