You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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