Closed 7ammer closed 8 years ago
Worked it out..
var form = document.querySelector('.paypalform');
paypal.minicart.cart.on('add', function (idx, product, isExisting) {
this.remove(idx);
paypal.minicart.view.hide();
form.submit();
});
Hello,
It would be great to know how to restore a specific paypal button so that it is not effected by minicart. An example usage would be to allow paypal's donation buttons to go straight to paypal instead of being stored in the cart.
Thank you for your time :)