- This topic has 3 replies, 2 voices, and was last updated 14 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 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 › Adding cart to WP Page
I tried to follow a few previous posts about creating a page with [show_wp_shopping_cart] in the WP HTML editor. My problem is that when I click my add to cart button and I just hop to the top of the post…. how do you link it to the “checkout” page? The sidebar widget is on right now… and working…. and the “checkout” page is sitting in the wings waiting to work.
Here’s my link to a product: http://www.modgrain.com/blog/category/ipad-accessories/
There’s a add to cart button towards the bottom of the post. It works fine if I use the sidebar widget.
Here’s a link to my Checkout Page: http://www.modgrain.com/blog/checkout/ which works as well if you add something to the cart. There’s just no way for a user to get to it?
Thanks.
The simple shopping cart do not have an automatic redirection to the checkout page but here is the simple tweak that you need for this.
Search for the following in the “wp_shopping_cart.php” file:
}
else if ($_POST['cquantity'])
once you find those lines add the following just above it:
$checkout_url = "http://www.your-site.com/checkout-page-url";
$redirection_parameter = 'Location: '.$checkout_url;
header($redirection_parameter);
exit;
Just specify the URL of your checkout page and you are good to go.
Thanks! This works with the addition of a “;” after the url.
Corrected my previous post.