Add new columns to producer and product language tables
- Added 'data' column to 'pp_shop_producer_lang' table for additional metadata storage. - Added 'security_information' column to 'pp_shop_products_langs' table to enhance product security details.
This commit is contained in:
@@ -14,6 +14,7 @@ class Producer implements \ArrayAccess
|
||||
foreach ( $rows as $row )
|
||||
{
|
||||
$languages[ $row['lang_id'] ]['description'] = $row['description'];
|
||||
$languages[ $row['lang_id'] ]['data'] = $row['data'];
|
||||
$languages[ $row['lang_id'] ]['meta_title'] = $row['meta_title'];
|
||||
}
|
||||
|
||||
|
||||
@@ -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