Hi,
We can easily customize our storefront, Let us assume that your storefront is in English, first of all download 2 documents that are there in the webshell file management system.
Path: /yourdomain.com/catalog/includes/languages/english.php
Path: /yourdomain.com/catalog/includes/languages/english/default.php
Now, Open default.php using WebShell or NotePad:
define(‘TEXT_MAIN’, ‘This is a demonstration online-shop, <b>any products purchased will not be
delivered nor billed</b>. Any information seen on these products are to be treated
fictional.<br><br>If you wish to download this sample shop, or to contribute to this project,
please visit the <a href=”http://oscommerce.com”><u>support site</u></a>. This shop is based on
<font color=”#f0000″><b>’ . PROJECT_VERSION . ‘</b></font>.’);
define(‘TABLE_HEADING_NEW_PRODUCTS’, ‘New Products For %s’);
define(‘TABLE_HEADING_UPCOMING_PRODUCTS’, ‘Upcoming Products’);
define(‘TABLE_HEADING_DATE_EXPECTED’, ‘Date Expected’);
if ($category_depth == ‘products’ || $HTTP_GET_VARS
[‘manufacturers_id’]) {
define(‘HEADING_TITLE’, ‘Let’s See What We Have Here’);
define(‘TABLE_HEADING_IMAGE’, ”);
define(‘TABLE_HEADING_MODEL’, ‘Model’);
define(‘TABLE_HEADING_PRODUCTS’, ‘Product Name’);
define(‘TABLE_HEADING_MANUFACTURER’, ‘Manufacturer’);
define(‘TABLE_HEADING_QUANTITY’, ‘Quantity’);
define(‘TABLE_HEADING_PRICE’, ‘Price’);
define(‘TABLE_HEADING_WEIGHT’, ‘Weight’);
define(‘TABLE_HEADING_BUY_NOW’, ‘Buy Now’);
define(‘TEXT_NO_PRODUCTS’, ‘There are no products to list in this category.’);
define(‘TEXT_NO_PRODUCTS2’, ‘There is no product available from this manufacturer.’);
define(‘TEXT_NUMBER_OF_PRODUCTS’, ‘Number of Products: ‘);
define(‘TEXT_SHOW’, ‘<b>Show:</b>’);
define(‘TEXT_BUY’, ‘Buy 1 ”);
define(‘TEXT_NOW’, ” now’);
define(‘TEXT_ALL’, ‘All’);
} elseif ($category_depth == ‘top’) {
define(‘HEADING_TITLE’, ‘What’s New Here?’);
} elseif ($category_depth == ‘nested’) {
define(‘HEADING_TITLE’, ‘Categories’);
}
?>
Page “heading title” can be easily modified. But do the following when you are editing the document:
1. Make copies of english.php and default.php in a separate folder before editing the source
code. This way, if you inadvertently mess up the syntax you can always start over with the
untouched file. Failure to do so could destroy your cart.
- You can insert some HTML tags like <b> or <font> in between the ‘ ‘ where the text resides.
For example: define(‘TEXT_SHOW’, ‘<b>Show:</b>’);
- When you are done editing any PHP file, upload it back where you got it from and refresh your
storefront page to see the changes. In WebShell make sure the properties of the PHP file are
marked as “Executable” on the right hand side.
Leave a Reply
You must be logged in to post a comment.