Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Dear Community,
i need your help, with hiding the accelerated checkout buttons in the shopify checkout.
We did the workaround as described in this tutorial: https://community.shopify.com/c/Shopify-Design/Remove-the-Express-Checkout-buttons-from-first-Checko...
This has worked fine for the past year or so, but the buttons have now started reappearing in certain scenarios.
Here is a brief description of how we set up the custom code:
Adding the buttons to the cart template. They are present.
Hiding the buttons via css "d-none" class.
Cookies are set by the buttons on the cart page.
Yet, buttons are displayed in the checkout.
We started noticing this last week. Most commonly in incognito browser session, chrome and safari on mobile devices.
I am guessing, this has something to do with cookies. I believe, the checkout checks, wether the accelerated checkout buttons cookies exist in the browser and then displays the buttons. I might be wrong.
Has anyone noticed a change how the buttons behave in the checkout?
Thank you
Looks like they have fixed it
Hi Thomas,
Seems like since the mid of 2022, the liquid / CSS code to hide the checkout button does not work anymore. To hide the express checkout payment method, you will need an app that utilize Shopify Functions.
I have made an app to hide the Paypal Express (and other express checkout method like Apple Pay, Google Pay etc) on the top part of checkout page, and customer can still select Paypal method at the payment step.
The app is made using native Shopify Functions, thus it does not affect your store existing layout or functionality at all.
The app name is Yagi Express Payment Hider (https://apps.shopify.com/yagi-express-payment-hider)
The app also have a workaround which you can hide the express checkout buttons for returning customers with saved address, but you will need to create a placeholder shipping rate for it to work, this will also work with one-page checkout.
Hope this can help!
Regards,
Axel Kee
We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024