diff --git a/services/product/ProductMongodb.php b/services/product/ProductMongodb.php index be075a69b463edeedd99c4300673095a94c1df15..a30193168a730bb2dca631f3a239430fcc977056 100644 --- a/services/product/ProductMongodb.php +++ b/services/product/ProductMongodb.php @@ -509,6 +509,11 @@ class ProductMongodb extends Service implements ProductInterface $one['category'] = $c; } + $one['price'] = (float) $one['price']; + $one['cost_price'] = (float) $one['cost_price']; + $one['special_price'] = (float) $one['special_price']; + $one['final_price'] = (float) $one['final_price']; + $saveStatus = Yii::$service->helper->ar->save($model, $one); $product_id = (string)$model->{$this->getPrimaryKey()};