- This topic has 5 replies, 2 voices, and was last updated 15 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 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 › Very Basic Problem
Problem is it’s not working. Here’s the page with the add to cart button:
http://www.theamericanbookofthedead.com/buy-the-book/
Clicking it just refreshes the same page.
Instead of coming here: http://www.theamericanbookofthedead.com/100 which shows up fine in preview.
Thanks.
@Henry, the simple shopping cart does not have “Automatic Redirection to checkout page” option. When you click the “Add to cart” button it’s actually adding the product to the shopping cart.
(?) OK, then I’ll have to find something else. Is there a hack for this or does the full version offer a redirect? Because without it people won’t know it’s been processed.
The WP eStore has this option and yes you can hack it very easily on the free version too. All you have to do is add a line of PHP code that redirects to the checkout page after “Add to cart” button is clicked.
Which is and where? I’m not very PHP-literate. Really like the plugin and its simplicity except for the redirect part.
Find the following bit of code in the “wp_shopping_cart.php” file:
if ($_POST)
once you find it you will need to add the following at the end of that if statement block:
$checkout_url = "www.your-checkout-url.com/checkout");
$redirection_parameter = 'Location: '.$checkout_url;
header($redirection_parameter);
Please note that a bit of PHP knowledge is required to be able to do this modification (I can’t really teach you PHP).