Guest johngood Posted February 27, 2007 Share Posted February 27, 2007 Hello, When the user adds a product to the basket, the site stays on the product page. I would like that it goes to the cart page. I've tried to add a onClick event to the addtobasket button, but it seems to be far from that simple. Any help would be appreciated thanks in advance. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2007 Share Posted February 27, 2007 I've seen this question answered before in this forum and probably cc.org as well... try a little search. I will look and see if I can find the post but someone else may be able to help you quicker. Quote Link to comment Share on other sites More sharing options...
roban Posted February 27, 2007 Share Posted February 27, 2007 EDIT includes/boxes/shoppingCart.inc.php with a text editor. FIND these lines of code: $basket = $cart->add($_POST['add'],$quantity,""); } INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above): if($ccUserData[0]['customer_id']>0) { header("Location: cart.php?act=step2"); } else { header("Location: cart.php?act=cart"); } exit; SAVE file and upload to your server. Quote Link to comment Share on other sites More sharing options...
Guest johngood Posted February 27, 2007 Share Posted February 27, 2007 thanks Roban, this does more than what I was expecting. Quote Link to comment Share on other sites More sharing options...
Guest johngood Posted February 27, 2007 Share Posted February 27, 2007 works like charm. thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.