Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / shopping_cart.php Formatting test for TEXT_INFORMATION

shopping_cart.php Formatting test for TEXT_INFORMATION

Views: 2,752

Results 1 to 4 of 4
17 Oct 2013, 11:59 PM
#1
mr_bill_s avatar

mr_bill_s

New Zenner

Join Date:
Jul 2012
Posts:
2
Plugin Contributions:
0

shopping_cart.php Formatting test for TEXT_INFORMATION

Hi folks, I'm making progress setting up my website but I've run into block.
On the "Your Shopping Cart Contents" page, we have this:
"You may want to add some instructions for using the shopping cart here. (defined in includes/languages/english/shopping_cart.php)"

I don't want to delete the text but change it. I'm using the proper override shopping_cart.php file so I think it's just something I'm doing wrong.

I want to put something like this in there (formatting didn't come out right but this will give you some idea):

define('TEXT_INFORMATION', '<p>When you add an item to your Shopping Cart, it will be saved there until you're ready to Checkout, at which point it can be purchased or removed. The Shopping Cart gives you the following options:<br>
 </p>

<ul> <li>Review your order. This feature lets you check the items in your Shopping Cart to make sure they're correct.<br>  </li> <li>Update the quantity. To do this, simply type in the quantity you wish to purchase and click "Update."<br>  </li> <li>Remove an item from your Shopping Cart. Click the "Delete" box, or change the quantity to zero and click "Update."<br>  </li> <li>Return to shopping. Click "Continue Shopping" to search the site for additional items. (The products you've already selected will remain in your Cart while you continue shopping.) You can return to your Shopping Cart anytime by clicking the "Cart" link in the upper right hand corner of the screen.<br>  </li> <li>Proceed to secure Checkout. When you are ready to purchase your item(s), click "Checkout." Our checkout process is fast, easy, and secure.<br>  </li> </ul>');

When I put this in there my shopping cart page comes up blank so I'm doing something wrong.
Also, not sure if it makes a difference, but I format it using Front Page and take the code between <body> and </body>

Thanks,

Bill

18 Oct 2013, 12:22 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: shopping_cart.php Formatting test for TEXT_INFORMATION

'<p>When you add an item to your Shopping Cart, it will be saved there until you're 

Don't know if this was part of the formatting that did not come out right or actually how you are entering it
But if it is then the highlighted apostrophe ends the string

18 Oct 2013, 12:51 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: shopping_cart.php Formatting test for TEXT_INFORMATION

As kobra said, any text in a define which contains special characters like an apostrophe must have the special character 'escaped' with a leading backslash, like this:

When you add an item to your Shopping Cart, it will be saved there until you're ready to Checkout

20 Oct 2013, 1:02 AM
#4
mr_bill_s avatar

mr_bill_s

New Zenner

Join Date:
Jul 2012
Posts:
2
Plugin Contributions:
0

Re: shopping_cart.php Formatting test for TEXT_INFORMATION

The apostrophe in there was the error, I missed it thanks for the help.

Bill