Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRING..

    I am trying to figure out how to make this work on the top of my shopping page:

    I want to put instruction on my shopping cart,

    Ready to Complete Your Purchase? Do you have a Discount Code?

    The checkout process includes four easy steps: How to enter your Promotional Code:
    1. Provide your Shipping information 1. Click Proceed to Checkout
    2. Provide your Payment information 2. Enter your shipping method
    3. Review by clickng Submit Order 3. Click continue to the Payment method at the
    4. Receive an order confirm######## top on the Payment page you'll be able to input
    your Promotional Code under discount coupon or
    gift certificate
    4. Click continue to review your order and see
    the discount amount


    But everytime I add the information to the shoppingcart.php file I get this error message

    Parse error: syntax error, unexpected T_STRING in /home/divabou/public_html/store/includes/languages/english/mystore/shopping_cart.php on line 13

    How can resolve this isssue so that I can add content to my shopping cart page without the error>
    Diva Boutiques
    www.divaboutiques.com

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

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    And what is in the file listed around lines 10 to 16 ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    This is the information that's in the file under

    /public_html/store/includes/languages/english/diva/shopping_cart.php

    PHP Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt 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 Contents');
    define('HEADING_TITLE_EMPTY''Your Shopping Cart');
    define('TEXT_INFORMATION''');
    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''');
    define('TEXT_OPTION_DIVIDER''&nbsp;-&nbsp;');
    ?>
    Now on this line define('TEXT_INFORMATION', ''); this is where they say add your information instructions, but when I do add the following information below:

    <p><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td width="475"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="title" width="325"><b>Ready to Complete Your Purchase?</b></td><td class="title" valign="top" width="127"><div id="AssuranceHeader"><a href="http://divaboutiques.com/store/about_us.html"></a> </div></td></tr><tr><td colspan="2" height="3"></td></tr><tr><td class="orderText" width="330"><strong>The checkout process includes four easy steps:</strong><br />1. Provide your <b>Shipping</b> information<br />2. Provide your <b>Payment</b> information <br />3. <b>Review</b> by clickng <strong>Submit Order<br /></strong>4. Receive an <strong>order</strong> <b>confirm########</b> <div></div></td><td class="orderText" valign="top" width="127"><br /></td></tr></tbody></table></td><td valign="top" width="286"><div id="AssuranceHeader"><strong>Customer Service</strong> </div><ul><li><a href="http://divaboutiques.com/store/faqs_all.html"><font color="#666666" size="2">Frequently Asked Questions</font></a><font color="#666666" size="2"> </font></li><li><a href="http://divaboutiques.com/store/contact_us.html"><font color="#666666" size="2">Contact Us</font></a><font color="#666666" size="2"> </font></li><li><a href="http://divaboutiques.com/store/about_us.html"><font color="#666666" size="2">About Us</font></a></li><li><a href="http://divaboutiques.com/livechat/li...1&tab=1"><font color="#999999" size="2"><font color="#666666">Live Customer Care</font> </font></a></li></ul></td></tr><tr><td></td><td height="14"></td></td /></tr><tr><td colspan="5"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td class="title" width="300"><b>How to enter your Promotional Code:</b></td><td class="title" width="127"><b>We Accept:</b></td></tr><tr><td colspan="2" height="1"></td></tr><tr><td class="orderText" valign="top" width="330">1. Click <strong>Proceed to Checkout</strong> <br />2. Enter your <strong>shipping method</strong> <br />3. Click continue to the <strong>Payment</strong> method. at the top on the Payment page you'll be able to input your Promotional Code under <strong>discount coupon</strong> or <strong>gift certificate</strong> <br />4. Click continue to <strong>review your order</strong> and see the discount amount <div></div></td><td class="orderText" valign="top" width="143"><div style="PADDING-RIGHT: 5px"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td><img alt="visa" src="https://www.americanapparel.net/stor...s/cart/cc2.gif" /></td><td width="2"></td><td valign="top"><img alt="mastercard" src="https://www.americanapparel.net/stor...s/cart/cc1.gif" /></td></tr><tr><td><img alt="discover" src="https://www.americanapparel.net/stor...cover_logo.gif" /></td><td width="2"></td><td><p><img alt="amex" src="https://www.americanapparel.net/stor.../cart/amex.gif" /></p></td></tr></tbody></table></div><strong>Paypal</strong></td></tr></tbody></table><div id="AssuranceHeader"><a href="http://divaboutiques.com/store/about_us.html"></a> </div></td><td valign="top"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td height="5"><div id="AssuranceBoxWrapper" style="WIDTH: 250px"><div id="AssuranceHeader"><strong>Shop With Confidence</strong> </div><div id="AssuranceLinksWrapper"><ul><li><a href="http://divaboutiques.com/store/shippinginfo.html" target="_self"><font color="#666666" size="2">30 Day Money Back Guarantee</font></a><a href="http://divaboutiques.com/store/shippinginfo.html" target="_self"></a> </li><li><a href="http://divaboutiques.com/store/page.html?id=13"><font color="#666666" size="2">100% Secure Shopping </font></a></li><li><a href="http://divaboutiques.com/store/privacy.html" target="_self"><font color="#666666" size="2">Our Commitment To Privacy</font></a> </li><li><a href="http://divaboutiques.com/store/page.html?id=15"><font color="#666666" size="2">Reward Point Program </font></a></li><li><a href="http://divaboutiques.com/store/index...monials"><font color="#666666" size="2">Customer Testimonals</font></a> </li><li><a href="http://divaboutiques.com/store/discount_coupon.html"><font color="#666666" size="2">Discount Code Offers</font></a> </li><li><a href="http://divaboutiques.com/store/how_to_checkout.html"><font color="#666666" size="2">Payment Options </font></a></li><li><a href="http://divaboutiques.com/store/shippinginfo.html"><font color="#666666" size="2">Returns &amp; Refunds Policy</font></a></li></ul><p align="center"><a href="http://divaboutiques.com/store/admin/" target="_blank"></a></p><!-- assurance links content--></div><!-- assurance links wrapper --></div></td></tr><tr><td><!-- assurance box wrapper --><br style="CLEAR: both" /></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></p>
    I get this error:

    Parse error: syntax error, unexpected T_STRING in /home/divabou/public_html/store/includes/languages/english/mystore/shopping_cart.php on line 13
    Last edited by divaboutiques; 4 Mar 2009 at 09:12 PM. Reason: missed information
    Diva Boutiques
    www.divaboutiques.com

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

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    Make sure you have a copy of the file and then delete it on the server ...

    Does the error go away or change?
    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: v1.5.5]
    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!

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

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    Scratch that ...

    You added more to your post ...

    You do not have escapes on your quotes through out that blob there ...

    That is throwing errors ...
    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: v1.5.5]
    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!

  6. #6
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    Scratch that ...

    You added more to your post ...

    You do not have escapes on your quotes through out that blob there ...

    That is throwing errors ...
    What are escapes?
    " " are these escapes in html or php lingo? and if that is not right how do they look and where would I put them in my information I want to add to my shopping cart to avoid the error message
    Diva Boutiques
    www.divaboutiques.com

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

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    You have in there:
    Payment page you'll be
    That little apostrophe (the single quote mark) is causing confusion with the real quotes needed ...

    Change that to read:
    Payment page you\'ll be
    and all will be right with the world ...
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Feb 2007
    Location
    Worldwide Web
    Posts
    191
    Plugin Contributions
    0

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    Thank you that worked!
    Diva Boutiques
    www.divaboutiques.com

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

    Default Re: Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRI

    Thanks for the update that fixing your language file was able to resolve this issue ...
    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: v1.5.5]
    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. PHP Parse error: syntax error, unexpected T_STRING
    By absoluteblock in forum General Questions
    Replies: 4
    Last Post: 2 Oct 2011, 03:40 AM
  2. PHP Parse error: syntax error, unexpected T_STRING
    By derek53 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 08:09 PM
  3. Replies: 20
    Last Post: 21 Nov 2010, 02:48 AM
  4. Replies: 9
    Last Post: 5 Feb 2010, 01:12 AM
  5. Replies: 6
    Last Post: 21 Sep 2008, 04:48 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR