bigcommerce / stencil-utils

Utility library for the Stencil theme framework.
BSD 4-Clause "Original" or "Old" License
31 stars 43 forks source link

How can I use utils.api.productAttributes.optionChange on checkout SDK ? #169

Open bhargav-codes opened 2 years ago

bhargav-codes commented 2 years ago

When I am trying to use utils.api.productAttributes.optionChange on the checkout SDK, I am getting the response data but the attribute/option of the item is not changed .... How to use it so I can change the product option value on the checkout page ? Here is my code utils.api.productAttributes.optionChange(238,'item_id=0aaaee28-865d-4c32-b99a-e826b7488adb&attribute%5B116%5D=112233444',(err, response) => { console.log(response.data); });