order to manat

This commit is contained in:
merdan 2022-06-28 14:45:01 +05:00
parent c8f5ad487c
commit ec6b260acd
1 changed files with 5 additions and 4 deletions

View File

@ -38,6 +38,9 @@ class ProductFlat extends Model implements ProductFlatContract
'pivot',
'parent_id',
'attribute_family_id',
'meta_title',
'meta_keywords',
'meta_description'
];
/**
@ -87,10 +90,8 @@ class ProductFlat extends Model implements ProductFlatContract
if ($attribute && ($attribute->value_per_channel || $attribute->value_per_locale)) {
$defaultProduct = $this->getDefaultProduct();
try {
$this->attributes[$key] = $defaultProduct->attributes[$key];
}
catch(Exception $ex){}
$this->attributes[$key] = $defaultProduct->attributes[$key];
return $this->getAttributeValue($key);
}
}