diff --git a/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/product/storevalues/items/price.js b/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/product/storevalues/items/price.js index cc0c73ed20..a2aec8cbe2 100644 --- a/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/product/storevalues/items/price.js +++ b/src/CoreShop/Bundle/CoreBundle/Resources/public/pimcore/js/product/storevalues/items/price.js @@ -51,6 +51,13 @@ coreshop.product.storeValues.items.price = Class.create(coreshop.product.storeVa priceField.setMaxValue(this.builder.fieldConfig.maxValue); } + priceField.on('blur', function (field) { + var value = field.getValue(); + if (value === null || value === '') { + field.setValue(0); + } + }); + priceField.resumeEvents(true); return priceField;