App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
The mobile cart view on my website is not working when you click it nor is the search list; however, everything seems to work just fine in the desktop view. My customers are not able to go to cart to view and some are evening having issues adding to cart on mobile....please help.
yrushcollective.com is by url.
Solved! Go to the solution
This is an accepted solution.
Yes that’s right.
Hello @YRush !
<script>
function addToCartMobileClick() {
if (!/product/.test(window.location.href)){
return;
}
var btn = document.querySelector(`#mst-stiky-box button`);
btn.addEventListener('click', function(){
var atc = document.querySelector(`.grid__item.row_grid_qnt button`);
atc.click();
});
}
addToCartMobileClick()
</script>
Thanks,
Digital Artisans
I tried that and it's still doing the same thing on the mobile. Does it need time to update perhaps?
Hello @YRush,
Kindly also update.
Thanks,
Digital Artisans
Once I entered the code, I saved. Am I missing something.
My apologies for all the questions....this part is foreign language to me.
Hello @YRush ,
Once you enter the code save it and refresh. Please make sure you follow accurately the code placement.
Thanks,
Digital Artisans
ok so I place the code here:
Is this accurate?
This is an accepted solution.
Yes that’s right.
ok...it still won't update on the mobile for some odd reason. Thanks for your input!