Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

BuyNow & Shopping_cart.php session problems


Recommended Posts

I have a problem with a small store that I am building. I am using 2.2-CVS from Dec. 4 2002.


When I add a product to the shopping cart via a buynow button on a remote page, it does not always get added to the cart correctly. When I click on the BuyNow button, sometimes the item shows up in the cart, sometimes it does not. I have not been able to pin down the exact cause of it due to it being a completely random event. The second problem which I assume is related, is that when items are in the shopping cart, if I select the remove box or change the quantity, and click on the Update button, it does not always update the shopping cart contents.


Originally I assumed that the problem was tied to my BuyNow button being on a page outside of the /catalog/ until I noticed that the Update seemed to have the same problem within the actual shopping cart.


There was an older article http://www.oscommerce.com/forums/viewtopic.php...ighlight=buynow that seems similar, but doesnt appear to have a resolution, if anybody has had this problem, and was able to fix it please let me know.


To see what I am talking about you can go to a remote buynow test page of my site at http://www.quickwriter.com/temp/factsalign.php The store is not live yet, so feel free to play with it.

>Insert witty comment here<

Link to comment
Share on other sites

you do not have a session id on that buy now link so the moment someone refusing cookies orders and then orders again it 'deletes' the cart.


solution: copy the session inintiating code from application_top.php to the

'outside catalog' buy now and create a link with the session id appended to it. Function to do that is in catalog/includes/functions/general.php and is called tep_href_link();




"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites


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

  • Create New...