Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse errors again on Shipping & Privacy


photojen

Recommended Posts

Posted

Hi I dont know why its so hard to change the Shipping & Returns, and Privacy pages. After looking up how to, i have altered the text in (notepad) in the actual English files (kept on my PC), uploaded to site, and still have a Parse error on line 16 blah...

 

God or his mighty IT disciples, what more must i do???

Posted

Ok what is your address?

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Posted

Would help if you gave us the error and the code on the language file... a few lines before and including the line the error is on.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Posted
Would help if you gave us the error and the code on the language file... a few lines before and including the line the error is on.

 

MY SITE IS: www.collagemyphotos.com/store

 

Parse error: parse error, unexpected T_STRING in /var/www/html/store/includes/languages/english/shipping.php on line 16

 

Here is the code in one of them, but it never works for me just altering the PHP file (have to employ smarter person):

 

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', 'Shipping only applies to scrapbooking products. Shipping is a flat fee (usually of A$5.00) for Kits but is subject to addressee's location: if in remote part of Australia or other country, postage will be manually calculated and final fee paid by customer before it ships. Shipping will in most cases take 2-5 days (Australia only). Returns will only be accepted for inferior quality/items not as described, not for damage by Australia Post. All care is taken to pack Kits in cardboard. Insurance is optional at a $2.50 per package charge');

?>

Posted

to addressee's location:

 

should be

 

 

to addressee\'s location:

 

Whenever you use an ' in a sentence you MUST proceed it what an escape character otherwise PHP will process it as part of the code

My Contributions

 

Henry Smith

Posted

Without that \ php will look at that line this way

 

define('TEXT_INFORMATION', 'Shipping only applies to scrapbooking products. Shipping is a flat fee (usually of A$5.00) for Kits but is subject to addressee'

 

 

s location: if in remote part of Australia or other country, postage will be manually calculated and final fee paid by customer before it ships. Shipping will in most cases take 2-5 days (Australia only). Returns will only be accepted for inferior quality/items not as described, not for damage by Australia Post. All care is taken to pack Kits in cardboard. Insurance is optional at a $2.50 per package charge');

 

So it see the first line and it doesn't end with a ;

 

and the second line starts with an s and ends with a ' but there was no opening ' for it...

My Contributions

 

Henry Smith

Posted

Thanks . The Privacy page works as I took out all in-text apostrophes, however shipping.php page wont come up now, even with \'.

 

Will keep trying. Thanks, Jen

Posted
Thanks . The Privacy page works as I took out all in-text apostrophes, however shipping.php page wont come up now, even with \'.

 

Will keep trying. Thanks, Jen

Jen,

 

post the whole

 

/includes/languages/english/shipping.php

 

file so I can look at it

My Contributions

 

Henry Smith

Posted

Gosh youre nice. Here it is:

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', 'Shipping only applies to scrapbooking products. Shipping is a flat fee (usually of A$5.00) for Kits but is subject to addressee's location: if in remote part of Australia or other country, postage will be manually calculated and final fee paid by customer before it ships. Shipping will in most cases take 2-5 days (Australia only). Returns will only be accepted for inferior quality/items not as described, not for damage by Australia Post. All care is taken to pack Kits in cardboard. Insurance is optional at a $2.50 per package charge');

?>

 

IT TAKES OUT THE \ WHEN I HIT SAVE. Is there another way?

Posted
Gosh youre nice. Here it is:

 

define('NAVBAR_TITLE', 'Shipping & Returns');

define('HEADING_TITLE', 'Shipping & Returns');

 

define('TEXT_INFORMATION', 'Shipping only applies to scrapbooking products. Shipping is a flat fee (usually of A$5.00) for Kits but is subject to addressee's location: if in remote part of Australia or other country, postage will be manually calculated and final fee paid by customer before it ships. Shipping will in most cases take 2-5 days (Australia only). Returns will only be accepted for inferior quality/items not as described, not for damage by Australia Post. All care is taken to pack Kits in cardboard. Insurance is optional at a $2.50 per package charge');

?>

 

IT TAKES OUT THE \ WHEN I HIT SAVE. Is there another way?

 

That's why everyone recommends not to use the file manager in osc, that's what it does

 

You need to ftp the file to your computer.. modify it and ftp it back up to the server

 

OR reword it so there are no \ 's needed

My Contributions

 

Henry Smith

Posted

Maybe something like

 

define('TEXT_INFORMATION', 'Shipping only applies to scrapbooking products. Shipping is a flat fee (usually of A$5.00) for Kits but is subject to the location of the addressee: if in remote part of Australia or other country, postage will be manually calculated and final fee paid by customer before it ships. Shipping will in most cases take 2-5 days (Australia only). Returns will only be accepted for inferior quality/items not as described, not for damage by Australia Post. All care is taken to pack Kits in cardboard. Insurance is optional at a $2.50 per package charge');

?>

My Contributions

 

Henry Smith

Posted
Have done that textual change and ftped. But can you see my page? I cant.

 

http://www.collagemyphotos.com/store/shipping.php

 

Did you type that in, ot copy and paste? if you copy and pasted, it may have borken the line into several lines. It needs to be 1 line (it's ok if it word wraps on it's own, but no hard breaks or returns.)

 

If you did copy and paste, type typing it in instead and see if that corrects the page being blank.

My Contributions

 

Henry Smith

Archived

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

×
×
  • Create New...