Hey Zen folks;
I will try to pose this clearly as I may.
On a site (1.3.9.alphabetsoup) I have both Paypal (the big yellow button) and Google checkout that show up on the shopping cart page. This is very nice.
When you go to Google but use the 'edit your order" link, you are brought back to the shopping cart page. Again very nice.
But, when you go to Pay pal via the big yellow button, and choose to return to the site via the "return to merchant link" at the bottom of the page, you go back to the ZC login page, not the shopping cart. This is not so nice.
Further, if you happen to be logged in to ZC already, and use the return to merchant link, you find yourself on the ZC shipping method page. Really not nice...
Now to the meat of my question.
In each case, when you return from paypal, the $_GET['ec_cancel'] is set to "1".
So, is there any badness to happen if I test for the ec_cancel flag on the login and shipping pages and if set, redirect back to the shopping cart?
perhaps something like:
This makes sense to me, but is there some unfortunate "gotcha" I'm overlooking?Code:if(isset($_GET['ec_cancel']) { redirect(... to shopping cart... sensible...); exit(); }
Thanks!



