Guest xxchrisukxx Posted August 8, 2007 Share Posted August 8, 2007 Hi. Any body know of a way I can get my site to take customers straight to the shopping cart page when someone adds a product? Thanks in advance Quote Link to comment Share on other sites More sharing options...
roban Posted August 8, 2007 Share Posted August 8, 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): // start mod: redirect to basket if($ccUserData[0]['customer_id']>0) { header("Location: cart.php?act=step2"); } else { header("Location: cart.php?act=cart"); } exit; // end mod: redirect to basket SAVE file and upload to your server. Instructions if Text Input Fields for Products has been installed: EDIT includes/boxes/shoppingCart.inc.php with a text editor. FIND these lines of code: } else { $basket = $cart->add($_POST['add'],$quantity,"",""); } // end: Text Input Mod } INSERT this block of code AFTER the above lines (being careful to add the code after the curly bracket shown above): // start mod: redirect to basket if($ccUserData[0]['customer_id']>0) { header("Location: cart.php?act=step2"); } else { header("Location: cart.php?act=cart"); } exit; // end mod: redirect to basket SAVE file and upload to your server. Quote Link to comment Share on other sites More sharing options...
Guest xxchrisukxx Posted August 8, 2007 Share Posted August 8, 2007 thanx for all your help. 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.