checkout-sdk-js icon indicating copy to clipboard operation
checkout-sdk-js copied to clipboard

LineItemOption.value is empty for checkbox modifier option

Open daisy1754 opened this issue 6 years ago • 0 comments

  1. Create modifier option via API as documented in https://developer.bigcommerce.com/api-docs/catalog/products/modifier-options#modifier_add-modifer Just in case link changes, API payload is:
{
  "type": "checkbox",
  "required": false,
  "config": {
    "default_value": "Yes",
    "checked_by_default": false,
    "checkbox_label": "Check for Donation"
  },
  "display_name": "Add a $5 Donation"
}
  1. Now go to storefront and add item. Below is console.log of item.options. As you can see , value of option (Yes/No) is shown in cart page, but it's not available from SDK.

bc_sdk_valud_is_empty

daisy1754 avatar Dec 06 '18 01:12 daisy1754