Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to Cart Button Does not work since upgrade


seanmccabe

Recommended Posts

Hi all,

 

I have recently upgraded my store to 2.3.0 as per the instructions in the documentation and have had to fix a dozen problems, and finally got it up and going again, or at least I thought so.

 

When I try to add a product to cart I get the message "Your Shopping Cart it empty! Whether logged in or not.

 

I have searched and searched through this forum and a dozen others and cannot find a solution.

 

I have tried:

  • turning register_globals ON - No difference, reverted to false
  • .htaccess file to turn them on - No difference, deleted.
  • Turned on "Prevent Spider Sessions" - No difference
  • Turned on "Recreate Session" - No difference, reverted to false
  • Turned on Force Cookie Use - No difference, reverted to false

I am at my wits end of how to get this to work, and have run out of ideas.

 

This is my configure.php from /includes/

define('HTTP_SERVER', 'http://www.myurl.com');
define('HTTPS_SERVER', 'https://www.myurl.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'www.myurl.com');
define('HTTPS_COOKIE_DOMAIN', 'www.myurl.com');
define('HTTP_COOKIE_PATH', '/store/');
define('HTTPS_COOKIE_PATH', '/store/');
define('DIR_WS_HTTP_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/user/domains/myurl.com/public_html/store/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Any and all help will be greatly appreciated :)

Link to comment
Share on other sites

Hi,

 

you can see only your codes. It should be appreciated that you get some error messages. The error messages give some point of the fixes. It would be very hard to find out your problem even if you need some debug codes.

 

Look after error messages on the server or install an error message collector first.

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

hi,

you sure this is right

define('DIR_FS_CATALOG', '/home/user/domains/myurl.com/public_html/store/');

 

john

 

Definitely. Checked with the old version configuration and it's the same. That's from the root of the hosting. What else could it be?

 

Hi,

 

you can see only your codes. It should be appreciated that you get some error messages. The error messages give some point of the fixes. It would be very hard to find out your problem even if you need some debug codes.

 

Look after error messages on the server or install an error message collector first.

 

Got rid of all the PHP errors, there were very easy to fix, so got the store all operational with no error codes now, but this add to cart button just doesn't work. It also didn't work before I fixed the PHP errors.

Link to comment
Share on other sites

Or you could try replacing

 

product_info.php

 

And

 

application_top.php

 

with original files from 2.3

 

to maybe localise the problem.

John

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Or you could try replacing

 

product_info.php

 

And

 

application_top.php

 

with original files from 2.3

 

to maybe localise the problem.

John

 

That appears to have fixed the problem, thanks very much. It must be noted, I never actually had includes/classes/osc_template.php

I was only asked for it when I did as you suggested. Might possibly have been the solution itself.

 

Anyway Many Thanks @@joli1811

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...