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

Automatic redirect after "add to cart"

by

Tips and Tricks HQ Support Portal › Forums › Simple PayPal Shopping Cart › Simple Shopping Cart Tweaks › Automatic redirect after "add to cart"

Tagged: multi step checkout, redirect

  • This topic has 5 replies, 2 voices, and was last updated 15 years, 6 months ago by amin007.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • December 17, 2009 at 7:45 am #573
    wisconsin
    Member

    Hi,

    I have a multiple page check out process and I would like to set certain “add to cart” buttons to prompt a redirect to another page immediately after the user clicks “Add to Cart”.

    Is this possible. I am pretty comfortable(as a hack) with php, if you have some direction for me?

    Thanks very much.

    Chris

    December 17, 2009 at 8:40 am #16783
    amin007
    Participant

    in the “wp_shopping_cart.php” file search for the following line of code

    if ($_POST['addcart'])

    inside that if statement you can add your condition and put the redirection code so it redirects to the target page.

    Once you do this it will work similar to what it doesn’t when you add a product from my products page

    http://www.tipsandtricks-hq.com/products

    December 17, 2009 at 2:07 pm #16784
    wisconsin
    Member

    I sell services. Quesions:

    1) Is this automated in wp-e store plugin? I really a hack and I think this what I would do, but not sure…

    if($_POST) {

    header(“Location: whatever.com/nextproductpage.html”);

    …and where would I put it? Could I just stick it here?


    Line 143 if ($_POST)

    (should I place the code here or will it redirect too soon since it needs to process of of this other stuff?)

    Line 145 {

    Line 147 $count = 1;

    Line 149 $products = $_SESSION;


    2) Can I use your wp-ecommerce plug in to sell services. I want to put a button on one page and then on another and walk people through a multipage check out process. Can I use wp-ecommerce for that?

    3) If yes to number 2, since I already have wp simple installed and set up in upgrading going to force me to start over?

    4) does the “terms and conditions feature come with wp-ecommerce.

    Thanks very much.

    Chris

    December 17, 2009 at 2:38 pm #16785
    wisconsin
    Member

    … and I should add that the redirect really can’t always default to the same page. Really it would need to be something like:

    if on page A, then redirect to page B

    If on page B, then redirect to page C

    etc…

    am I asking for too much?

    Thanks,

    Chris

    December 17, 2009 at 9:32 pm #16786
    wisconsin
    Member

    You can disregard the last post. I went ahead and purchased wp eStore and it’s a great plugin. Does a lot of what I need and is very simple to use. Since it has the feature that anchors you to the shopping cart after purchase, I think that I can just provide a link at the bottom of the page to bring the customer to the next offer…

    …but I think it would be nice to be able to include a custom message (for that product specifically). I could then provide an instant message and/or link that would not appear until added to cart.

    is there any way to do that now?

    Thanks,

    Chris

    December 18, 2009 at 5:55 am #16787
    amin007
    Participant

    Nope… but this sounds like a good idea though. I have plans to add a few “Upselling type features” into the WP eStore so would be good if you can explain and put this on the WP eStore Wishlist page (http://www.tipsandtricks-hq.com/ecommerce/?p=148)

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

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • 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
  • 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

Our Other Plugins

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

Copyright © 2025 | Tips and Tricks HQ