check updated, issue #1162
This commit is contained in:
parent
3511c08e46
commit
6fec08f814
|
|
@ -19,7 +19,11 @@ class View extends AbstractProduct
|
|||
$attributeOptionReposotory = app('Webkul\Attribute\Repositories\AttributeOptionRepository');
|
||||
|
||||
foreach ($attributes as $attribute) {
|
||||
$value = $product->product->{$attribute->code};
|
||||
if ($product instanceof \Webkul\Product\Models\ProductFlat) {
|
||||
$value = $product->product->{$attribute->code};
|
||||
} else {
|
||||
$value = $product->{$attribute->code};
|
||||
}
|
||||
|
||||
if ($attribute->type == 'boolean') {
|
||||
$value = $value ? 'Yes' : 'No';
|
||||
|
|
|
|||
Loading…
Reference in New Issue