Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attribues Lost Upon Logout or Cart Merge


breakerjump

Recommended Posts

Posted

Interestingly, this is the first time I have ever posted a code problem on forums, ever. I usually hunt down answers myself, or bang the code against the wall until it works. This problem has me completely stumped, however. So on to the point:

 

I am working with a pretty generic install of osCommerce, except for the install of a contribution that adds checkbox attributes to the existing dropdown attributes for a product, as well as a completely custom template designed by another designer. When browsing the store as a visitor, one can locate a product, select attributes/options for that product and add it to their cart successfully. The product attributes persist to the cart and the price increase per attribute persist through the product subtotal and overall cart total. Apparently, those attributes also persist in the 'customer_basket_attributes' table as well. Once you checkout, redirect to the login page, login and head back to your cart, the attributes are completely lost, although they still persist in the basket attributes table. If one logs in before adding a product with attributes, the attributes persist through checkout confirmation just fine, however if one logs in, adds a product and then logs out, upon logging back in the attributes are lost again, though still persisting in the basket attributes table.

 

This issue happens when the session id is assigned via cookie and when it is maintained via POST. It also occurs whether or not sessions are stored in the file system or in the database.

 

I know there must be someone running around these forums with a knowledge of and intimacy with osCommerce verging on unhealthy. Please advise...

Posted

How can you have a pretty generic install of osCommerce, with a checkbox attributes on a custom template?

 

I am working with a pretty generic install of osCommerce, except for the install of a contribution that adds checkbox attributes to the existing dropdown attributes for a product, as well as a completely custom template designed by another designer.

 

oscommerce does not use cookies it uses sessions and if cookies are set to true you need to set to false.

 

 

This issue happens when the session id is assigned via cookie and when it is maintained via POST. It also occurs whether or not sessions are stored in the file system or in the database.

Archived

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

×
×
  • Create New...