Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

conditions.php


sully6pack

Recommended Posts

This is really more of a coding question. When I paste in my terms of service as follows...

 

define('TEXT_INFORMATION', 'My huge string of text'

 

I receive this or some other errors

 

Parse error: parse error, unexpected T_STRING in /home/sully6/public_html/cart/includes/languages/english/conditions.php on line 20

 

 

There must be a way to use long strings of text in constants, similar to HERDOC?

 

Can anyone help me?

Link to comment
Share on other sites

probably you're running into escaping issues like apostrophes. you should be able to use php's HEREDOC syntax though. just before that define put

 

$my_text =<<<HTML

.

.

.

.

HTML;

 

then:

define('TEXT_INFORMATION',$my_text);

 

 

of course alot of times, i just skip the defines and such since my sites are only in English I don't need the mutli-language functionality. It's a lot easier to just edit privacy.php, shipping.php, etc directly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...