Remove the Express Checkout buttons from first Checkout Page (PayPal, Apple Pay, Google Pay)

Shopify
Community Manager
Community Manager

checkout-button.jpg

 

This tutorial details how to remove the Express Checkout buttons from the first page of your checkout. When we say Express Checkout Buttons we are referring to the accelerated checkouts such as Apple Pay, Shop, Google Pay, and PayPal.

 

Checkout with Express Checkout buttons: 

 

27-58-fnixx-xn69x

 

Checkout without Express Checkout buttons:

 

27-52-xdiwh-2zf4q

 

 

 

Step one:

 

We will add the Express Checkout button code to the cart file so that these buttons will appear on the cart page instead of the checkout:

 

  1. From your admin, go to Online store > Themes > Actions > Edit code.
  2. In the Sections folder, locate the cart-template.liquid file. If your theme doesn’t have a cart-template.liquid file, locate the cart.liquid file in the Templates folder instead.
  3. Find the following code cart.general.checkout
     
     

    08-31-i5pvq-safli.png

  4. Paste the following block of code on a new line underneath the code in step 3: 
    {% if additional_checkout_buttons %}
    <div class="additional-checkout-buttons">
      {{ content_for_additional_checkout_buttons }}
    </div>
    {% endif %}
     
  5. The cart file should now appear as follows: 08-58-ykuap-7lyay.png

  6. Click Save.

Step 2:

 

We will now hide the Express Checkout buttons on the cart page using CSS code:

 

  1. From your admin, go to Online store > Themes > Actions > Edit code.
  2. In the Assets folder, locate the theme.scss.liquid file.
  3. Paste the following CSS code at the very bottom of this file: 
    .additional-checkout-buttons {
      display: none !important;
    }​
  4. The CSS file should now appear as follows: 08-03-9sxwz-e570t.png

  5.  Click Save. 

Result: The Express Checkout buttons should no longer appear on the first stage of the checkout. If the buttons (Apple Pay, Google Pay, Shop Pay, or PayPal Express) are still present, a previous checkout session may still be active so clear your browser’s cookies and cache and begin a new session on your store.