Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error, unexpected T_STRING


Guest

Recommended Posts

I started to use OS Commerce today, and started to edit the index.php and I know get:

Parse error: syntax error, unexpected T_STRING in /home/benswebs/public_html/benswebsite/shop/includes/languages/english/index.php on line 13

 

Here is the code of what I edited:

 

define('TEXT_MAIN', ''Welcome to Bens Shop! Everything you need is just a click away here! <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>Great Prices</b><br><br>One of the great things you will see is that are prices can beat anyone elses!.</td>
</tr>
<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td>
<td class="main" valign="top"><b>Great Support!</b><br><br>We work hard to bring you the best support you need. That's why we have one of the great staff here to help you.</td>
</tr>

<tr>
<td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '</td>
<td class="main" valign="top"><b>Securing The Administration Tool</b><br><br>Our shop has 24 hours 7 days a week live support to help you. <!-- BEGIN Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
<a href="http://benswebsite.org/support/live/main.php" target="_blank"><img src="http://benswebsite.org/support/live/icon.php" alt="Click here for Live Help - Powered by Help Center Live" /></a>
<!-- END Help Center Live Code, Copyright (c) 2005 Help Center Live. All Rights Reserved -->
</td>
</tr>

</table>
<br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" 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', 'What Do 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');
}
?>

Link to comment
Share on other sites

Ok that was fixed, and when I went to the main page, it said something was wrong on line 38, and I refreshed and it says: Fatal error: Call to a member function add_current_page() on a non-object in /home/benswebs/public_html/benswebsite/shop/includes/application_top.php on line 312

Link to comment
Share on other sites

Ok that was fixed, and when I went to the main page, it said something was wrong on line 38, and I refreshed and it says: Fatal error: Call to a member function add_current_page() on a non-object in /home/benswebs/public_html/benswebsite/shop/includes/application_top.php on line 312

the fix can be found by reading here

Link to comment
Share on other sites

Thanks, I have just one more thing,

 

Parse error: syntax error, unexpected T_STRING in /home/benswebs/public_html/benswebsite/shop/includes/languages/english/index.php on line 38

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...