lizhen_gitee před 10 měsíci
rodič
revize
802c0642e5
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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;
                     }