diff --git a/packages/Webkul/Product/src/Helpers/ConfigurableOption.php b/packages/Webkul/Product/src/Helpers/ConfigurableOption.php index 2f25463ce..8651eaf2f 100755 --- a/packages/Webkul/Product/src/Helpers/ConfigurableOption.php +++ b/packages/Webkul/Product/src/Helpers/ConfigurableOption.php @@ -191,7 +191,7 @@ class ConfigurableOption extends AbstractProduct if (isset($options[$attribute->id][$optionId])) { $attributeOptionsData[] = [ 'id' => $optionId, - 'label' => $attributeOption->label, + 'label' => $attributeOption->label ? $attributeOption->label : $attributeOption->admin_name, 'swatch_value' => $attribute->swatch_type == 'image' ? $attributeOption->swatch_value_url : $attributeOption->swatch_value, 'products' => $options[$attribute->id][$optionId] ];