Commit 76df7d4e authored by Henning Leutz's avatar Henning Leutz 🥋

fix: #175

parent bbfa5761
......@@ -77,6 +77,8 @@ define('package/quiqqer/products/bin/controls/frontend/Price', [
// same currency
if (this.getAttribute('currency') === this.getElm().get('data-qui-options-currency')) {
this.$Price.set('html', result);
this.$Price.set('title', result);
return;
}
......@@ -153,6 +155,16 @@ define('package/quiqqer/products/bin/controls/frontend/Price', [
this.refresh();
},
/**
* Only usable if the price is formated
*
* @param priceDisplay
*/
setPriceDisplay: function (priceDisplay) {
this.$Price.set('html', priceDisplay);
this.$Price.set('title', priceDisplay);
},
/**
* Set the currency for the display
*
......
......@@ -344,7 +344,7 @@ define('package/quiqqer/products/bin/controls/frontend/products/Product', [
self.$Price.disableMinimalPrice();
}
self.$Price.setPrice(result.calculated_price);
self.$Price.setPriceDisplay(result.price_display);
});
},
......
......@@ -28,7 +28,6 @@ use QUI\ERP\Products\Handler\Search as SearchHandler;
*
* backend
* @todo beim speichern der daten, refresh der daten -> am besten produkt daten als ergebnis mitliefern
* @todo product url -> validate function at on blur
* @todo backend -> variant select -> data refresh
*
* frontend
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment