|
@@ -395,7 +395,12 @@ class Quote extends Service
|
|
|
$cart_product_info = Yii::$service->cart->quoteItem->getCartProductInfo($activeProduct);
|
|
|
//var_dump($cart_product_info);
|
|
|
if (is_array($cart_product_info)) {
|
|
|
- $product_weight = $cart_product_info['product_weight'];
|
|
|
+ if($cart_product_info['product_weight'] == '0'){
|
|
|
+ $product_weight = 1;
|
|
|
+ }else{
|
|
|
+ $product_weight = $cart_product_info['product_weight'];
|
|
|
+ }
|
|
|
+
|
|
|
$product_volume_weight = $cart_product_info['product_volume_weight'];
|
|
|
$product_volume = $cart_product_info['product_volume'];
|
|
|
$product_final_weight = max($product_weight, $product_volume_weight);
|