What is this?
This is a patch for
v4.0 of Bullet. The following resolves a bug where the "Add to cart" button would cease functioning if both media sliders are turned off. You can use the following fix so you do not have to upgrade to Bullet
- From Shopify admin, go to Actions → Edit code
- In the search bar type
product.js, then open the file.
- Scroll to line
- On line
268substitute the code you see with the following:
if (this.pageTotalElement) this.totalPages = this.pageTotalElement.getAttribute('counter-total');
No code workaround
This workaround consists into enabling one or two of the media sliders. This will resolve the problem without having to edit the theme's code.
- From your Shopify admin, go to
Online Store > Themes.
- Find the theme you want to edit, then click Customize.
Products > Default productfrom the top bar drop-down menu
- Then in the side bar, click
Desktop media styleor
Mobile media styleselect