bigcol Posted January 16, 2007 Share Posted January 16, 2007 I have altered the index.php page in /includes/languages/english. All I wanted to do was change the text from What's new in here to we Pay by Paypal only. Now it has messed up the display. Can anyone tell me where I have gone wrong please. I do know know php, I have noticed that there are more amp at the begining and end of the file. www.pinc-online.co.uk <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<b>86 Newgate Street, Bishop Auckland, Co Durham DL14 7HB Telephone 01388 662396 </b>'); 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') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'What's instore...'); 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_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'PAY BY PAYPAL only '); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Link to comment Share on other sites More sharing options...
davidinottawa Posted January 16, 2007 Share Posted January 16, 2007 I have altered the index.php page in /includes/languages/english. All I wanted to do was change the text from What's new in here to we Pay by Paypal only. Now it has messed up the display. Can anyone tell me where I have gone wrong please. I do know know php, I have noticed that there are more amp at the begining and end of the file. &amp;lt;?php you have to change to this : <?php define('HEADING_TITLE', 'What's instore...'); you have to escape all apostrophe's with a backslash like this : define('HEADING_TITLE', 'What\'s instore...'); ?&amp;gt; change this line to : ?> Link to comment Share on other sites More sharing options...
bigcol Posted January 16, 2007 Author Share Posted January 16, 2007 <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<b>86 Newgate Street, Bishop Auckland, Co Durham DL14 7HB Telephone 01388 662396 </b>'); 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') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'What's instore...'); 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_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s instore...'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Is this correct? Link to comment Share on other sites More sharing options...
bigcol Posted January 16, 2007 Author Share Posted January 16, 2007 I have used a backup to repair the file. Now I have a load of text about different things on my index page, how can I edit this? www.pinc-online.co.uk Finally all I want to do is change the heading from 'What's new here' to We only accept PAYPAL payments. Link to comment Share on other sites More sharing options...
bigcol Posted January 16, 2007 Author Share Posted January 16, 2007 I have managed to get everything working again. However I have lost all the prices of goods on my site. Can anyone help me get them back. Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 16, 2007 Share Posted January 16, 2007 look in contributions for Easy populate it will allow you to build your catalog offline using MS Excel and upload. You can bulk out your site in minuits! View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
bigcol Posted January 16, 2007 Author Share Posted January 16, 2007 look in contributions for Easy populate it will allow you to build your catalog offline using MS Excel and upload. You can bulk out your site in minuits! Thanks for the reply everything is still in the catalog it is jsut that the prces dont show? I do not kno wwhat I have done wrong, I used a backup index file to restore and the prices disappeared /languages/english/index.php www.pinc-online.co.uk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.