rabin пре 2 година
родитељ
комит
7725531739
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/goods/lib/Set.php

+ 2 - 0
app/goods/lib/Set.php

@@ -41,6 +41,7 @@ class Set
                     $result[$i]['select'] = 2;
                     $result[$i]['del'] = 1;
                     if ($type == 'factory_id') {
+                        $result[$i]['total'] = 0;
                         if ($other) {
                             $result[$i]['p_price'] = $other['p_price'];
                             $result[$i]['select'] = $other['state'];
@@ -123,6 +124,7 @@ class Set
 
                             $children['select'] = 2;
                             if ($type == 'factory_id') {
+                                $children['total'] = 0;
                                 $children['p_price'] = $v1['price'];
                                 if ($other_sku) {
                                     $children['p_price'] = $other_sku['p_price'];