Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Bug?: Show dropdown box empties shopping cart?


boschg

Recommended Posts

Sorry for the 2nd post. But I forgot a good Topic Title.

Moderator: Can you delete for 1st post and/or merge them. Thanks.

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

 

Hi,

 

I was experiencing a funny bug:

 

- Place any of your products to the shopping cart. One or more, it doen't matter.

- Go to a Category where Products of different Manufactures are listed up.

- In this case the dropdown box "Show" appears with all the Manufactures of the products listed.

- Change from "All Manufacturers" to a different one.

- The page is now reloaded and YOU SEE THAT THE SHOPPING CART IS EMPTY.

 

I was now looking in the code and found out that the form that sends the "filter" isn't sending the osCsid. Therefore the reloaded page looses the cart.

 

I solved the issue like that:

Find the following lines in file /catalog/index.php (approx. line 277):

 

echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
while ($filterlist = tep_db_fetch_array($filterlist_query)) {

Replace with:

 

echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
//Bug fixing for: Use of Pull Down Menue empties the shipping cart, because osCsid is missing
echo tep_draw_hidden_field('osCsid', $HTTP_GET_VARS['osCsid']);
//End of Bug fixing
while ($filterlist = tep_db_fetch_array($filterlist_query)) {

 

I don't know if someone else is also having this problem, I didn't cross check this on a brand new installation. This works for osCommerce 2.2-MS2.

 

I was also looking at the index.php of the latest CVS Version. But besides of a new naming for the function calls this section of the code is the same.

 

Could it be that the bug is still unfixed? :'(

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...