Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I give up - please help!


jennymac

Recommended Posts

I'm getting the following error message and my eyes are literally falling out of my head. I have searched and researched and cannot figure it out. Help would be MORE than appreciated! The error message is:

Parse error: parse error, unexpected T_STRING in /home/XXXXXX/public_html/includes/languages/english/index.php on line 23

 

 

 

 

<?php

 

/*

 

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

define('TEXT_MAIN',' WELCOME and Thank You for stopping by! Before you look around, there are just two rules: <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. (Only available to towns that accept USPS Express Shipping). </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <'A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.

Link to comment
Share on other sites

Well that's not going to work.....

 

 

define('TEXT_MAIN',' WELCOME and Thank You for stopping by! Before you look around, there are just two rules: <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. (Only available to towns that accept USPS Express Shipping). </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <'A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.

 

define('TEXT_MAIN',' needs to be wrapped,

 

define('TEXT_MAIN','); like this.

 

if you are going to use (your text) i think it needs to be ((your text )) your text finished);

 

it shits you when it's that easy ha.

Link to comment
Share on other sites

by the way you could have added this information to the /catalog/index.php file. not the one in English/index.php

 

Thanks - I didn't set the site up, but now I'm stuck with it. One of those nights - the electricity went out for about an hour in the midst of all this. Rats. Your help (much appreciated) is getting me there, but now I'm getting this:

 

Parse error: parse error, unexpected T_STRING in /home/XXXXXX/public_html/includes/languages/english/index.php on line 23

------------------------------

 

<?php

 

/*

 

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

define('TEXT_MAIN','); 'WELCOME and THANK YOU for stopping by. Before you look around, there are just two main rules: <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. (Only available to towns that accept USPS Express Shipping). </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <'A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.

Link to comment
Share on other sites

Ok, it's past 2:30am and I have been working on this for eons! I REALLY would appreciate some further help. I'm still getting this message: Parse error: parse error, unexpected T_STRING in /home/xxxxxx/public_html/includes/languages/english/index.php on line 23.

 

I have to get some sleep, but in the meantime I have customers emailing me asking why my store isn't open. Probably because I'm blonde, but nevertheless, I would be beyond grateful if someone could help. Here's the offending bit..Thank you SO much in advance!! Off to bed....Jennifer

 

 

<?php

 

/*

 

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

define('TEXT_MAIN','); 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. </p><b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <'A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.

Link to comment
Share on other sites

Replace this bit::

 

define('TEXT_MAIN','); 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. </p><b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <'A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.

 

with ::

 

define('TEXT_MAIN', 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <A HREF=http://www.paypal.com "TARGET="_new"><u>PayPal</u></a> using 128-bit encryption technology. Please <A HREF="contact_us.php"><u>contact us</u></a> if you have any questions.');

 

that should fix it

Link to comment
Share on other sites

Your <'A HREF is wrong to begin with shoulda had a " not a ' but the linking is wrong anyhow, you will lose the basket.

 

the link should be something like

<a href="' . echo tep_href_link(FILENAME_CONTACT_US) . '">Contact Us</a>

I think but I may be wrong... I know it needs the tem_href

 

See if that fixes the problem.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

yes wendy is right

 

use this i've tested on my site and it works:

 

define('TEXT_MAIN', 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <a href="http://www.paypal.com" target="_blank"><u>PayPal</u></a> using 128-bit encryption technology. Please <a href="' . tep_href_link(FILENAME_CONTACT_US) . '"><u>contact us</u></a> if you have any questions.');

 

You may need to edit the layout, but the text appears and links work :thumbsup:

Link to comment
Share on other sites

yes wendy is right

 

use this i've tested on my site and it works:

 

define('TEXT_MAIN', 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <a href="http://www.paypal.com" target="_blank"><u>PayPal</u></a> using 128-bit encryption technology. Please <a href="' . tep_href_link(FILENAME_CONTACT_US) . '"><u>contact us</u></a> if you have any questions.');

 

You may need to edit the layout, but the text appears and links work :thumbsup:

Link to comment
Share on other sites

Back at it this morning. Thanks so much for all your help. I'm ALMOST there. Now I'm getting this error:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jenny6/public_html/includes/languages/english/index.php on line 63

 

Here's the whole enchilada. If one more customer emails to tell me my site is down, I will go bonkers! Many, many thanks in advance!

--------------------------

 

<?php

 

/*

 

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

 

 

osCommerce, Open Source E-Commerce Solutions

 

http://www.oscommerce.com

 

 

 

Copyright © 2003 osCommerce

 

 

 

Released under the GNU General Public License

 

*/

 

define('TEXT_MAIN', 'WELCOME and THANK YOU for stopping by. Before you look around there are just two main rules. <b>YOU MUST BE AT LEAST 18 TO PURCHASE ANYTHING! I CANNOT AND WILL NOT SHIP ANY SALVIA PRODUCT TO MISSOURI OR LOUISIANA - NO EXCEPTIONS!</b> That being said, have fun and enjoy the journey! <b>OVERNIGHT SHIPPING AVAILABLE, JUST ADD IT TO YOUR BASKET. Only available to towns that accept USPS Express Shipping. </b> All credit card orders are processed securely via <a href="http://www.paypal.com" target="_blank"><u>PayPal</u></a> using 128-bit encryption technology. Please <a href="' . tep_href_link(FILENAME_CONTACT_US) . '"><u>contact us</u></a> if you have any questions.

<img align="left" src="/images2/Eyes.gif">

<p><b><font face="Eurostile"><font color="#008000" size="4"><center>VERY GOOD NEWS! The Thai powder is back in stock with more on the way! So for the moment, briefly no doubt, all strains of Kratom are back in! We now offer several varieties, giving you a wonderful choice of products including the seed pods - now you can grow your own! <p>Be sure and check out the many other products that recently arrived such as the Artemisa Capillaris, P. Somniferum Gigantheum Seeds, Skullcap, and some yummy items from NAG CHAMPA. Super for gifts! </p><font color="#ff0000" size="4"> </font><font color="#000000"><font size="4">The

Special Thai Kratom Premium Strength powder

that sold out in one day is a real find - it is EXTREMELY rare and comes from an island near Thailand harvested from very old Kratom trees. It is a superb analgesic and has a very low incidence of nausea, if at all. <p>Also, the shipment of Kratom Bali Premium Blended Commercial Leaf arrived and the VERY rare Kratom seed pods are in stock, but are already getting low! Now you can grow your own!<p><b><font size="4">And to add to all this good news, the Kratom 15x is now ONLY $3.50 per gram! So stock up as it is going fast!</p></b>

</font></font><font color="#008000" size="4><font size="4" color="#008000">The Salvia Community has discovered our unbelievable

extracts; not only have they raved about the 20x with 100mg of Salvinorun-A from Canada, the infamous Purple Sticky Salvia arrived and for the first time ever, contains 160mg in the 40x extract! </font><font color="#000000"><font size="4">And take advantage of the Salvia Leaf Sale - the prices are VERY low. The leaf is directly from a farm in Oaxaca, Mexico with no middleman! We have received wonderful reviews on all our Salvia products as you can see in the review section.</font><font size="4"> </font></font><font size="4" color="#008000">

<font color="#008000">

</font><p>I pride myself on providing the best customer service I possibly can. If

you have a special request, just ask and I will do my very

best to assist you. <font color="#008000"></p><p>The poster shop and book store have their own shipping rates. </font><font color="#008000"><font size="4">There are some very nice alternative and spiritual subjects in both that would make thoughtful gifts.</font></b></p></center>

 

<p>

<font size="4" face="Verdana, Arial, Helvetica, Geneva" color="#000000"><b>Also Available:</font></font></b>

<p>

<img SRC="http://www.jennymacs.com/images/pointer_blue.gif" width="8" height="7"> <b><a href="http://www.jennymacs.com/jennymacsbooks/" TARGET="_new"><u>Bookshop</u></a> -- In association with Amazon.com, we offer you thousands of Books, CDs and DVDs. <br>

<p>

<img SRC="http://www.jennymacs.com/images/pointer_blue.gif" width="8" height="7"> <a href="http://www.jennymacsposters.com" TARGET="_new"><u>Posters & Prints</u></a> -- Over 900 masterpieces to choose from: Herbs, Buddha, Mother Nature, Stonehenge, Egyptian, Goddesses, and more.<br></b>

 

');

 

define('TABLE_HEADING_NEW_PRODUCTS', 'Just A Few Products');

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'ENJOY!');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 '');

define('TEXT_NOW', '' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'WELCOME!');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

Link to comment
Share on other sites

YES! I am forever indebted to you and your children and your grandchildren. Can you tell I'm thankful?!? What is so strange about these kind of things is that I never even have been close to that bit of code. How do things muck themselves up with no human intervention?? Just a rhetorical question, no need to answer! <grin>

 

THANK YOU!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...