I am creating a custom theme / plugin for Marketpress. I need to have a choice of Buy It Now / Add To Cart the same way eBay does (see attached).
Result: redirected me to the cart when I:
* tried just using two buttons with two different names / values.
* tried to different 'form' tags with the same action etc...
Result: Added to the cart via Ajax when I :
* created an onSubmit function captured which button was pressed and dynamically changed the action variable on the form to: http://compumatter.biz/store/cart/ and http://compumatter.biz/store/shopping-cart/shipping
Upon closer observation I see that when submitted, admin-ajax.php is called with action=mp_update_cart so that is superseding any coding I put in place.
I've tried everything and anything and can't get those 2 different buttons to do the following:
Buy Now - add the item to the cart and go the cart directly (or even to shipping)
Add To Cart - add the item to the cart via ajax and go nowhere (which is default behavior it seems)
What sayeth the group.