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 v4.0.1
.
- From Shopify admin, go to Actions → Edit code
- In the search bar type
product.js
, then open the file. - Scroll to line
268
- On line
268
substitute the code you see with the following:
if (this.pageTotalElement) this.totalPages = this.pageTotalElement.getAttribute('counter-total');
- Save
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.
- Select
Products > Default product
from the top bar drop-down menu - Then in the side bar, click
Product page
- Under
Media
for eitherDesktop media style
orMobile media style
selectSlider
- Save