diff --git a/packages/Webkul/Product/src/Models/ProductAttributeValue.php b/packages/Webkul/Product/src/Models/ProductAttributeValue.php index 942fa2142..8c4e1c1ef 100755 --- a/packages/Webkul/Product/src/Models/ProductAttributeValue.php +++ b/packages/Webkul/Product/src/Models/ProductAttributeValue.php @@ -11,8 +11,6 @@ class ProductAttributeValue extends Model implements ProductAttributeValueContra { public $timestamps = false; - // protected $with = ['attribute']; - /** * @var array */ diff --git a/packages/Webkul/Product/src/Type/AbstractType.php b/packages/Webkul/Product/src/Type/AbstractType.php index 7f8864800..aec1c610a 100644 --- a/packages/Webkul/Product/src/Type/AbstractType.php +++ b/packages/Webkul/Product/src/Type/AbstractType.php @@ -162,7 +162,7 @@ abstract class AbstractType if (! isset($data[$attribute->code]) || (in_array($attribute->type, ['date', 'datetime']) && ! $data[$attribute->code])) continue; - if ($attribute->type == 'multiselect') + if ($attribute->type == 'multiselect' || $attribute->type == 'checkbox') $data[$attribute->code] = implode(",", $data[$attribute->code]); if ($attribute->type == 'image' || $attribute->type == 'file') {