Add PayPal Express Button to Popup Cart

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeAdd PayPal Express Button to Popup Cart

This topic has been marked as not a support question.

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?

May 23, 2017 at 11:23 am #59260

Hi,

Unfortunately, there is no other way to modify the notification message.

BR,
ThemeBurn team

May 25, 2017 at 10:39 am #59308
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.