opencart2.x - how to add two product in opencart? -


how add 2 products . example added product1 . want split product1 product media , product1 without media. quantity same .

in product list has show in 2 different entries . below code adding product. taking 1 ..

$this->data[$key] = array(     'key'             => $key,     'product_id'      => $product_query->row['product_id'],     'name'            => $product_query->row['name'],     'model'           => $product_query->row['model'],     'shipping'        => $product_query->row['shipping'],     'image'           => $product_query->row['image'],     'option'          => $option_data,     'download'        => $download_data,     'quantity'        => $quantity,     'minimum'         => $product_query->row['minimum'],     'subtract'        => $product_query->row['subtract'],     'stock'           => $stock,     'price'           => ($price + $option_price),     'total'           => ($price + $option_price) * $quantity,     'reward'          => $reward * $quantity,     'points'          => ($product_query->row['points'] ? ($product_query->row['points'] + $option_points) * $quantity : 0),     'tax_class_id'    => $product_query->row['tax_class_id'],     'weight'          => ($product_query->row['weight'] + $option_weight) * $quantity,     'weight_class_id' => $product_query->row['weight_class_id'],     'length'          => $product_query->row['length'],     'width'           => $product_query->row['width'],     'height'          => $product_query->row['height'],     'length_class_id' => $product_query->row['length_class_id'],     'recurring'       => $recurring ); 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -