Close

2 different Add To Cart Buttons depending on viewport size?

Jhopper
9 years ago
#9400 Quote
Avatar
  • 23
Thank you for the help.

I'll have a look in our caching but its odd that it works when the page is over 1024 in width.

Where about would I put this code, within the add to cart view? Do I need to put my selectors in obviously?
iliyan.tanev
9 years ago
#9403 Quote
Avatar
  • 347
Hi,

This should solve the issue when you use back button or getting back to page that you have already visited and you quantity was different.

We were unable to reproduce anything different on lower resolutions. Everything seems to be the same on any resolution.

You need to include the code in some JavaScript that is loaded on every page where you have ajax cart.
Regards,
Iliyan Tanev
Nop-Templates Dev Team
Jhopper
9 years ago
#9443 Quote
Avatar
  • 23
Thanks a lot for the help got everything sorted now.

And that code worked a treat, will go and check my cache plugin when I have the time but that fixed it for now!

Thanks again!