Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password?

Search the Forum

Tips and Tricks HQ Forum » Simple PayPal Shopping Cart » Simple Shopping Cart Tweaks

Adding cart to WP Page

(4 posts) (2 voices)
  • Started 1 year ago by Modgrain
  • Latest reply from amin007
  • Related Topics:
    1. Coupon code area not showing up in the cart on my page
    2. Adding Quantity Before Adding to Cart
    3. Issue when adding items to cart..?
    4. Inventory Control and Adding to Cart
    5. Refresh Web Page Increases Shopping Cart Item Quantity?

Tags:

  • cart
  • Link
  • Page
  1. Modgrain
    Member

    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.

    Posted 1 year ago #
  2. amin007
    Key Master

    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.

    Posted 1 year ago #
  3. Modgrain
    Member

    Thanks! This works with the addition of a ";" after the url.

    Posted 1 year ago #
  4. amin007
    Key Master

    Corrected my previous post.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ Forum is proudly powered by bbPress

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin