Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in code


cavack

Recommended Posts

This error has suddenly appeared in our shop.

 

Parse error: parse error, unexpected T_STRING in /home/golf1/public_html/catalog/includes/languages/english/checkout_success.php on line 20

 

 

Can anyone suggest waht might be wrong with the code. I've copied line 20 of the code below:

 

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">'My Account'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">'History'</a>.');

 

 

Thanks in advance

C

Link to comment
Share on other sites

This error has suddenly appeared in our shop.

 

Parse error: parse error, unexpected T_STRING in /home/golf1/public_html/catalog/includes/languages/english/checkout_success.php on line 20

Can anyone suggest waht might be wrong with the code. I've copied line 20 of the code below:

 

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">'My Account'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">'History'</a>.');

Thanks in advance

C

 

Try this and see if it works for you, I'm not sure that I found everything however it should be close. You had several apostrophes in the string which always need to be proceeded with an \ :

 

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>');

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...