Skip to content

Commit

Permalink
added model field
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Tomaraei committed Feb 18, 2020
1 parent 0ca8630 commit 40beef2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/catalog/controller/vsbridge/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public function pull(){
$response[] = array(
'item_id' => (int)$cart_product['cart_id'],
'sku' => $product_info['sku'],
'model' => $product_info['model'],
'qty' => (int)$cart_product['quantity'],
'name' => $product_info['name'],
'price' => (float)$product_info['price'],
Expand Down
1 change: 1 addition & 0 deletions src/catalog/controller/vsbridge/products.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ public function populateProducts($input){
'id' => (int) $product['product_id'],
'type_id' => 'simple',
'sku' => $product['sku'],
'model' => $product['model'],
'category' => $adjusted_categories,
'category_ids' => $category_ids,
'description' => $product['description'],
Expand Down
1 change: 1 addition & 0 deletions src/catalog/controller/vsbridge/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ public function orderHistory(){
'item_id' => (int) $order_product['product_id'],
'name' => $order_product['name'],
'sku' => $product_info['sku'],
'model' => $product_info['model'],
'price_incl_tax' => floatval($order_product['price']) + floatval($order_product['tax']),
'qty_ordered' => (int) $order_product['quantity'],
'row_total_incl_tax' => floatval($order_product['total']) + floatval($order_product['tax']),
Expand Down

0 comments on commit 40beef2

Please sign in to comment.