Shopify themes, liquid, logos, and UX
Hi. On our webshop; www.bearlifestyle.nl you need to press the buy button twice since a while.
I dont know why this is happening, also deleting your item from the pop up shopping cart gives a white screen sometimes.
Unfortunately our site developer is nog very cooperative so if somebody knows a quick fick it will be much appreciated 🙂
Solved! Go to the solution
This is an accepted solution.
Double-tap is because of the Kaktus App -- do not know which one it is, but preventing Apps JS from loading in my browser fixes the double-tap problem.
As for the empty cart drawer -- I can't be 100% sure but i'd change the following in your assets/theme.js (some code is replaced with ... for brevity)
from
async _changeLineItemQuantity(lineKey, targetQuantity) {
...
const cartContent = await (await fetch(`${Shopify.routes.root}cart/change.js`, {
...
body: JSON.stringify({
id: lineKey,
quantity: targetQuantity,
sections: ["cart-drawer"]
})
to
async _changeLineItemQuantity(lineKey, targetQuantity) {
...
const cartContent = await (await fetch(`${Shopify.routes.root}cart/change.js`, {
...
body: JSON.stringify({
id: lineKey,
quantity: targetQuantity,
sections: [extractSectionId(this)]
})
Basically it's the sections: line which I see as line 2002 in your theme.js
For me its not working, sometimes i even get this message and after a while and few clicks it works again.. Very strange
This is an accepted solution.
Double-tap is because of the Kaktus App -- do not know which one it is, but preventing Apps JS from loading in my browser fixes the double-tap problem.
As for the empty cart drawer -- I can't be 100% sure but i'd change the following in your assets/theme.js (some code is replaced with ... for brevity)
from
async _changeLineItemQuantity(lineKey, targetQuantity) {
...
const cartContent = await (await fetch(`${Shopify.routes.root}cart/change.js`, {
...
body: JSON.stringify({
id: lineKey,
quantity: targetQuantity,
sections: ["cart-drawer"]
})
to
async _changeLineItemQuantity(lineKey, targetQuantity) {
...
const cartContent = await (await fetch(`${Shopify.routes.root}cart/change.js`, {
...
body: JSON.stringify({
id: lineKey,
quantity: targetQuantity,
sections: [extractSectionId(this)]
})
Basically it's the sections: line which I see as line 2002 in your theme.js
This fixed both the problems, thanks!!!
Is there a way I can search in theme.js for that specific code? I have the same issue with the double click on the "add to basket"
Our Webshop; www.gooshpads.dk seems to have the same problem unfortunately, and I cant find any videoes explaining why.
Kind regards
You have an element created by this app https://apps.shopify.com/assortion which covers the cart button and is removed upon first click:
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024