Zen Cart Logo
Forums / Basic Configuration / Adding to the stop of Shopping Cart: Parse error: syntax error, unexpected T_STRING..

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

Locked

Views: 2,944

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
2 Mar 2009, 8:15 PM
#1
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

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 confirmaion top on the Payment page you'll be able to input
    your Promotional Code under discount coupon or
    gift certificate
  5. 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>

4 Mar 2009, 6:51 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

And what is in the file listed around lines 10 to 16 ... :unsure:

4 Mar 2009, 8:07 PM
#3
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

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

This is the information that's in the file under

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

 
<?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', '  Weight: ');
define('TEXT_TOTAL_AMOUNT', '  Amount: ');
define('TEXT_VISITORS_CART', '');
define('TEXT_OPTION_DIVIDER', ' - ');
?>

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](http://divaboutiques.com/store/about_us.html%22%3E%3C/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>confirmaion</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](http://divaboutiques.com/store/faqs_all.html%22%3E%3Cfont) 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](http://divaboutiques.com/store/contact_us.html%22%3E%3Cfont) 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](http://divaboutiques.com/store/about_us.html%22%3E%3Cfont) color="#666666" size="2">About Us</font></a></li><li><a href="<http://divaboutiques.com/livechat/livehelp.php?page=livehelp.php&department=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/storefront/images/cart/cc2.gif>" /></td><td width="2"></td><td valign="top"><img alt="mastercard" src="<https://www.americanapparel.net/storefront/images/cart/cc1.gif>" /></td></tr><tr><td><img alt="discover" src="<https://www.americanapparel.net/storefront/images/cart/discover_logo.gif>" /></td><td width="2"></td><td><p><img alt="amex" src="<https://www.americanapparel.net/storefront/images/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](http://divaboutiques.com/store/about_us.html%22%3E%3C/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.php?main_page=testimonials_manager_all_testimonials"><font> color="#666666" size="2">Customer Testimonals</font></a> </li><li><a href="[http://divaboutiques.com/store/discount\_coupon.html"><font](http://divaboutiques.com/store/discount_coupon.html%22%3E%3Cfont) color="#666666" size="2">Discount Code Offers</font></a> </li><li><a href="[http://divaboutiques.com/store/how\_to\_checkout.html"><font](http://divaboutiques.com/store/how_to_checkout.html%22%3E%3Cfont) color="#666666" size="2">Payment Options </font></a></li><li><a href="[http://divaboutiques.com/store/shippinginfo.html"><font](http://divaboutiques.com/store/shippinginfo.html%22%3E%3Cfont) color="#666666" size="2">Returns & 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

4 Mar 2009, 8:15 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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

Does the error go away or change?

4 Mar 2009, 8:18 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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 ... :cool:

4 Mar 2009, 8:26 PM
#6
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

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

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 ... :cool:

What are escapes?:blush:
" " 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:D

4 Mar 2009, 8:34 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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 ... :cool:

4 Mar 2009, 11:40 PM
#8
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

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

Thank you that worked!:clap:

5 Mar 2009, 5:40 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

Thanks for the update that fixing your language file was able to resolve this issue ... :smile: