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, 2 months ago by
amin007.
-
AuthorPosts
-
December 17, 2009 at 7:45 am #573
wisconsin
MemberHi,
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 #16783amin007
Participantin 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
December 17, 2009 at 2:07 pm #16784wisconsin
MemberI 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 #16785wisconsin
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 #16786wisconsin
MemberYou 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 #16787amin007
ParticipantNope… 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)
-
AuthorPosts
- You must be logged in to reply to this topic.