Dear Support,
I’m offering the Opencart PayPal Express Checkout module option to my customers for faster checkouts. My site is running on Opencart 2.0.2.0
I have successfully integrated the button to appear at the Cart by adding it to the Cart layout.
But I have no option to add the PayPal Express button to the Popup Cart when a user adds a product to the cart. I want to do something like the attached picture.
I have already managed to do something like this by messing with common.js file:
showNotice($sReg.get('/lang/text_cart_updated'));
if(!modal) {
$('.noty_buttons:first').append('<a href="index.php?route=payment/pp_express/express"><img src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png" width="146px" height="30px" style="margin-left:4px"></a>');
}
else {
$('.noty_buttons').prepend('<a href="index.php?route=payment/pp_express/express"><img src="catalog/view/theme/default/image/paypal_express_mobile.png" width="146px" height="30px"></a>');
}
But isn’t there a better way to achieve this by not messing with the core Pavillion code?
|
|
Hi,
Unfortunately, there is no other way to modify the notification message.
BR,
ThemeBurn team
|
|