Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
before you start
check if this solution will work for you
1: add item to cart
2: enter it in your browser, your domain/chekcout
Edit your Cart page form action from '/cart' to '/checkout'
1: Online store > themes > Actions > Edit code > sections > cart-template.liquid
search <form action="
if you are using Dawn, then it's in 'main-cart-items.liquid' and 'cart-drawer.liquid'
before
after
Solved! Go to the solution
This is an accepted solution.
remember to back up your theme, and waiting for shopify fix this issues 🙂
I have not removed 'Google Tag Manager' and it still work (just changing the form action ), so you can keep it as you like
check status here
https://www.shopifystatus.com/
This is an accepted solution.
from @RCosmin
Kalles theme
the file that needs to be changed is cart_widget.liquid
Then - theme settings and disable the "Cart view" button.
This is an accepted solution.
issue resolved
remember change your theme back.
This is an accepted solution.
remember to back up your theme, and waiting for shopify fix this issues 🙂
I have not removed 'Google Tag Manager' and it still work (just changing the form action ), so you can keep it as you like
check status here
https://www.shopifystatus.com/
You are a lifesaver! Could you send me your Paypal email so I can send you a small donation as a "thank you"?
why not 🤣 love you 565746947@qq.com
what exactly I have to remove and what I have to add? Thank you
oh sorry seems like it not clear. I have updated post.
for this hot fix you should change your form action url to 'checkout'
Thank you. I will try
Worked just fine for dawn theme. Thank you
Much appreciated Kani.
Worked on our theme as well - I can't believe that it's been this many hours and Shopify dev team still have not found a solution.
This is an accepted solution.
from @RCosmin
Kalles theme
the file that needs to be changed is cart_widget.liquid
Then - theme settings and disable the "Cart view" button.
Hi Kani,
As a temporary solution, I've followed one of shopify partners solution : replace the checkout buton by this code : <a href="/checkout">Continue to checkout</a>.
It works and orders are now coming... which is really less frutrating !!!
It's not a good solution because there is no button at all but as orders are now coming, it's difficulte for me to stop to make tests....
Any suggestion ?
Thank you for your support !!
you can do it like this
1:duplicate you current theme
2:preview and edit it here, and publish this theme once you updated code
Thank you, amazing that it takes someone outside of Shopify's internal dev team to offer a real solution instead of just saying "try removing GTM". Much appreciated
Using the Prestige theme, and this is an excellent temporary fix, thank you Kani!!
Hi Erink,
I am also using Prestige theme but couldn't fix. Could you please share the screenshot? Thank you in advance.
You are an ABSOLUTE GENIUS! This worked straight away, thank you so much for this!
My store is using Brooklyn theme. I couldn't find the cart-template.liquid under section. Could you please tell me where I should look to? Thank you.
Hi @Sunnddy
Brooklyn theme
hi @Kani
i am using supply theme and not getting where and what i have to change, please help.
Hi @himalaya
searching keyword
<form action="/cart" method="post" class="cart-form" novalidate>
this line is showing there, please let me know what i have to replace with what.
as i have changed from " cart" to " checkout" , after doing this the cart option is not opening on website.
This is not an official solution, just for we not losing money before shopify fix checkout issue.
Hi! I have the prestige theme and cannot find the way to change this so it goes directly to checkout. Can you please advise?
Hi! We have the warehouse theme, does anyone know where to find the form action to perform this workaround until the problem is resolved?
For WAREHOUSE:
Check the section: cart-template.liquid
It was around Line 350 in the site I checked:
<form class="cart-recap" method="post" action="{{ routes.cart_url }}" novalidate="novalidate" data-item-count="{{ cart.item_count }}">
change to
<form class="cart-recap" method="post" action="/checkout" novalidate="novalidate" data-item-count="{{ cart.item_count }}">
@valentinewigs @SarahCoolersomm
if you can help me with the prestige theme I would really appreciate it!
pls search keyword 'cart' to find it
Hi, thanks for reply
Yes got main-cart.liquid but there are no words 'form action' in there
so many mails…… so I wake up LOL
issues resolved🎊
Hi Kani,
We're using Expanse. When I search for cart, this is what I see. It is not located under the section. Would you be able to guide? Thank you so so much!
<form action="/checkout" method="post" class="cart-form" novalidate>
It works! thank you very much!!
feel not confortable to do it myself. what company would you recommend for doing it?
shop is washo.ch
hi trying to look for similar solution ofr impulse theme
For IMPULSE:
temporarily removing Google Tag Manager and gtag.js from theme.liquid from both <head> and <body> sections fixed it for me.
@shadystff For the Google Tags code, I would copy/paste it into a text file keep till Shopify gets it sorted. Then you can remove it. Make sure you are removing that part from <script> to </script> so you don't cause a syntax error.
If you want me to take a look, you can DM me.
Here is my full script not sure what to leave or remove
onload="window.TWIK_SB && window.TWIK_SB()"
rel="stylesheet"/>
{% capture sb %}{% include
'sb-snippet' %}{% endcapture %}{% unless sb contains 'Liquid error' %}{%
include 'sb-snippet' %}{% endunless %}
<meta name="yandex-verification" content="4f11212743359a5e" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="{{ settings.color_button }}" />
<meta name="format-detection" content="telephone=no" />
{%- if settings.favicon -%}
{%- endif -%}{%include "preconnect"%}
{% include 'seo-title' %}
{%- if page_description -%}
{%- endif -%}
{% include 'social-meta-tags' %}
{% include 'font-face' %}
{{ 'theme.scss.css' | asset_url | stylesheet_tag }}
{% style %}
.collection-item__title {
font-size: {{ settings.type_collection_size | times: 0.8 }}px;
}
@media screen and (min-width: 769px) {
.collection-item__title {
font-size: {{ settings.type_collection_size }}px;
}
}
{% endstyle %}
{{ content_for_header }}
{% if settings.enable_currencies %}
{% unless shop.enabled_currencies.size > 1 %}
{% endunless %}
{% endif %}
{%- if request.page_type contains 'customers/' -%}
{%- endif -%}
{% include 'booster-common' %}
{% render 'judgeme_core' %}
{% comment %}
Enable below script if page transitions enabled
{% endcomment %}
{% comment %}
{% endcomment %}
{{
'general.accessibility.skip_to_content' | t }}
{% section 'newsletter-popup' %}
{%- if settings.cart_type == 'drawer' -%}
{%- include 'ajax-cart-template' -%}
{%- endif -%}
{%- if settings.enable_currencies -%}
{%- include 'currency-modal' -%}
{%- endif -%}
{% comment %}
Custom markup for slider arrows using theme icons
{% endcomment %}
{%- if settings.predictive_search_enabled -%}
{%- include 'predictive-template' -%}
{%- endif -%}
{% include 'video-modal' %}
{% include 'photoswipe-template' %}
{% if template contains 'product' %}
{% include 'recently-viewed-product-template' %}
{% endif %}
{% if template contains 'collection' %}
{% endif %}
{% include 'booster-discounts' %}
{{ 'currency_converter_setting.css' | asset_url | stylesheet_tag }}{{
'currency_converter_setting.js' | asset_url | script_tag }}{% include
'currency_converter_setting' %}
{%include "footer_content"%}
{% if template contains 'product' %}
{% elsif template contains 'cart' %}
{% endif %}
I have the Empire theme, where do I go to change from cart to checkout.
How does this work on Warehouse theme?
A whole days biz in the bin
I just wanted to say THANK YOU. It works!!
I changed in DAWN "main-cart-items" this
<form action="{{ routes.cart_url }}" class="cart__contents critical-hidden" method="post" id="cart">
to
<form action="/checkout" class="cart__contents critical-hidden" method="post" id="cart">
A big big THANK YOU!!!
Hi,
can someone help for minimal theme.
Hello, i am using the debutify theme and having trouble to find the form action thing, here a screenshot:
doensnt seem to be it 😕
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024