Name |
+ Type |
Prices |
Zones |
Customer Groups |
@@ -84,6 +85,7 @@
{{ method|attribute('name') }}
|
+ {{ method.type }} |
diff --git a/resources/assets/js/components/order-processing/shipping/methods/edit/ShippingPrices.vue b/resources/assets/js/components/order-processing/shipping/methods/edit/ShippingPrices.vue
index 26c2c582..aedc8754 100644
--- a/resources/assets/js/components/order-processing/shipping/methods/edit/ShippingPrices.vue
+++ b/resources/assets/js/components/order-processing/shipping/methods/edit/ShippingPrices.vue
@@ -57,6 +57,11 @@
return price.currency_id == item.id;
})
},
+ localisedPrice(price, field) {
+ var currency = price.currency.data;
+ // price.currency.data.format
+ return currency.format.replace('{price}', price[field].money(2, currency.thousand_point, currency.decimal_point));
+ },
savePrice(price) {
if (this.current.id) {
this.update();
@@ -84,6 +89,8 @@
},
edit(price) {
this.current = JSON.parse(JSON.stringify(price));
+ this.current.rate = this.current.rate ? this.current.rate / 100 : 0;
+ this.current.min_basket = this.current.min_basket ? this.current.min_basket / 100 : 0;
this.current.currency_id = this.current.currency.data.id;
},
add() {
@@ -165,15 +172,11 @@
|