View Single Post
  #1   IP: 117.95.89.159
Old 2016-04-09, 10:40 AM
Richwoods Richwoods is offline
初级会员
 
Join Date: 2005-03-16
Posts: 1
Richwoods 现在声名狼藉
Default ZenCart v1.5.5. remove or change greeting “Welcome Guest! Would you like to log yours

商店设置-布局设置-顾客欢迎词 - 显示在首页

1.Log into your ZenCart admin panel and go to Configuration -> Layout Settings

2.Click on “Customer Greeting – Show on Index Page”, select “0” and click on the “update” button:

3.Refresh the site to see the changes


To change the welcome greeting, perform the following steps:

1.Open index.php located in includes/languages/english/themeXXX/ where XXX stands for your theme number with any code editor (DreamWeaver, Notepad++, Sublime, etc.) and locate the following code approximately on Line 21:

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
} else {
define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');



2.Make the back up of this file first (that means make a copy of the file, so that you can revert the changes back in case something goes wrong).

3.Edit the text between the single quotes to your own and save the changes.

* Change the first define statement if you are using your ZenCart as a normal store.

e.g. define(‘TEXT_GREETING_GUEST’, ‘Welcome to our store!’);

Change the second define statement if you are using your ZenCart as a showcase.

e.g. define(‘TEXT_GREETING_GUEST’, ‘Welcome to our showcase.’);

Change the third define statement for either a normal store or showcase.

e.g. define(‘TEXT_GREETING_PERSONAL’, ‘Welcome back <span class="greetUser">%s</span>! Check what’s <a href="%s">new</a>!’);
Reply With Quote