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

Impossible to chain multiple products ?

Epistol opened this issue · comments

We can do ui.createComponent for a product, for a collection, but for multiple products the script just break completely.

Can you provide a codepen or a code snippet (with your shopify domain/token/product ids removed)?

Buy Button JS supports creating a productSet component, which allows you to pass in an array of product ids like this:

ui.createComponent('productSet', {
  id: [1, 2, 3],
  ...
}

Works, thanks ! You should put that in the doc, it's not clear.