@@ -211,6 +211,9 @@ public function getCartProductInfo($activeProduct = true)
211
211
$ product_total = 0 ;
212
212
$ product_weight = 0 ;
213
213
$ product_volume_weight = 0 ;
214
+ $ base_product_total = 0 ;
215
+ $ product_volume = 0 ;
216
+ $ product_qty_total = 0 ;
214
217
if ($ cart_id ) {
215
218
if (!isset ($ this ->_cart_product_info [$ cart_id ])) {
216
219
$ data = $ this ->_itemModel ->find ()->where ([
@@ -242,11 +245,12 @@ public function getCartProductInfo($activeProduct = true)
242
245
$ p_vwt = $ product_one ['volume_weight ' ] * $ qty ;
243
246
244
247
if ($ active == $ this ->activeStatus ) {
245
- $ product_total += $ product_row_price ;
248
+ $ product_total += $ product_row_price ;
246
249
$ base_product_total += $ base_product_row_price ;
247
250
$ product_weight += $ p_wt ;
248
251
$ product_volume_weight += $ p_vwt ;
249
252
$ product_volume += $ p_pv ;
253
+ $ product_qty_total += $ qty ;
250
254
}
251
255
$ productSpuOptions = $ this ->getProductSpuOptions ($ product_one );
252
256
$ products [] = [
@@ -278,12 +282,13 @@ public function getCartProductInfo($activeProduct = true)
278
282
}
279
283
}
280
284
$ this ->_cart_product_info [$ cart_id ] = [
281
- 'products ' => $ products ,
282
- 'product_total ' => $ product_total ,
283
- 'base_product_total ' => $ base_product_total ,
284
- 'product_weight ' => $ product_weight ,
285
- 'product_volume_weight ' => $ product_volume_weight ,
286
- 'product_volume ' => $ product_volume ,
285
+ 'products ' => $ products ,
286
+ 'product_qty_total ' => $ product_qty_total ,
287
+ 'product_total ' => $ product_total ,
288
+ 'base_product_total ' => $ base_product_total ,
289
+ 'product_weight ' => $ product_weight ,
290
+ 'product_volume_weight ' => $ product_volume_weight ,
291
+ 'product_volume ' => $ product_volume ,
287
292
288
293
];
289
294
}
0 commit comments