Top

Hide the PayPal Button in Cart

To hide the PayPal button in the cart, follow these steps:

  1. From "Shopify Admin", select Online Store.

    select online store 

  2. Select Actions.

    select actions 

  3. Select Edit HTML / CSS.

    select edit html/css 

  4. Under "Templates", select cart.liquid.

    Note: If your theme uses sections, you may have to look under "Sections" in cart-template.liquid instead.

    select cart.liquid 

  5. Look for: {% for item in cart.items %}

    look for this code 

  6. Copy and paste this code below the line:
    {% assign hide = false %}
    {% if item.product.type == 'Market Place' %}
    {% assign hide = true %}
    {% endif %}

    copy and paste below the line 

  7. Find the Paypal button, like this: {{ content_for_additional_checkout_buttons }}

    find the paypal button 

  8. Wrap this code around it:
    {% unless hide %}
    {% endunless %}
    

    wrap this code around it 

  9. Select Save.

    select save 

That's it!

Have more questions? Submit a request