Connected template category to product in bundle product search
This commit is contained in:
@@ -9,11 +9,17 @@ class Wiaas_Template_Category_Object {
|
||||
|
||||
public $quantity = '';
|
||||
|
||||
public $product_id = '';
|
||||
|
||||
public function __construct($id, $title, $quant) {
|
||||
public $product_name = '';
|
||||
|
||||
|
||||
public function __construct($id, $title, $quant, $product_id = '', $product_name = '') {
|
||||
$this->template_category_id = $id;
|
||||
$this->name = $title;
|
||||
$this->quantity = $quant;
|
||||
$this->product_id = $product_id;
|
||||
$this->product_name = $product_name;
|
||||
}
|
||||
|
||||
public function get_quantity(){
|
||||
|
||||
@@ -92,7 +92,9 @@ function construct_template_products_class() {
|
||||
$template_category_object = new Wiaas_Template_Category_Object(
|
||||
$category_template_id,
|
||||
$cat,
|
||||
$item_data['quantity_max']);
|
||||
$item_data['quantity_max'],
|
||||
$item->get_id(),
|
||||
$item->get_title());
|
||||
$template_category_objects[$category_template_id] = $template_category_object;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user