Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy Now button take me to an empty cart


BahigeEl-Mahmoud

Recommended Posts

Buy Now button take me to an empty cart -Oscommerce 2.31. The add to cart works fine. Any help is greatly appreciated!

 

check the code for it in application_top.php file

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

I had the same problem for a week after upgrading to version 2.3.1. The problem is in the catalog/includes/functions/html_output.php file. Look for this string or go to line 68 and see if yours reads "$link = str_replace('&', '&', $link);" as below.

 

if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {

$link = str_replace('?', '/', $link);

$link = str_replace('&', '/', $link);

$link = str_replace('=', '/', $link);

} else {

$link = str_replace('&', '&', $link);

 

 

Changing line 68 to read "$link = str_replace('&', '&', $link);" worked for me.

 

Good luck

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...