[WIP] Fix on prices & attributes
This commit is contained in:
@@ -29,12 +29,17 @@ class ArticleAttributes
|
||||
{
|
||||
foreach ($attributes as $key => $attribute)
|
||||
{
|
||||
$attributes[$key]['article_price_id'] = $article_price_id;
|
||||
unset($attributes[$key]['attribute_family_id']);
|
||||
self::store($attributes[$key]);
|
||||
self::storeAttribute($article_price_id, $attributes[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
public static function storeAttribute($article_price_id, $attribute)
|
||||
{
|
||||
$attribute['article_price_id'] = $article_price_id;
|
||||
unset($attribute['attribute_family_id']);
|
||||
return self::store($attribute);
|
||||
}
|
||||
|
||||
public static function store($data)
|
||||
{
|
||||
$id = isset($data['id']) ? $data['id'] : false;
|
||||
|
||||
Reference in New Issue
Block a user