Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customising Index Page


Guest

Recommended Posts

Posted

Can anyone tell me what did I do wrong, becuase I get the following error when I'm customising my Index Page for my Store.

 

Error Message:

Parse error: parse error, unexpected T_STRING in /home/brighti/public_html/shop/includes/languages/english/index.php on line 13

 

Here is the index.php code:

<?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 (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Here you will find a selection of products at the lowest prices possible.<br>So feel free to browse our site, and <b>contact us</b> if you can't find what you are looking for.<br><h3>Web Design & Graphics Design</h3><br>We also have a team who specialise in the design of websites, advertisements, and other marketing material. We will also set you up with a cost effective web hosting solution. And if you are not getting enough hits on Google you can speak to us about Search Engine Optimization<br><h3>Loyalty Points</h3>Here at Bright Idea Projects 748 CC we believe in rewarding our loyal customers. So if your purchase anything on the Bright Idea Projects 748 CC site, you will earn Loyalty Points which can later we converted to cash.<br>For more information see the Loyalty Points Information page.....');
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', '<font size="3">Welcome to <b>Bright Idea Projects 748 CC</b></font>');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

Please help!!!

Posted
define('TEXT_MAIN', 'Here you will find a selection of products at the lowest prices possible.<br>So feel free to browse our site, and <b>contact us</b> if you can't find what you are looking for.<br> ..... ');

You need to escape your apostrophe's with a backslash. In this case, the word "can't" in your text on line 13 needs to be changed to this:

 

can\'t

Posted

One thing I know is that Jason was faster!

 

define('TEXT_MAIN', 'Here you will find a selection of products at the lowest prices possible.<br>So feel free to browse our site, and <b>contact us</b> if you can\'t find what you are looking for.<br><

 

make can't look like I did above (with the backslash in it)

 

it sees the apostrophe and thinks thats the end/beginning of another expression

 

so if you have apostrophes in your text they need to be escaped with the backslash

 

Not sure of my terms but the general idea is the same :blink:

Posted
One thing I know is that Jason was faster!

 

define('TEXT_MAIN', 'Here you will find a selection of products at the lowest prices possible.<br>So feel free to browse our site, and <b>contact us</b> if you can\'t find what you are looking for.<br><

 

make can't look like I did above (with the backslash in it)

 

it sees the apostrophe and thinks thats the end/beginning of another expression

 

so if you have apostrophes in your text they need to be escaped with the backslash

 

Not sure of my terms but the general idea is the same :blink:

Thank you for your Help!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...