Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error


Amalthea

Recommended Posts

Posted

I have been trying to cutomize my cart. I looked at the beginner's guide under the contibutions. I am not having a problem with that. It reads fairly easy. When I first started customizing (shipping.php, privacy.php) I did not have a problem. I understand where the text is supposed to go with php. For some reason whenever i try to edit the english.php or index.php I get an error message like this

 

Parse error: parse error, unexpected T_STRING in /home/dljewe2/public_html/cart/includes/languages/english.php on line 79

 

Any suggestions on how to fix this. I was editing in the file manager if that matters

Posted

I just got the same problem when trying to change the title from osCommerce to my title. I would love to know why this keeps happening. Any help would be great! This is the line I changed:

 

FROM:

define('TITLE', 'osCommerce');

 

TO:

define('TITLE', 'Cards by Karen');

 

I don't understand what could have cause an error.

Posted

Read in my signature "Psst?? Got a parse error??" and this will shwo you both how to edit files. Also, when using apostrophies in text escape with a backslash as in:

 

Let's = wrong

Let\'s = right

 

Vger

Posted

Ok I see where I had the problem on line 79 but now I am getting another error for line 146. I don't have an apostrophe there. Here is the lines for that area. Any idea why I would get the parsing error for this:

 

// javascript messages

define('JS_ERROR', 'Errors have occured during the process of your form.nnPlease make the following corrections:nn');

Posted

Got it finally.

 

Have one more question. How do I change the background color for my haeder. I don't understand where to put the bgcolor=# code

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...