- This topic has 0 replies, 1 voice, and was last updated 15 years ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Automatically redirect to the Checkout/Cart Page
Tagged: Automatic chekcout redirection
This instruction is for the simple shopping cart and not for the WP eStore plugin. The WP eStore plugin has an option in the settings menu that will allow you to do this.
To redirect the visitor automatically to the checkout page do the following modification:
1. open the “wp_shopping_cart.php” file in your favorite editor.
2. Search for the following
if ($_POST['addcart'])
3. Spot the closing brace “}” for this “if” statement block.
4. Add the following just before the closing brace “}”
$checkout_url = "www.your-doming-name.com/checkout-page";
$redirection_parameter = 'Location: '.$checkout_url;
header($redirection_parameter);
exit;