Shopify / buy-button-js

BuyButton.js is a highly customizable UI library for adding ecommerce functionality to any website.

Home Page:http://shopify.github.io/buy-button-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Modal options not isolated between products

nickembrey opened this issue · comments

If I have two Buy Buttons representing two products on my page, one with the following in its options:

"modalProduct": {
...
"buttonWithQuantity": true,
...
},

and the other with:

"modalProduct": {
...
"buttonWithQuantity": false,
...
},

whichever Buy Button's modal I open first will also determine the behavior of the other Buy Button's modal.

i.e., if I open the first product modal first, then close it, then open the second product modal, it will have a button with quantity. If I open the second first, then the first will not.

This is expected behaviour. The assumption is that the experience for buy buttons would be the same across all buttons on the same page. For the best user experience, I would encourage you to configure the buttons on the same page with the same behaviours!