Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help...messed up Index page


shalaniesgifts

Recommended Posts

I was trying to change my heading titles "Let's See What We Have Here" and "What's new Here" on the index page. I changed the words and now I am getting an error on the website and all the heading titles are showing up with the words "HEADING TITLE" and it is giving this error: "Parse error: parse error in /home/virtual/site260/fst/var/www/html/oscommerce/includes/languages/english/index.php on line 25" at the top of the page.

 

Below is what the html text looks like. Anyone have any idea what the problem is or how I can fix it?

 

 

<?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', ' <br><b>Please come back often as we ad more fantastic products at unbelievable wholesale prices on a regular basis.</b><br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td>

<td class="main" valign="top"><b>Browse our unique and discounted products. Whether it is a gift for a friend or loved one or something special for you, we are sure you will find what you need.</b>

<br><br>Shipping and Handling fees are shown to you at Checkout. <br><br> </td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td>

<td class="main" valign="top"><b>To order and buy any of our products, we

ask you to register with Shalaniesgifts.com-stores.com. Add the products

you have chosen to your Shopping Cart and proceed to Checkout.</b><br>

<br>Registration is more than easy (we will need your name and shipping address). This process needs less than 10 seconds.</nobr><br><br>We accept currently the following from of payment: Credit Cards through Paypal and money orders. More payment options will be added shortly.<br><br></td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>If you are not satisfied with your order, just send it back to receive a refund (shipping charges are not refundable). </td></tr> <br><u></u></a></td></tr></table><br></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');

}

?>

Link to comment
Share on other sites

define('HEADING_TITLE', 'Let'/s See What We Have Here');

 

define('HEADING_TITLE', 'What'/s New Here?');

 

should be...

 

define('HEADING_TITLE', 'Let/'s See What We Have Here');

 

define('HEADING_TITLE', 'What/'s New Here?');

 

---

 

Notice the slash position.

Link to comment
Share on other sites

Hi,

 

Had the same problem setting up my shop .

As already stated you need to add the escape character "/" before any specail character in between definitation quotes:

 

Specail characters ex : " (double quote) ' (single quote) etc..

 

Ex:

 

(Define"Maintext,"blah blah He said /"wow/" in /'blah/' blah")

 

Hope that helps

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...