lizhen_gitee hai 10 meses
pai
achega
802c0642e5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      addons/unishop/extend/Product.php

+ 2 - 0
addons/unishop/extend/Product.php

@@ -37,6 +37,8 @@ class Product
                         $data = $specItem[$key];
                     } else {
                         $specItem['stock'] = intval($specItem['stock']);
+                        $specItem['sales'] = intval($specItem['sales']);
+
                         $data = $specItem;
                         $data['key'] = $k;
                     }