Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / I keep creating errors in shopping cart file

I keep creating errors in shopping cart file

Locked

Views: 1,584

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
4 Nov 2009, 5:41 PM
#1
fishface avatar

fishface

New Zenner

Join Date:
Feb 2009
Posts:
44
Plugin Contributions:
0

I keep creating errors in shopping cart file

Hello,

I'm using 1.3.8 with a few addons.

I keep creating an error (with creates all kind of trouble with the cart) when editing the includes/languages/english/shopping_cart.php file. I just want to add a few "instruction" lines of text. Is it the period after the sentences in my copy? I know to stay within the ' ', but not sure what I'm doing wrong.

I also want to add a few short sentences to the processing and delivered emails. Again I keep creating errors when I edit these.

Thanks for the help.....

4 Nov 2009, 6:29 PM
#2
stevesh avatar

stevesh

Black Belt

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

Re: I keep creating errors in shopping cart file

What errors are you getting?

Are there any special characters (apostrophe, etc.) in your text?

8 Nov 2009, 12:07 AM
#3
fishface avatar

fishface

New Zenner

Join Date:
Feb 2009
Posts:
44
Plugin Contributions:
0

Re: I keep creating errors in shopping cart file

Hey stevesh,

The error is: once you've made your selections (I sell t-shirts so select design, size and color) and click "add to cart" a blank page appears. Using the Debug Logging Tool, I know I'm doing something in the includes/languages/english/shopping_cart.php file. I did have a apostrophe and period in the sentences. Is this the problem? Can it only be one sentence in this file?

Thanks for the help.

8 Nov 2009, 12:25 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: I keep creating errors in shopping cart file

fishface:

Hey stevesh,

The error is: once you've made your selections (I sell t-shirts so select design, size and color) and click "add to cart" a blank page appears. Using the Debug Logging Tool, I know I'm doing something in the includes/languages/english/shopping_cart.php file. I did have a apostrophe and period in the sentences. Is this the problem? Can it only be one sentence in this file?

Thanks for the help.

Yes, an apostrophe can cause problems as they will effectively 'de quote' a text string. Periods don't tend to cause any issues.

Another common 'gotcha' is having a blank line after the closing php> tag at the end of the file. This is often an unintended addition created by some text editors.

Cheers
Rod

9 Nov 2009, 10:47 PM
#5
fishface avatar

fishface

New Zenner

Join Date:
Feb 2009
Posts:
44
Plugin Contributions:
0

Re: I keep creating errors in shopping cart file

thanks for the info!