I would like to remove the gpay, apple pay, meta pay buttons from my cart page but they are still appearing when I disable dynamic checkout on the cart page from the backend.
To remove the dynamic checkout buttons (such as Google Pay, Apple Pay, and Meta Pay) from the cart page, you can try using the following steps:
- Go to your Shopify admin and click on “Online Store” in the left-hand menu.
- Click on “Themes” and then click on the “Actions” dropdown menu for your active theme.
- Select “Edit code” from the dropdown menu.
- In the “Layout” folder, click on the “cart.liquid” file.
- Find the section of the code where the dynamic checkout buttons are displayed. It should look something like this:
{% unless cart.is_empty %}
{% if cart.has_items %}
{{ content_for_dynamic_checkout_buttons }}
{% endif %}
{% endunless %}​
- Remove or comment out this section of code by placing {% comment %} and {% endcomment %} tags around it like this:
{% unless cart.is_empty %}
{% if cart.has_items %}
{% comment %}
{{ content_for_dynamic_checkout_buttons }}
{% endcomment %}
{% endif %}
{% endunless %}
​
This will remove the dynamic checkout buttons from the cart page. Note that this will only work if you have disabled dynamic checkout on the cart page in your Shopify settings.
I hope this helps! Let me know if you have any other questions or need further assistance.
Thank you @SocialAutoPost for your response. After further investigation, we removed
from the cart.liquid file and it seems to resolve the issue.
1 Like
Glad to know that it got fixed !
