From 40beef273f01e6e281cb41f2912b4fc9170be1f8 Mon Sep 17 00:00:00 2001 From: Mohammad Tomaraei Date: Tue, 18 Feb 2020 21:53:34 +0100 Subject: [PATCH] added model field --- src/catalog/controller/vsbridge/cart.php | 1 + src/catalog/controller/vsbridge/products.php | 1 + src/catalog/controller/vsbridge/user.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/catalog/controller/vsbridge/cart.php b/src/catalog/controller/vsbridge/cart.php index 5810347..6fea12b 100644 --- a/src/catalog/controller/vsbridge/cart.php +++ b/src/catalog/controller/vsbridge/cart.php @@ -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'], diff --git a/src/catalog/controller/vsbridge/products.php b/src/catalog/controller/vsbridge/products.php index 0916d43..fa05574 100644 --- a/src/catalog/controller/vsbridge/products.php +++ b/src/catalog/controller/vsbridge/products.php @@ -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'], diff --git a/src/catalog/controller/vsbridge/user.php b/src/catalog/controller/vsbridge/user.php index ecae607..ec3a061 100644 --- a/src/catalog/controller/vsbridge/user.php +++ b/src/catalog/controller/vsbridge/user.php @@ -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']),