chris_1d Posted February 27, 2007 Share Posted February 27, 2007 Hey peeps. I've got my store setup, and I'm now trying to customise the front page. However, I can't get rid of, or seem to move the following bit of oscommerce ". PROJECT_VERSION ." Everytime I delete that bit, or move it. I try to load up my store, and it tells me there is a parse error on line 13. I don't mind having the version numbe on there if I have to, but not at the top of my page in the opening text!! Any help apreciated!! Also, is there a way of adding promotional codes into oscommerce? So customers can recieve a promo code to enter at the checkout? Many thanks!! Chris Link to comment Share on other sites More sharing options...
jonquil Posted February 28, 2007 Share Posted February 28, 2007 Hi, Please post your includes/languages/english/index.php. Perhaps one of the Contributions listed here will give you some food for thought: http://www.oscommerce.com/community?contri...mp;category=all jon It's all just ones and zeros.... Link to comment Share on other sites More sharing options...
chris_1d Posted March 6, 2007 Author Share Posted March 6, 2007 Here it is... <?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', 'This is a Demo of the CONCEPT System, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional<br><br>Welcome to CONCEPT version <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') || (isset($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_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> when I try and remove Project.Verison, it gives the above error. Regards, Chris Link to comment Share on other sites More sharing options...
chris_1d Posted March 11, 2007 Author Share Posted March 11, 2007 *Bump* Link to comment Share on other sites More sharing options...
bill110 Posted March 11, 2007 Share Posted March 11, 2007 Try this (only relevant part shown) define('TEXT_MAIN', 'This is a Demo of the CONCEPT System, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.'); All the text has to be within single quotes. If you add code in the text you end with single quote then a period then code then period then single quote ie; '. PROJECT_VERSION .'</b> When you delete the code you have to delete both single quotes on either side of it. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.