I want to add a new button next to Place Order button in the Shopping Cart, I attach an image, I will be graetful if you can help me.
I edited this file /var/www/html/mage/vendor/magento/module-checkout/view/frontend/web/template/review/actions/default.html and I add a button like the previus one, but any change was made in the fronted.
Then I tried to add the button with js in this file /var/www/html/mage/vendor/magento/module-checkout/view/frontend/templates/onepage.phtml with the next js:
require(['jquery'], function($){
$(document).ajaxComplete(function() {
$('<button type="button" class="button action primary checkout" style="width: auto; margin-left: 5px;" value="Place Proposal"><span>Place Proposal</span></button>').insertBefore($('.action.primary.checkout'));
});
});
And again no change was made in the fronted. I think is for the Ajax that hasn’t load all the component when I call this function.
I want something like this, can you help me?