Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The darn shipping and index files...


theirishewe

Recommended Posts

I have (very pitifuly small amount) some knowledge of PHP. I've tried resetting permission to change my index file (where is says "this is the default, yadda yadda") but each time get this error message - Parse error: parse error, unexpected T_STRING in /home/hbrzizx/public_html/shop/includes/languages/english/index.php on line 13

 

I've also tried editing it offline, same result.

 

Here's the section of code, from the top, hopefully with the badly abused and now misdirecting it's anger towards me Line 13 -

<?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 (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Welcome to the inaugural launch of The Irish ewe's online store! We're hard at work, uploading new items every day, so be sure to check back often.<br><br>At this time, we are accepting PayPal for online payments. We still offer payments via check or money order, and you should see those options listed as well.<br><br>NEW - In store pick-ups! Your shipping costs will be refunded when you come in to pick up your items! Please note that you are choosing this option. We usually need only an hour or two to pick your items for you, but you will need to call or email ahead to verify that everything is all set.<br><br>Thank you for visiting The Irish Ewe!');
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');
}
?>

 

So... PHP Gurus... any words of wisdom? Am I so dumb as to not be seeing the problem? Anyone want to make a quick $30 by installing this blasted mods for me and changing my index file??

Link to comment
Share on other sites

I have (very pitifuly small amount) some knowledge of PHP. I've tried resetting permission to change my index file (where is says "this is the default, yadda yadda") but each time get this error message - Parse error: parse error, unexpected T_STRING in /home/hbrzizx/public_html/shop/includes/languages/english/index.php on line 13

 

I've also tried editing it offline, same result.

 

Here's the section of code, from the top, hopefully with the badly abused and now misdirecting it's anger towards me Line 13 -

<?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 (c) 2003 osCommerce

 Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Welcome to the inaugural launch of The Irish ewe's online store! We're hard at work, uploading new items every day, so be sure to check back often.<br><br>At this time, we are accepting PayPal for online payments. We still offer payments via check or money order, and you should see those options listed as well.<br><br>NEW - In store pick-ups! Your shipping costs will be refunded when you come in to pick up your items! Please note that you are choosing this option. We usually need only an hour or two to pick your items for you, but you will need to call or email ahead to verify that everything is all set.<br><br>Thank you for visiting The Irish Ewe!');
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');
}
?>

 

So... PHP Gurus... any words of wisdom? Am I so dumb as to not be seeing the problem? Anyone want to make a quick $30 by installing this blasted mods for me and changing my index file??

 

 

HI:

I am new too and having problems, this forum has a lot of questions, but few answers. I think the problem in your text is the "ewe's" and the rest of the words with the apostrophe. You have to put a "\" before you use the apostrophe, don's ask me why..... I have no clue. But try changing all your apostrophe's and maybe the exclamation point too to read like.... "ewe\'s". Let me know.

Link to comment
Share on other sites

Oh yah, I did forget that :blush: It's not making any differance though, but excelant point, thank you!

<?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 (c) 2003 osCommerce

Released under the GNU General Public License
*/

define('TEXT_MAIN', 'Welcome to the inaugural launch of The Irish ewe\'s online store! We\'re hard at work, uploading new items every day, so be sure to check back often.<br><br>At this time, we are accepting PayPal for online payments. We still offer payments via check or money order, and you should see those options listed as well.<br><br>NEW - In store pick-ups! Your shipping costs will be refunded when you come in to pick up your items! Please note that you are choosing this option. We usually need only an hour or two to pick your items for you, but you will need to call or email ahead to verify that everything is all set.<br><br>Thank you for visiting The Irish Ewe!');
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');
}
?>

This should work. You probably forgot there is also we're on the first line which should have been we\'re.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...