newmeat Posted April 21, 2008 Posted April 21, 2008 Another 'Newbie' question..... In catalog/includes/languages/english/shipping.php there is a bit where you can 'Enter your shipping text here' Now I want to have text and then the delivery rates in a table. I have pasted the text and code between the brackets but get a: Parse error: syntax error, unexpected T_STRING in /home/sites/tartanmarine.co.uk/public_html/store/includes/languages/english/shipping.php on line 323 I guess I am trying to do some wrong between html and php The code on line 323 is: <P><BR> <BR><STRONG>Overseas:</STRONG> All orders will be despatched using Business Post or DHL which guarantees delivery anywhere in the world within 5 days. Carriage will be charged at cost. Please note that for countries in the EEC, VAT will be charged at the standard rate.<BR><BR><STRONG>Carriage free for all <U>UK mainland</U> orders over £100 (Excluding foils, spars, sails, boats and trailers).<BR><BR><BR>VAT<BR></STRONG>Prices shown are inclusive of VAT where applicable. Children's clothing and books are VAT exempt. Export orders can be charged without VAT.</P> <P> </P></TD></TR></TBODY></TABLE>'); Anyone any ideas why it doesn't like it??? Can you put tables between ' ' in php??
newmeat Posted April 22, 2008 Author Posted April 22, 2008 Ok so it must be a stupid question..... Which file controls the main page layout when you click on delivery & returns in the LH column??
FIMBLE Posted April 22, 2008 Posted April 22, 2008 Here you go this is the complete page, from catalog /includes / languages / english / shipping.php <?php /* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ 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><BR> <BR><STRONG>Overseas:</STRONG> All orders will be despatched using Business Post or DHL which guarantees delivery anywhere in the world within 5 days. Carriage will be charged at cost. Please note that for countries in the EEC, VAT will be charged at the standard rate.<BR><BR><STRONG>Carriage free for all <U>UK mainland</U> orders over £100 (Excluding foils, spars, sails, boats and trailers).<BR><BR><BR>VAT<BR></STRONG>Prices shown are inclusive of VAT where applicable. Children's clothing and books are VAT exempt. Export orders can be charged without VAT.</P> <P> </P></TD></TR></TBODY></TABLE>');'); Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted April 22, 2008 Posted April 22, 2008 you need to get rid of one of the ;) at the end and add ?> at the end ! Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted April 22, 2008 Posted April 22, 2008 <?php /* $Id: shipping.php 1739 2007-12-20 00:52:16Z hpdl $ 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><BR> <BR><STRONG>Overseas:</STRONG> All orders will be despatched using Business Post or DHL which guarantees delivery anywhere in the world within 5 days. Carriage will be charged at cost. Please note that for countries in the EEC, VAT will be charged at the standard rate.<BR><BR><STRONG>Carriage free for all <U>UK mainland</U> orders over £100 (Excluding foils, spars, sails, boats and trailers).<BR><BR><BR>VAT<BR></STRONG>Prices shown are inclusive of VAT where applicable. Children's clothing and books are VAT exempt. Export orders can be charged without VAT.</P> <P> </P></TD></TR></TBODY></TABLE>'); ?> Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted April 22, 2008 Posted April 22, 2008 You have Children's which has an unescaped apostrophe.
FIMBLE Posted April 22, 2008 Posted April 22, 2008 which means it needs to go in as Childrens\'s Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
newmeat Posted April 22, 2008 Author Posted April 22, 2008 You have Children's which has an unescaped apostrophe. Sh*t forgot all about that, many thanks. The bit of code I pasted above was only part of what I was trying to put in. Now forgetting about the unescaped apostrophe would the follow be alright??? Forget that I have tried it and it works fine......thanks for all your help!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.