Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Urgent Help Please!!!! Whole cart disappeared !


xg04

Recommended Posts

I changed something inside /var/www/html/oscommerce//includes/languages/english.php, and then the whole cart disappeared. The message I received was:

 

Parse error: parse error, unexpected T_STRING in /var/www/html/oscommerce/includes/languages/english.php on line 79

 

Could anyone help me to put my cart back.

 

Many thanks

 

 

XG04

Link to comment
Share on other sites

I think I changed

 

// page title

define('TITLE', 'osCommerce');

 

to

// page title

define('TITLE', 'logo');

 

and then I changed it back. But does not work.

 

Could anyone kindly help me?

Link to comment
Share on other sites

post lines 70-90 of /var/www/html/oscommerce/includes/languages/english.php

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

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

From line 37:

 

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

// Global entries for the <html> tag

define('HTML_PARAMS','dir="LTR" lang="en"');

 

// charset for web pages and emails

define('CHARSET', 'iso-8859-1');

 

// page title

define('TITLE', 'osCommerce');

 

// header text in includes/header.php

define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

define('HEADER_TITLE_MY_ACCOUNT', 'My Account');

define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');

define('HEADER_TITLE_CHECKOUT', 'Checkout');

define('HEADER_TITLE_TOP', 'Top');

define('HEADER_TITLE_CATALOG', 'Catalog');

define('HEADER_TITLE_LOGOFF', 'Log Off');

define('HEADER_TITLE_LOGIN', 'Log In');

 

// footer text in includes/footer.php

define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

 

// text for gender

define('MALE', 'Male');

define('FEMALE', 'Female');

define('MALE_ADDRESS', 'Mr.');

define('FEMALE_ADDRESS', 'Ms.');

 

// text for date of birth example

define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

 

// categories box text in includes/boxes/categories.php

define('BOX_HEADING_CATEGORIES', 'Categories');

 

// manufacturers box text in includes/boxes/manufacturers.php

define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');

 

// whats_new box text in includes/boxes/whats_new.php

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

// quick_find box text in includes/boxes/quick_find.php

define('BOX_HEADING_SEARCH', 'Quick Find');

define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');

define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');

Link to comment
Share on other sites

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

needs to be

 

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

All single quotes inside of a string need to be escaped by a backslash.

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

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

sorry, doesn't work.

 

message is:

 

Parse error: parse error, unexpected T_STRING in /var/www/html/oscommerce/includes/languages/english.php on line 146

 

and it changed back to 'what's new' after I changed it to 'what/'s new and saved.

 

thank you

Link to comment
Share on other sites

sorry, doesn't work.

 

You're going to have to pay a *little* bit better attention with this php stuff.

 

It's rather particular.

 

:thumbsup:

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

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

I tried what\'s new.

 

It kept changing back to:

 

// whats_new box text in includes/boxes/what's new.php

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

 

Thank you

Link to comment
Share on other sites

Stop using the file manager in the osC Admin. it's broken, and will break your store.

 

Get an FTP program, and a text editor. FTP download the file to your dektop, make the edit, and FTP upload it back to your store.

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

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...