Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Editing woes


Guest

Recommended Posts

Posted

Hi

 

I was wondering if anyone can show me what I am doing wrong here. it keeps croping from time to time when I am editing .php files. This will be the easiest way for it to "sink" into my head!

 

Parse error: parse error in /home/andybh/public_html/shop/includes/languages/english/shipping.php on line 17

 

 

Here is the full code for shipping.php

 

<?php

/*

$Id: shipping.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

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

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

 

define('TEXT_INFORMATION', '<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>Warranty Statement</B></FONT><B></B></P>

<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">All Products come standard with one year manufacturers' warranty unless otherwise stated. All new PCs comes standard with 1 year Parts 3 Years Labour Return to Base Warranty. A 30% restocking fee will apply if the package has been opened and demand refund. Full deposited funds may not be refunded if you wish to cancel order. No goods will be accepted for return, refund or credit 7 days from the date of invoice. Right click Solutions will not accept and replace any damaged goods caused by misuse or improper handling. Labour may be charged if goods returned found not faulty. Software is non-refundable if opened. Servicing and maintenance covered with 90 days hardware warranty. Networking and software error is not warrantable. Charges may incur for networking repair due to human error.Right Click Solutions;are not responsible for any loss or damage that occurs to any product whilst in transit to Right Click Solutions. </FONT></P>

<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>Procedures for Warranty Returns</B></FONT><B></B></P>

<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">Obtian a Return Authority (RA) number by calling: 08 8088 6666, fax: 08 8088 6555 or <BR>email: </FONT><A HREF="mailto:[email protected]"><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">[email protected]</FONT></A><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"> <BR>All products returned for warranty repair are to be packed in a suitable container with the Return Authority (RA)number clearly visible. <BR>All products returned for repair will be accepted under the terms of the warranty agreement, as stipulated by the manufacturer. <BR>Goods returned for warranty are accepted subject to inspection of the manufacturer and/or the authorised repairer agent.<BR><B>You may check the status of your goods returned by calling:</B> 08 8088 6666 or <BR>email: </FONT><A HREF="mailto:sales@rightclicksolutions"><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">sales@rightclicksolutions</FONT></A><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"> </FONT></P>

<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"><B>Returning Goods</B></FONT><B></B></P>

<P><FONT FACE="Arial,Helvetica,Geneva,Sans-serif,sans-serif"></FONT><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">All goods are to be returned, in a suitable shipping container and with the RMA number clearly visible on the outer packaging to: <BR>Right Click Soltuions <BR>82 Nicholls St<BR>Broken Hill NSW 2880 <BR>Email: </FONT><A HREF="mailto:[email protected]"><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif">[email protected]</FONT></A><FONT SIZE="-1" FACE="Verdana,Tahoma,Arial,Helvetica,Sans-serif,sans-serif"> </FONT></P><br><br>');

?>

 

Thanks

Andy

:shock:

Posted

Most of the time this means you either forgot a semi-colon [;], or as in this case you have a problem with quote's

 

The single-quote in "manufacturers' warranty" needs to go, because php thinks this is the end ogf your string.

 

You're essentially doing, this:

 

define('TEXT_INFORMATION',  '...manufacturers' warranty...' );

The PHP parser thinks your string ends after manufacturers, and after that chokes(sp?) on the extra 'garbage' information ater that.

 

Hope that clears it up,

Rob

Posted

Thanks mate for your help.

 

I am new to php but gaining great knowledge from my peers like yourself really helps a lot and making php easier!

 

Cheers

Andy

:P

Archived

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

×
×
  • Create New...