Dodanie obsługi dodatkowych danych producenta oraz informacji o bezpieczeństwie w klasach ShopProducer i ShopProduct
This commit is contained in:
@@ -80,7 +80,13 @@ class Product implements \ArrayAccess
|
||||
}
|
||||
}
|
||||
|
||||
$this -> producer = $mdb -> get( 'pp_shop_producer', '*', [ 'id' => (int) $this -> producer_id ] );
|
||||
$producer = $mdb -> get( 'pp_shop_producer', '*', [ 'id' => (int) $this -> producer_id ] );
|
||||
$producer_languages = $mdb -> get( 'pp_shop_producer_lang', '*', [ 'AND' => [ 'producer_id' => (int) $this -> producer_id, 'lang_id' => $lang_id ] ] );
|
||||
$producer['description'] = $producer_languages['description'];
|
||||
$producer['data'] = $producer_languages['data'];
|
||||
$producer['meta_title'] = $producer_languages['meta_title'];
|
||||
|
||||
$this -> producer = $producer;
|
||||
|
||||
if ( $permutation_hash )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user