Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Adding cart to WP Page

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Adding cart to WP Page

Tagged: cart, Link, Page

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 10 months ago by amin007.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • May 28, 2010 at 3:47 am #1270
    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.

    May 28, 2010 at 6:40 am #21006
    amin007
    Participant

    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.

    May 28, 2010 at 9:23 pm #21007
    Modgrain
    Member

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

    May 29, 2010 at 1:57 am #21008
    amin007
    Participant

    Corrected my previous post.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ