문제

I have just set myself up with PayPal payments pro and got it installed and tested etc. But there's one thing i don't like which is the PayPal express checkout link appearing in my mini cart in the right column of my website.

How do i remove this link?

I still want the link to be there on checkout so turning it off in the config menu isn't an option because it turns off both links.

Any ideas?

Thanks

도움이 되었습니까?

해결책

Easy enough. All you need to do is remove the block that is inserted via the paypal.xml You can do this via your custom theme local.xml file located in your layout folder.

Thus if you look at /app/design/frontend/base/default/layout/paypal.xml you will find the directive that places that link in this block:

<default>
        <reference name="topCart.extra_actions">
            <block type="paypal/express_shortcut" name="paypal.partner.top_cart.shortcut" template="paypal/express/shortcut.phtml"/>
        </reference>
        <reference name="cart_sidebar.extra_actions">
            <block type="paypal/express_shortcut" name="paypal.partner.cart_sidebar.shortcut" template="paypal/express/shortcut.phtml"/>
        </reference>
    </default>

Thus to remove, in your local.xml theme file you can place:

<default>
    <!-- remove from top cart -->
    <reference name="topCart.extra_actions">
        <remove name="paypal.partner.top_cart.shortcut"/>
    </reference>
    <!-- remove from sidebar -->
    <reference name="cart_sidebar.extra_actions">
        <remove name="paypal.partner.cart_sidebar.shortcut"/>
    </reference>
</default>

다른 팁

You can disable all PayPal images through the configuration.

System > Config > Payment Methods > PayPal > PayPal Express Checkout > Basic Settings > Frontend Experience Settings > PayPal Product Logo

Magento 1.9.1: Add this in local.xml

<default>
    <reference name="right">
        <remove name="paypal.partner.right.logo"/>
    </reference>
</default>

One can also remove it via "Layout Update XML" - no file changes are needed

Valid XHTML.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top