Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error


Shana

Recommended Posts

Posted

I'm basically keeping the layout of the default messages on the main page. I thought I was being careful in only changing the text, but I'm getting a parse error on line 13 (which begins below). I'm an idiot and didn't copy the index.php before making alterations. Can anyone see my error here?

 

define('TEXT_MAIN', Welcome to Sweet Slings online store, bringing slinging mainstream one Sweet Thing at a time! I try to offer the widest variety of product choices in the simplest way possible, but remember the beauty of Sweet Slings is the ability to customize your sling to suit you. There is a spot to enter comments or specific instructions at checkout. Have fun shopping!

 

Thanks SO much for your help!

Posted

There should be a single quote at the start, one at the end with a close bracket and semi-colon.

 

Like:

 

define('TEXT_MAIN', 'Welcome................Have fun shopping!');

Posted

Actually, I found that while I was waiting for replies, but when I put in the ' I get an unexpected '>' on line 13 now.

 

There should be a single quote at the start, one at the end with a close bracket and semi-colon.

 

Like:

 

define('TEXT_MAIN', 'Welcome................Have fun shopping!');

Posted
Post the lines above and below so we can see them.

 

<?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 to Sweet Slings online store bringing slinging mainstream one Sweet Thing at a time! I try to offer the widest variety of product choices in the simplest way possible, but remember the beauty of Sweet Slings is the ability to customize your sling to suit you. There is a spot to enter comments or specific instructions at checkout. Have fun shopping!<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Sweet Slings Ring Slings</b><br><br>The most versatile baby sling available. Sweet Slings Ring slings are fully adjustable, guaranteeing a perfect fit every time, for every size parent and baby. Sweet Slings Ring Slings are made with a full, extra long tail to allow for discreet nursing, covering baby from the sun and wind, and sleeping. All Sweet Slings Ring Slings include an extra deep pocket. Sweet Slings Ring Slings are also available in a lightweight version that is a smaller width fabric and shorter tail, for those who prefer a smaller, quicker, more on the go ring sling." target="_blank"><u>here</u></a>.</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td><td class="main" valign="top"><b>Sweet Slings Pouch Slings</b><br><br>The easiest to use baby sling. Sweet Slings Pouch Slings have no rings, buttons, or snaps. No adjustment is necessary, as the slings are custom-made to fit the wearer. Sweet Slings Pouch Slings are small and light. All Sweet Slings Pouch Slings are lined with a lightweight, contrasting fabric and include toy loops for attaching toys, binkys, or other items baby likes and Mom doesn't like to always pick up!</td></tr><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '</td><td class="main" valign="top"><b>Sweet Slings Mai-Tai Slings</b><br><br>The best sling for long periods of slinging and carrying baby on your back. The Sweet Slings Mai-Tai Sling goes over both shoulders, distributing baby's weight evenly. Baby can be carried Mom's front or back and allows for a 'tighter' carry than other slings. Sweet Slings Mai-Tai Slings are always lined with a soft contrasting fabric, padded, and sized to fit any wearer and will grow with the baby. Sweet Slings Mai-Tai Slings include a curved head support that can be folded down for a fashionable contrast or left up for additional head support for young, or sleeping babies. Sweet Slings Mai-Tai Slings are also available in a lightweight version that is a slightly smaller width fabric and shorter body, for those who prefer a smaller Mai-Tai for very small babies." target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

 

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

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', 'Let\'s See What We Have Here');

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', 'What\'s New Here?');

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

define('HEADING_TITLE', 'Categories');

}

?>

Posted

You have half of an anchor tag there. The bold print is the problem:

 

Sweet Slings Ring Slings are also available in a lightweight version that is a smaller width fabric and shorter tail, for those who prefer a smaller, quicker, more on the go ring sling." target="_blank"><u>here</u></a>

 

Remove that section and it should be ok.

Posted
I just noticed that error appears twice, so you have to remove two instances of it.

 

No dice. I removed both of them, but I'm still getting my unexpected T_STRING on line 13 error.

Posted
No dice. I removed both of them, but I'm still getting my unexpected T_STRING on line 13 error.

 

Ah ha!!! I took out that whole big section and replaced it with a tiny paragraph to isolate the prob. my same error just moved lines. Turns out it has something to do with the ' I had in there. Are there more than one type of '? It doesn't look any differently than before, but it must be because it's working. At least my tiny paragraph shows up. I can probably cut, paste, copy, and save my way to something temporarily acceptable.

 

Whew! Thanks again for the assistance!

Posted
Ok, I think I see it. Where you have:

 

'tighter'

 

Change it to:

 

\'tighter\'

 

 

Hey Peter! Thanks so much! Check it out! I've got it up and decent! http://sweetslings.net/osc It was a bit of a stressful morning, but I made it! Thanks again for all the help!

Archived

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

×
×
  • Create New...