Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stupid question


Guest

Recommended Posts

I've never done anything like this so please forgive me if this is a really stupid question.

Everytime the user clicks on the cart it gives an error code message:

 

Parse error: parse error, unexpected T_STRING in /data/members/paid/s/l/sleepingbeautyshetland.co.uk/htdocs/www/includes/languages/english/shopping_cart.php on line 13

 

The code i have in place is as follows. Can anyone tell me what the error is????

 

Many thanks you clever people

Lilac

 

 

:

<?php

/*

$Id: shopping_cart.php,v 1.13 2002/04/05 20:24:02 project3000 Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', Shopping Basket);

define('HEADING_TITLE', 'What's In My Basket?');

define('TABLE_HEADING_REMOVE', 'Remove');

define('TABLE_HEADING_QUANTITY', 'Qty.');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product(s)');

define('TABLE_HEADING_TOTAL', 'Total');

define('TEXT_CART_EMPTY', 'Your Shopping Basket is empty!');

define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');

define('SUB_TITLE_TOTAL', 'Total:');

 

define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>Please alter the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Thank you');

define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>You can buy them anyway and check the quantity we have in stock for immediate deliver in the checkout process.');

?>

Link to comment
Share on other sites

I've never done anything like this so please forgive me if this is a really stupid question.

Everytime the user clicks on the cart it gives an error code message:

 

Parse error: parse error, unexpected T_STRING in /data/members/paid/s/l/sleepingbeautyshetland.co.uk/htdocs/www/includes/languages/english/shopping_cart.php on line 13

 

The code i have in place is as follows.  Can anyone tell me what the error is????

 

Many thanks you clever people

Lilac

:

<?php

/*

  $Id: shopping_cart.php,v 1.13 2002/04/05 20:24:02 project3000 Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright ? 2002 osCommerce

 

  Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE', Shopping Basket);

define('HEADING_TITLE', 'What's In My Basket?');

define('TABLE_HEADING_REMOVE', 'Remove');

define('TABLE_HEADING_QUANTITY', 'Qty.');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product(s)');

define('TABLE_HEADING_TOTAL', 'Total');

define('TEXT_CART_EMPTY', 'Your Shopping Basket is empty!');

define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');

define('SUB_TITLE_TOTAL', 'Total:');

 

define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>Please alter the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Thank you');

define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>You can buy them anyway and check the quantity we have in stock for immediate deliver in the checkout process.');

?>

 

 

this :

 

define('HEADING_TITLE', 'What's In My Basket?');

 

should be this:

 

define('HEADING_TITLE', 'What\'s In My Basket?');

Treasurer MFC

Link to comment
Share on other sites

That is the problem. If you are using the file manager that comes with osc.... don't.

 

Download the file to your computer, edit it then reupload it using an FTP program. There is a bug with the file manager.

 

Anytime you have text with an apostrophe it will cause an error unless you put a \ in there like what\'s

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...