I'm using Magento 2 CE with Porto Theme.

Also referred but it's for Magento 1

How to remove paypal express checkout link from mini cart in right column

I have tried from Admin Paypal Settings. But logo is still displaying on

How to remove it from Mini Cart & Shopping Cart Page?

6 Answers 6


You can remove logo using backend.

Stores -> Configuration -> Sales -> Payment Method

Paypal Express Checkout Tab

Click Configure Button,

Go To Basic Settings - Paypal Express Checkout section,
Click on Advanced settings.

Set No to Display On shopping Cart option.

  • I already tried on Magento 2 CE. It's not working at all.
    – Jackson
    Commented Nov 17, 2016 at 7:16
  • Have you remove cache and var folder? Are you using Paypal Express Checkout? Commented Nov 17, 2016 at 7:16
  • Yes tried all. I think need to override with xml file. Last option
    – Jackson
    Commented Nov 17, 2016 at 7:18
  • have you found any solutions for this issue, If yes Please share your solutions. Commented Nov 17, 2016 at 11:58
  • Nope. I didn't get my solutions. Answer which u have given i already tried before Posting the Question
    – Jackson
    Commented Nov 18, 2016 at 1:14

Copy this file to your custom theme:




And remove the line number 59:

<div data-bind="html: getCartParam('extra_actions')"></div>

Or copy the file that renders the specific PayPal logo here:


There's a bug in Magento 2.1 where "Display On shopping Cart" option doesn't work.

More information: https://github.com/magento/magento2/issues/6073

  • Login in admin panel
  • Stores -> Configuration -> Sales -> Payment Method
  • Select Payments Standard tab -> Basic Settings - PayPal Website Payments Standard
  • Advanced Settings -> Display on Shopping Cart => No

enter image description here


Create event.xml in your custom module like this and disable "paypal_shortcuts" observer

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="shortcut_buttons_container">
        <observer name="paypal_shortcuts" instance="Magento\Paypal\Observer\AddPaypalShortcutsObserver" disabled="true"/>

Thanks Erfan for finding the Magento bug link.

Magento has indeed fixed this issue but it has only been applied to their 2.2 code base. If you are on a previous version you can replicate their commit changes, https://github.com/magento/magento2/commit/b4b721444be8c6257d64059b3b0b5d0f1fb1466b into your site.

In a custom module overwrite the PayPal Minicart Button Block


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magento\Paypal\Block\Express\InContext\Minicart\Button" type="YourCompany\YourModule\Block\Express\InContext\Minicart\Button" />


namespace EsteSolutions\AddToCart\Block\Express\InContext\Minicart;

class Button extends \Magento\Paypal\Block\Express\InContext\Minicart\Button
 * Check `visible_on_cart` config value
 * @return bool
private function isVisibleOnCart()
    return (bool)(int) $this->config->getValue('visible_on_cart');

 * @return bool
protected function shouldRender()
    return $this->payment->isAvailable($this->session->getQuote())
        && $this->isMiniCart
        && $this->isInContext()
        && $this->isVisibleOnCart();
  • $this->config and $this->payment are private variables... Commented Nov 6, 2017 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.