buy it now (on addtocart and list) #4168
f1-outsourcing
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is a nice solution for adding a button to buy a product quickly, going directly to checkout (although it does not clear your cart first)
https://magento.stackexchange.com/questions/123072/magento-1-9-how-to-add-buy-now-button-in-product-page
However this is a solution for the product page. I would like to have this button also on the list.phtml.
on the addtocart.phtml we have this
onclick="productBuyNowForm.submit(this)"
on the list.phtml we have this
$this->getAddToCartUrlCustom($_product, [], false);
onclick="customFormSubmit('<?php echo $_cartUrl ?>', '<?php echo $_params ?>', 'post')"
this carUrl is something like this:
..../checkout/cart/add/uenc/aHR0cDovLzE5Mi4xNjguMTEuMTkvc2hvcC9lbl9nYi9rZW1wby5odG1s/product/13/
I was wondering what the method/url is for adding the product to the cart and going to checkout from the list overview. If that is even possible on this page.
Beta Was this translation helpful? Give feedback.
All reactions