Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I keep adding text lines to catalog


Gap30

Recommended Posts

Rookie question want to put approximately a pargraph in an add on page keep getting parse error or string error.

 

Parse error: parse error, unexpected T_STRING in /home/keepsake/public_html/osCommerce/catalog/sell_your_collection.php on line 15

 

this what line 15 & 16 looks like

 

define('TEXT_INFORMATION', 'If you would like to liquidate your collection please send a complete list of the items you wish to sell. We need to know the year, name, box condition and quantity for each item. If possible, pictures of the collection would be appreciated. Additionally, include your lowest asking price for each item plus the lowest asking price for the whole collection. We'll review your information and get back to you, generally within 10-14 days.'

 

define('TEXT_INFORMATION','Please be aware that in our current economy, prices on collectibles are down, this includes Hallmark. We do not base our quotes on a percentage of book/market value but on our knowledge of current secondary market retails. You can email your list to [email protected] or contact us there so we can provide you with a postal address or fax number to use in forwarding us this information.');

 

How do you keep adding sentences to displayed text??

Thanks for the assist sorry post is so long.

 

Greg :blush:

 

?>

Link to comment
Share on other sites

You have definet TEXT_INFORMATION twice. one needs to be renamed. However you could just place a paragraph tag at the end of the first one and it would look like this.

define('TEXT_INFORMATION', 'If you would like to liquidate your collection please send a complete list of the items you wish to sell. We need to know the year, name, box condition and quantity for each item. If possible, pictures of the collection would be appreciated. Additionally, include your lowest asking price for each item plus the lowest asking price for the whole collection. We'll review your information and get back to you, generally within 10-14 days.<p>
Please be aware that in our current economy, prices on collectibles are down, this includes Hallmark. We do not base our quotes on a percentage of book/market value but on our knowledge of current secondary market retails. You can email your list to [email protected] or contact us there so we can provide you with a postal address or fax number to use in forwarding us this information.');

You can use html tags in the text to display however you want it to.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

You have definet TEXT_INFORMATION twice. one needs to be renamed. However you could just place a paragraph tag at the end of the first one and it would look like this.

define('TEXT_INFORMATION', 'If you would like to liquidate your collection please send a complete list of the items you wish to sell. We need to know the year, name, box condition and quantity for each item. If possible, pictures of the collection would be appreciated. Additionally, include your lowest asking price for each item plus the lowest asking price for the whole collection. We'll review your information and get back to you, generally within 10-14 days.<p>
Please be aware that in our current economy, prices on collectibles are down, this includes Hallmark. We do not base our quotes on a percentage of book/market value but on our knowledge of current secondary market retails. You can email your list to [email protected] or contact us there so we can provide you with a postal address or fax number to use in forwarding us this information.');

You can use html tags in the text to display however you want it to.

 

thanks for the reply did the suggested changes still getting error message:?

 

Parse error: parse error, unexpected T_STRING in /home/keepsake/public_html/osCommerce/catalog/sell_your_collection.php on line 15

 

thanks

greg

Link to comment
Share on other sites

thanks for the reply did the suggested changes still getting error message:?

 

Parse error: parse error, unexpected T_STRING in /home/keepsake/public_html/osCommerce/catalog/sell_your_collection.php on line 15

 

thanks

greg

Make sure you write something like

We'll
as
We\'ll
Link to comment
Share on other sites

Make sure you write something like

as

 

Thanks for the suggestion just tried we'll changed to we will- same error.

Removed <p> from text line and put every thing on same line still geting error

 

Parse error: parse error, unexpected T_STRING in /home/keepsake/public_html/osCommerce/catalog/sell_your_collection.php on line 15

 

What a'm I missing sure that its something simple?

 

define('TEXT_INFORMATION', 'If you would like to liquidate your collection please send a complete list of the items you wish to sell. We need to know the year, name, box condition and quantity for each item. If possible, pictures of the collection would be appreciated. Additionally, include your lowest asking price for each item plus the lowest asking price for the whole collection. We will review your information and get back to you, generally within 10-14 days. Please be aware that in our current economy, prices on collectibles are down, this includes Hallmark. We do not base our quotes on a percentage of book/market value but on our knowledge of current secondary market retails. You can email your list to [email protected] or contact us there so we can provide you with a postal address or fax number to use in forwarding us this information.');

?>

 

thanks

greg

Link to comment
Share on other sites

Thanks for the suggestion just tried we'll changed to we will- same error.

Removed <p> from text line and put every thing on same line still geting error

 

Parse error: parse error, unexpected T_STRING in /home/keepsake/public_html/osCommerce/catalog/sell_your_collection.php on line 15

 

What a'm I missing sure that its something simple?

Just notice it now but normally you have the source files in your catalog directory and the belonging language files inside the (calalog)/includes/languages/english/ etc. directories.

Define's like this are inside the language files while the error indicates an error in a source file called sell_your_collection.php. Could it be you mixed source and language files meaning putting the wrong one in the wrong directory ?

Link to comment
Share on other sites

Just notice it now but normally you have the source files in your catalog directory and the belonging language files inside the (calalog)/includes/languages/english/ etc. directories.

Define's like this are inside the language files while the error indicates an error in a source file called sell_your_collection.php. Could it be you mixed source and language files meaning putting the wrong one in the wrong directory ?

 

:blush: Yes!!! I copied the wrong file to catlog/sell_your_collection.php. looks great just like I want it thanks for suggestion. Know I will have to work on my links. Proably won't be the last to mix files.

 

thanks

Greg

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...