order to manat
This commit is contained in:
parent
c8f5ad487c
commit
ec6b260acd
|
|
@ -38,6 +38,9 @@ class ProductFlat extends Model implements ProductFlatContract
|
||||||
'pivot',
|
'pivot',
|
||||||
'parent_id',
|
'parent_id',
|
||||||
'attribute_family_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)) {
|
if ($attribute && ($attribute->value_per_channel || $attribute->value_per_locale)) {
|
||||||
$defaultProduct = $this->getDefaultProduct();
|
$defaultProduct = $this->getDefaultProduct();
|
||||||
|
|
||||||
try {
|
$this->attributes[$key] = $defaultProduct->attributes[$key];
|
||||||
$this->attributes[$key] = $defaultProduct->attributes[$key];
|
|
||||||
}
|
|
||||||
catch(Exception $ex){}
|
|
||||||
return $this->getAttributeValue($key);
|
return $this->getAttributeValue($key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue