Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    20
    Plugin Contributions
    0

    Default Parse Error Shopping Cart

    I tried to modify something and I guess I did something wrong, although I have no idea since I'm new to this and don't know programming.

    I was trying to add text to the define TEXT INFORMATION line.
    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: shopping_cart.php 3183 2006-03-14 07:58:59Z birdbrain $
     */

    define('NAVBAR_TITLE''The Shopping Cart');
    define('HEADING_TITLE''Your Shopping Cart Contents');
    define('HEADING_TITLE_EMPTY''Your Shopping Cart');
    define('TEXT_INFORMATION','You can add items to your shopping cart by either using our search engine to find the item(s) that you wish to purchase or by browsing through our categories and/or our website. Once you find an item(s) you'd like to buysimply hit the "BUY NOW"  button closest to the item(syou are interested in to add the selected item(sto your shopping cartAt this pointyou can change the quantity of items you'd like to order, delete an item, empty the shopping cart, continue shopping, or proceed to check out.');
    define('TABLE_HEADING_REMOVE''Remove');
    define('TABLE_HEADING_QUANTITY''Qty.');
    define('TABLE_HEADING_MODEL''Model');
    define('TABLE_HEADING_PRICE','Unit');
    define('TEXT_CART_EMPTY''Your Shopping Cart 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 ' are out of stock or there are not enough in stock to fill your order.<br />Please change 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 ' are out of stock.<br />Items not in stock will be placed on backorder.');

    define('TEXT_TOTAL_ITEMS''Total Items: ');
    define('TEXT_TOTAL_WEIGHT''&nbsp;&nbsp;Weight: ');
    define('TEXT_TOTAL_AMOUNT''&nbsp;&nbsp;Amount: ');

    define('TEXT_VISITORS_CART''<a href="javascript:session_win();">[help (?)]</a>');
    define('TEXT_OPTION_DIVIDER''&nbsp;-&nbsp;');
    ?>
    can anyone help me please?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Parse Error Shopping Cart

    Do not use apostrophes in your text.

    ie:
    define('TEXT_INFORMATION', 'the text in here must not contain apostrophes else the start/end apostrophes will not match');
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: Parse Error Shopping Cart

    Quote Originally Posted by DrByte View Post
    Do not use apostrophes in your text.

    ie:
    define('TEXT_INFORMATION', 'the text in here must not contain apostrophes else the start/end apostrophes will not match');
    I removed the apostrophes from the text I inserted and still nothing =(.

  4. #4
    Join Date
    Aug 2011
    Posts
    20
    Plugin Contributions
    0

    Default Re: Parse Error Shopping Cart

    Nevermind, I read wrong what you said. Thank you soooooo much for your help. It works now.

    Thanks again

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Parse Error Shopping Cart

    Or, you can escape the apostrophe with the backslash ( \ ) such as:
    define('TEXT_INFORMATION','You can add items to your shopping cart by either using our search engine to find the item(s) that you wish to purchase or by browsing through our categories and/or our website. Once you find an item(s) you\'d like to buy, simply hit the "BUY NOW" button closest to the item(s) you are interested in to add the selected item(s) to your shopping cart. At this point, you can change the quantity of items you\'d like to order, delete an item, empty the shopping cart, continue shopping, or proceed to check out.');
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Replies: 4
    Last Post: 30 Aug 2009, 09:26 PM
  2. Replies: 8
    Last Post: 5 Mar 2009, 06:40 PM
  3. PHP Parse error: parse error, unexpected T_STRING
    By awesomo in forum General Questions
    Replies: 9
    Last Post: 6 Sep 2008, 01:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg