Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error msg - how to fix?


skizzer

Recommended Posts

Posted

Hi,

 

I'm a new person, and this will be obvious after you read through this. I apologize in advance for my idiocy.

 

When I click the catalog link at the top of the admin page and I get this:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/**me**/public_html/Store/includes/languages/english/index.php on line 33

 

I downloaded the file and opened it up to find this:

 

<?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', 'whatta buncha crap.');

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', $categories['categories_name']);

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'); <------- line 33 according to the editor

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');

}

?>

 

All of the above is Greek to me, even though I've spent the last few days digging around the forums and manuals. I see a lot of stuff in the contributions that I'd like to have; but once I read the instructions, I'm out to lunch again.

 

I really wish that I could add stuff, change text, colors, designs, etc. in the admin; but of course, that ain't happening. So, I'm about ready to HIRE someone to do all of this for me - if that's possible, and I don't have to get a loan to pay for it. If anybody can help me out with this, you can send me an email at [email protected].

 

Again, I apologize for being PHP illiterate and probably bugging a few people as a result. A big load of "thanks" to anybody who tries to help.

Posted

The problem is on line 32. Line 33 error is a by-product of it.

 

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

 

remove one of the apostrophes...

Posted

Hey, that did it! You're a smart one. Thank you very much!

 

Now can someone point me in the right direction to learn how to move or comment out boxes? I found some explanation in the OSCdox, but I couldn't find HOW to comment something out. I saw some examples in the forum, but some of them have slashes with a space between them and the line, and some are right next to the line, etc. I didn't know if this mattered. And is there any way of knowing how many pages I have to do it to, and which ones? There's way too many pages to deal with, and I seem to be easily confused.

 

One last thing, until later at least. <_<

 

Does anyone know where I can find a picture to put up for items that don't have one? Like a box with "photo coming soon" or something like that? If not, I suppose I could try to make one, but what size should I do it?

 

For future reference: Do I need to put up a new post for every question I have? I have a feeling this store setup is going to take me weeks. **sigh**

 

Thanks!

Anita

Posted

To comment something out, it depends on what language you're in. If you're in php, simply place to slashes at the start of the line or surround it with /* and */. Example:

<?php
//this line is commented out.  It will not be parsed.
This line will be used.
/*
Everything after the slash/star combination will be ignored, until you use a star/slash to signify the end of a commented section
*/
This code will be used.
?>

HTML is different. Start a comment with <!-- and end it with //-->. Example:

Here's some HTML code.
<!-- This section is commented out.
It
can
span
multiple lines.  //-->
This section will be read.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Archived

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

×
×
  • Create New...