@lancom/shared 0.0.267 → 0.0.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/api/admin.js +11 -11
- package/assets/js/constants/country.js +1 -1
- package/assets/js/utils/fabric-helper.js +10 -4
- package/assets/scss/ui_kit/_forms.scss +2 -2
- package/assets/scss/ui_kit/_tooltip.scss +3 -1
- package/assets/scss/variables/_theme.scss +3 -3
- package/components/checkout/cart/cart.mixin.js +5 -5
- package/components/checkout/cart/cart_price_info/cart-price-info.vue +2 -2
- package/components/checkout/cart/cart_shipments_pricing/cart-shipments-pricing.vue +2 -2
- package/components/checkout/order/address-form/address-form.vue +4 -3
- package/components/checkout/order/order-shipping-method/order-shipping-method.vue +2 -2
- package/components/checkout/order/order.vue +1 -1
- package/components/common/payment/payment_card/pinpayment/pinpayment.vue +34 -5
- package/components/common/postcode_select/postcode-select.vue +5 -1
- package/components/common/products_list_dropdown/products-list-dropdown.vue +1 -1
- package/components/common/products_total_pricing/products-total-pricing.vue +5 -1
- package/components/design/approve_design_header/approve-design-header.vue +1 -1
- package/components/editor/editor.vue +8 -2
- package/components/editor/editor_pricing/editor-pricing.vue +2 -2
- package/components/editor/editor_pricing/editor_pricing_details/editor_pricing_details_prints/editor-pricing-details-prints.vue +8 -7
- package/components/editor/editor_pricing/editor_pricing_details/editor_pricing_details_products/editor-pricing-details-products.vue +12 -4
- package/components/editor/editor_print_area_options/editor-print-area-options.scss +5 -4
- package/components/editor/editor_print_area_options/editor_print_area_option/editor-print-area-option.scss +39 -0
- package/components/editor/editor_print_area_options/editor_print_area_option/editor-print-area-option.vue +29 -6
- package/components/editor/editor_product_details/editor-product-details.scss +6 -0
- package/components/editor/editor_product_details/editor-product-details.vue +13 -3
- package/components/editor/editor_workspace/editor_workspace_side/editor-workspace-side.vue +12 -2
- package/components/faq/faq.vue +2 -2
- package/components/modals/order_modal/order-modal.vue +17 -3
- package/components/order/order_price/order-price.vue +5 -3
- package/components/order/order_prints_groups/order-prints-groups.vue +3 -1
- package/components/order/order_products_groups/order-products-groups.vue +3 -1
- package/components/order/order_refund_view/order-refund-view.vue +5 -3
- package/components/order/order_setup_groups/order-setup-groups.vue +4 -2
- package/components/order/order_sku_groups/order-sku-groups.vue +3 -1
- package/components/order/order_view/order-view.vue +10 -6
- package/components/pricing/pricing_digital_printing/pricing-digital-printing.vue +3 -1
- package/components/pricing/pricing_example/pricing-example.vue +3 -3
- package/components/pricing/pricing_how_we_calculate/pricing-how-we-calculate.vue +7 -2
- package/components/pricing/pricing_products_calculator/pricing_product_calculator/pricing-product-calculator.vue +2 -2
- package/components/pricing/pricing_screen_printing/pricing-screen-printing.vue +3 -1
- package/components/product/product_color_image/product-color-image.vue +2 -3
- package/components/product/product_price_range/product-price-range.vue +6 -5
- package/components/product/product_prints_price_info/product-prints-price-info.vue +2 -2
- package/components/products/products_autocomplete/products-autocomplete.scss +10 -12
- package/components/quotes/quote_request/quote-request.vue +1 -1
- package/components/quotes/quote_view/quote_option_view/quote-option-view.vue +5 -4
- package/mixins/meta-info.js +9 -2
- package/mixins/products-price.js +3 -2
- package/package.json +1 -1
- package/static/icons/print-area/back_hoodie.svg +3 -0
- package/static/icons/print-area/back_hoodie_a3.svg +4 -0
- package/static/icons/print-area/back_hoodie_a4_v.svg +4 -0
- package/static/icons/print-area/back_hoodie_half_a4_h.svg +4 -0
- package/static/icons/print-area/back_hoodie_rect10_l.svg +4 -0
- package/static/icons/print-area/back_polo.svg +3 -0
- package/static/icons/print-area/back_polo_a3.svg +4 -0
- package/static/icons/print-area/back_polo_a4_v.svg +4 -0
- package/static/icons/print-area/back_polo_half_a4_h.svg +4 -0
- package/static/icons/print-area/back_polo_rect10_l.svg +4 -0
- package/static/icons/print-area/back_tee.svg +3 -0
- package/static/icons/print-area/back_tee_a3.svg +4 -0
- package/static/icons/print-area/back_tee_a4_v.svg +4 -0
- package/static/icons/print-area/back_tee_bottom.svg +12 -0
- package/static/icons/print-area/back_tee_center.svg +12 -0
- package/static/icons/print-area/back_tee_half_a4_h.svg +4 -0
- package/static/icons/print-area/back_tee_rect10_l.svg +4 -0
- package/static/icons/print-area/back_tee_top.svg +12 -0
- package/static/icons/print-area/front_hoodie.svg +3 -0
- package/static/icons/print-area/front_hoodie_a3.svg +4 -0
- package/static/icons/print-area/front_hoodie_a4_v.svg +4 -0
- package/static/icons/print-area/front_hoodie_half_a4_h.svg +4 -0
- package/static/icons/print-area/front_hoodie_rect10_l.svg +4 -0
- package/static/icons/print-area/front_polo.svg +3 -0
- package/static/icons/print-area/front_polo_a3.svg +4 -0
- package/static/icons/print-area/front_polo_a4_v.svg +4 -0
- package/static/icons/print-area/front_polo_half_a4_h.svg +4 -0
- package/static/icons/print-area/front_polo_rect10_l.svg +4 -0
- package/static/icons/print-area/front_tee.svg +3 -0
- package/static/icons/print-area/front_tee_a3.svg +4 -0
- package/static/icons/print-area/front_tee_a4_v.svg +4 -0
- package/static/icons/print-area/front_tee_center.svg +12 -0
- package/static/icons/print-area/front_tee_half_a4_h.svg +4 -0
- package/static/icons/print-area/front_tee_left.svg +5 -0
- package/static/icons/print-area/front_tee_rect10_l.svg +4 -0
- package/static/icons/print-area/front_tee_right.svg +12 -0
- package/static/icons/print-area/sleeve-left_tee.svg +3 -0
- package/static/icons/print-area/sleeve-left_tee_left.svg +12 -0
- package/static/icons/print-area/sleeve-right_tee.svg +3 -0
- package/static/icons/print-area/sleeve-right_tee_right.svg +12 -0
- package/store/cart.js +7 -6
- package/store/index.js +16 -5
- package/store/product.js +3 -2
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<span
|
|
13
13
|
v-if="defaultSimpleProduct && defaultSimpleProduct.pricing[0]"
|
|
14
14
|
class="lc_regular16 lc_grey1">
|
|
15
|
-
From
|
|
15
|
+
From {{ currency.isoCode }}
|
|
16
16
|
<v-popover
|
|
17
17
|
ref="popover"
|
|
18
18
|
trigger="hover"
|
|
@@ -61,8 +61,13 @@
|
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
|
+
<div
|
|
65
|
+
v-if="!productAvailableInCurrentCountry"
|
|
66
|
+
class="EditorProductDetails__available-warning">
|
|
67
|
+
Product Not Available in {{ country.name }}
|
|
68
|
+
</div>
|
|
64
69
|
<fragment
|
|
65
|
-
v-if="productDetailsLoaded">
|
|
70
|
+
v-if="productDetailsLoaded && productAvailableInCurrentCountry">
|
|
66
71
|
<div class="EditorProductDetails__section">
|
|
67
72
|
<product-colors-selector />
|
|
68
73
|
</div>
|
|
@@ -112,8 +117,13 @@ export default {
|
|
|
112
117
|
'layerThumbnails'
|
|
113
118
|
]),
|
|
114
119
|
...mapGetters([
|
|
115
|
-
'pricingSettings'
|
|
120
|
+
'pricingSettings',
|
|
121
|
+
'country'
|
|
116
122
|
]),
|
|
123
|
+
productAvailableInCurrentCountry() {
|
|
124
|
+
const { countries } = this.product;
|
|
125
|
+
return !(countries || []).length || countries.includes(this.country._id);
|
|
126
|
+
},
|
|
117
127
|
productLink() {
|
|
118
128
|
return generateProductLink(this.product);
|
|
119
129
|
},
|
|
@@ -118,7 +118,8 @@ export default {
|
|
|
118
118
|
'editableColor',
|
|
119
119
|
'editableLayers',
|
|
120
120
|
'selectedLayer',
|
|
121
|
-
'editorSize'
|
|
121
|
+
'editorSize',
|
|
122
|
+
'editModeSelectedLayer'
|
|
122
123
|
]),
|
|
123
124
|
deleteButtonPosition() {
|
|
124
125
|
return this.deleteButtonPos ? {
|
|
@@ -254,7 +255,15 @@ export default {
|
|
|
254
255
|
this.saveLayersAsImageWithDebounce();
|
|
255
256
|
});
|
|
256
257
|
this.fabricHelper.on('selectLayer', this.setSelectedLayer);
|
|
257
|
-
this.fabricHelper.on('removeLayer',
|
|
258
|
+
this.fabricHelper.on('removeLayer', (layer) => {
|
|
259
|
+
setTimeout(() => {
|
|
260
|
+
if (!this.editModeSelectedLayer) {
|
|
261
|
+
this.removeTemplateLayer(layer);
|
|
262
|
+
} else if (!layer.copy) {
|
|
263
|
+
this.fabricHelper.dispatch('setField', { field: 'isEditMode', value: false });;
|
|
264
|
+
}
|
|
265
|
+
}, 100);
|
|
266
|
+
});
|
|
258
267
|
this.fabricHelper.on('setDeleteButtonPosition', this.setDeleteButtonPosition);
|
|
259
268
|
this.fabricHelper.on('outOfPrintArea', this.setOffsetWarningVisibility);
|
|
260
269
|
// todo center to print area
|
|
@@ -265,6 +274,7 @@ export default {
|
|
|
265
274
|
if (this.drawingInProcess) {
|
|
266
275
|
return;
|
|
267
276
|
}
|
|
277
|
+
console.log('redraw...');
|
|
268
278
|
this.drawingInProcess = true;
|
|
269
279
|
this.fabricHelper.clear();
|
|
270
280
|
this.fabricHelper.addBoundingArea();
|
package/components/faq/faq.vue
CHANGED
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
</script>
|
|
112
112
|
|
|
113
113
|
<style lang="scss">
|
|
114
|
-
@import "
|
|
114
|
+
@import "@/assets/scss/variables";
|
|
115
115
|
$types: delivery, general, other, printing, garments;
|
|
116
116
|
.FAQ {
|
|
117
117
|
&__wrapper {
|
|
@@ -218,7 +218,7 @@ $types: delivery, general, other, printing, garments;
|
|
|
218
218
|
&-body {
|
|
219
219
|
padding: 6px 30px 24px 30px;
|
|
220
220
|
line-height: 27px;
|
|
221
|
-
color: $
|
|
221
|
+
color: $grey_1;
|
|
222
222
|
overflow: hidden;
|
|
223
223
|
@import "@lancom/shared/assets/scss/normalize";
|
|
224
224
|
}
|
|
@@ -127,11 +127,11 @@
|
|
|
127
127
|
{{ errors[0] }}
|
|
128
128
|
</span>
|
|
129
129
|
</validation-provider>
|
|
130
|
-
<div class="form-row">
|
|
130
|
+
<div v-if="suburb" class="form-row">
|
|
131
131
|
<input
|
|
132
132
|
id="country"
|
|
133
133
|
ref="country"
|
|
134
|
-
value="
|
|
134
|
+
:value="suburb.country"
|
|
135
135
|
name="country"
|
|
136
136
|
type="country"
|
|
137
137
|
class="form-field filled labelless"
|
|
@@ -303,6 +303,9 @@ export default {
|
|
|
303
303
|
mounted() {
|
|
304
304
|
if (this.orderData) {
|
|
305
305
|
this.form = {
|
|
306
|
+
state: null,
|
|
307
|
+
country: null,
|
|
308
|
+
postcode: null,
|
|
306
309
|
city: this.orderData.city,
|
|
307
310
|
phone: this.orderData.phone,
|
|
308
311
|
addressLine1: this.orderData.addressLine1,
|
|
@@ -325,16 +328,27 @@ export default {
|
|
|
325
328
|
...mapActions('cart', [
|
|
326
329
|
'calculateCartPrice'
|
|
327
330
|
]),
|
|
331
|
+
setAddressSuburb(suburb) {
|
|
332
|
+
this.$set(this.form, 'suburb', suburb);
|
|
333
|
+
if (suburb) {
|
|
334
|
+
this.$set(this.form, 'state', suburb.state);
|
|
335
|
+
this.$set(this.form, 'postcode', suburb.postcode);
|
|
336
|
+
this.$set(this.form, 'city', suburb.locality);
|
|
337
|
+
this.$set(this.form, 'country', suburb.country);
|
|
338
|
+
}
|
|
339
|
+
},
|
|
328
340
|
handleSuburbChange(suburb) {
|
|
329
341
|
this.form.suburb = suburb;
|
|
342
|
+
this.setAddressSuburb(suburb);
|
|
330
343
|
this.setSuburb(suburb);
|
|
331
|
-
this.calculateCartPrice({ shop: this.shop });
|
|
344
|
+
this.calculateCartPrice({ shop: this.shop, country: this.country });
|
|
332
345
|
},
|
|
333
346
|
back() {
|
|
334
347
|
this.switchModal('showCartModal');
|
|
335
348
|
},
|
|
336
349
|
async submit() {
|
|
337
350
|
try {
|
|
351
|
+
debugger;
|
|
338
352
|
this.processing = true;
|
|
339
353
|
const recaptchaToken = await this.getRecaptcha('create_order');
|
|
340
354
|
await this.createOrder({
|
|
@@ -25,19 +25,20 @@
|
|
|
25
25
|
<b>Delivery:</b> {{ price.shipping.totalPriceWithoutTax | price(currency) }} ({{ price.shipping.weight }})
|
|
26
26
|
</div>
|
|
27
27
|
<div class="lc_caption OrderPrice__row">
|
|
28
|
-
<b>Order amount ex
|
|
28
|
+
<b>Order amount ex {{ taxName }}:</b> {{ price.totalPriceWithoutTax | price(currency) }}
|
|
29
29
|
</div>
|
|
30
30
|
<div class="lc_caption OrderPrice__row">
|
|
31
|
-
<b>
|
|
31
|
+
<b>{{ taxName }}:</b> {{ price.tax.totalPrice | price(currency) }} ({{ price.tax.percent }})
|
|
32
32
|
</div>
|
|
33
33
|
<div class="lc_caption OrderPrice__row">
|
|
34
|
-
<b>Order amount inc
|
|
34
|
+
<b>Order amount inc {{ taxName }}:</b> {{ price.totalPrice | price(currency) }}
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script>
|
|
41
|
+
import { mapGetters } from 'vuex';
|
|
41
42
|
import { groupProductsPrintsBySize } from '@lancom/shared/assets/js/utils/products-grouping';
|
|
42
43
|
import { price, print } from '@lancom/shared/assets/js/utils/filters';
|
|
43
44
|
|
|
@@ -51,6 +52,7 @@ export default {
|
|
|
51
52
|
}
|
|
52
53
|
},
|
|
53
54
|
computed: {
|
|
55
|
+
...mapGetters(['taxName']),
|
|
54
56
|
price() {
|
|
55
57
|
return this.order.price;
|
|
56
58
|
},
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
<td>{{ total.price | price(currency) }}</td>
|
|
52
52
|
</tr>
|
|
53
53
|
<tr v-if="totalsWithGst">
|
|
54
|
-
<td>Total inc.
|
|
54
|
+
<td>Total inc. {{ taxName }}</td>
|
|
55
55
|
<td colspan="3"></td>
|
|
56
56
|
<td>{{ total.amount }}</td>
|
|
57
57
|
<td></td>
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script>
|
|
68
|
+
import { mapGetters } from 'vuex';
|
|
68
69
|
import ProductSideWithPrint from '@lancom/shared/components/common/product_side_with_print/product-side-with-print';
|
|
69
70
|
import { COLORS_IMAGES_TYPES } from '@lancom/shared/assets/js/constants/colors';
|
|
70
71
|
import { groupProductsByPrints } from '@lancom/shared/assets/js/utils/products-grouping';
|
|
@@ -94,6 +95,7 @@ export default {
|
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
computed: {
|
|
98
|
+
...mapGetters(['taxName']),
|
|
97
99
|
printsGroups() {
|
|
98
100
|
return groupProductsByPrints(this.order.products, this.order.price.products);
|
|
99
101
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<td>{{ total.price | price(currency) }}</td>
|
|
41
41
|
</tr>
|
|
42
42
|
<tr v-if="totalsWithGst">
|
|
43
|
-
<td>Total inc.
|
|
43
|
+
<td>Total inc. {{ taxName }}</td>
|
|
44
44
|
<td colspan="3"></td>
|
|
45
45
|
<td>{{ total.amount }}</td>
|
|
46
46
|
<td>{{ total.prints.amount }}</td>
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script>
|
|
62
|
+
import { mapGetters } from 'vuex';
|
|
62
63
|
import { print, price } from '@lancom/shared/assets/js/utils/filters';
|
|
63
64
|
import { groupProductsByDesign } from '@lancom/shared/assets/js/utils/products-grouping';
|
|
64
65
|
import OrderProductsGroup from './order_products_group/order-products-group';
|
|
@@ -91,6 +92,7 @@ export default {
|
|
|
91
92
|
}
|
|
92
93
|
},
|
|
93
94
|
computed: {
|
|
95
|
+
...mapGetters(['taxName']),
|
|
94
96
|
productsGroups() {
|
|
95
97
|
return groupProductsByDesign(this.order.products, this.order.price.products);
|
|
96
98
|
},
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
'OrderRefundView__totals--paid': isPaid
|
|
89
89
|
}">
|
|
90
90
|
<div class="lc_regular16">
|
|
91
|
-
Total ex
|
|
91
|
+
Total ex {{ taxName }}: <b>{{ refund.total | price(currency) }}</b>
|
|
92
92
|
</div>
|
|
93
93
|
<div class="lc_regular16">
|
|
94
|
-
|
|
94
|
+
{{ taxName }}: <b>{{ refund.totalGST - refund.total | price(currency) }}</b>
|
|
95
95
|
</div>
|
|
96
96
|
<div class="lc_regular16">
|
|
97
|
-
Total inc
|
|
97
|
+
Total inc {{ taxName }}: <b>{{ refund.totalGST | price(currency) }}</b>
|
|
98
98
|
</div>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
</template>
|
|
104
104
|
|
|
105
105
|
<script>
|
|
106
|
+
import { mapGetters } from 'vuex';
|
|
106
107
|
import OrderViewMixin from './../order_view/order-view.mixin';
|
|
107
108
|
import OrderViewProduct from './../order_view/order_view_product/order-view-product';
|
|
108
109
|
|
|
@@ -123,6 +124,7 @@ export default {
|
|
|
123
124
|
}
|
|
124
125
|
},
|
|
125
126
|
computed: {
|
|
127
|
+
...mapGetters(['taxName']),
|
|
126
128
|
isPaid() {
|
|
127
129
|
return this.refund.status === 'refunded';
|
|
128
130
|
},
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<th>SKU</th>
|
|
13
13
|
<th>Quantity</th>
|
|
14
14
|
<th>Price</th>
|
|
15
|
-
<th>
|
|
16
|
-
<th>Total Inc.
|
|
15
|
+
<th>{{ taxName }}</th>
|
|
16
|
+
<th>Total Inc. {{ taxName }}</th>
|
|
17
17
|
</tr>
|
|
18
18
|
</thead>
|
|
19
19
|
<tbody class="centered">
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
|
|
48
48
|
<script>
|
|
49
|
+
import { mapGetters } from 'vuex';
|
|
49
50
|
import { COLORS_IMAGES_TYPES } from '@lancom/shared/assets/js/constants/colors';
|
|
50
51
|
import { groupProductsByPrints } from '@lancom/shared/assets/js/utils/products-grouping';
|
|
51
52
|
import { price, print } from '@lancom/shared/assets/js/utils/filters';
|
|
@@ -67,6 +68,7 @@ export default {
|
|
|
67
68
|
}
|
|
68
69
|
},
|
|
69
70
|
computed: {
|
|
71
|
+
...mapGetters(['taxName']),
|
|
70
72
|
printsGroups() {
|
|
71
73
|
return groupProductsByPrints(this.order.products, this.order.price.products);
|
|
72
74
|
},
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</td>
|
|
50
50
|
</tr>
|
|
51
51
|
<tr v-if="totalsWithGst">
|
|
52
|
-
<td> Total inc.
|
|
52
|
+
<td> Total inc. {{ taxName }}</td>
|
|
53
53
|
<td colspan="3"></td>
|
|
54
54
|
<td>{{ total.amount }}</td>
|
|
55
55
|
<td></td>
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
70
|
<script>
|
|
71
|
+
import { mapGetters } from 'vuex';
|
|
71
72
|
import { groupProductsBySKU } from '@lancom/shared/assets/js/utils/products-grouping';
|
|
72
73
|
import { price } from '@lancom/shared/assets/js/utils/filters';
|
|
73
74
|
import { copyToClipboard } from '@lancom/shared/assets/js/utils/copy-to-clipboard';
|
|
@@ -96,6 +97,7 @@ export default {
|
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
computed: {
|
|
100
|
+
...mapGetters(['taxName']),
|
|
99
101
|
featureGroups() {
|
|
100
102
|
return groupProductsBySKU(this.order.products, this.order.price.products);
|
|
101
103
|
},
|
|
@@ -127,10 +127,10 @@
|
|
|
127
127
|
Shipping Total: <b>{{ model.shippingTotal | price(order.currency) }}</b>
|
|
128
128
|
</div>
|
|
129
129
|
<div class="lc_regular16">
|
|
130
|
-
Total ex
|
|
130
|
+
Total ex {{ taxName }}: <b>{{ (model.total + couponTotal) | price(order.currency) }}</b>
|
|
131
131
|
</div>
|
|
132
132
|
<div class="lc_regular16">
|
|
133
|
-
|
|
133
|
+
{{ taxName }}: <b>{{ model.totalGST - model.total | price(order.currency) }}</b>
|
|
134
134
|
</div>
|
|
135
135
|
<div
|
|
136
136
|
v-if="!invoice && order.couponCode"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
Coupon: <b>{{ couponTotal | price(order.currency) }}</b>
|
|
139
139
|
</div>
|
|
140
140
|
<div class="lc_regular16">
|
|
141
|
-
Total inc
|
|
141
|
+
Total inc {{ taxName }}: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
142
142
|
</div>
|
|
143
143
|
<div class="lc_regular16">
|
|
144
144
|
{{ isPaid ? 'Paid' : 'Pending Payment' }}: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
Shipping Total: <b>{{ model.shippingTotal | price(order.currency) }}</b>
|
|
176
176
|
</div>
|
|
177
177
|
<div class="lc_regular16">
|
|
178
|
-
Total ex
|
|
178
|
+
Total ex {{ taxName }}: <b>{{ (model.total + couponTotal) | price(order.currency) }}</b>
|
|
179
179
|
</div>
|
|
180
180
|
<div class="lc_regular16">
|
|
181
|
-
|
|
181
|
+
{{ taxName }}: <b>{{ model.totalGST - model.total | price(order.currency) }}</b>
|
|
182
182
|
</div>
|
|
183
183
|
<div
|
|
184
184
|
v-if="!invoice && order.couponCode"
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
Coupon: <b>{{ couponTotal | price(order.currency) }}</b>
|
|
187
187
|
</div>
|
|
188
188
|
<div class="lc_regular16">
|
|
189
|
-
Total inc
|
|
189
|
+
Total inc {{ taxName }}: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
190
190
|
</div>
|
|
191
191
|
<div class="lc_regular16">
|
|
192
192
|
{{ isPaid ? 'Paid' : 'Pending Payment' }}: <b>{{ model.totalGST | price(order.currency) }}</b>
|
|
@@ -198,6 +198,7 @@
|
|
|
198
198
|
</template>
|
|
199
199
|
|
|
200
200
|
<script>
|
|
201
|
+
import { mapGetters } from 'vuex';
|
|
201
202
|
import OrderViewMixin from './order-view.mixin';
|
|
202
203
|
import OrderViewProduct from './order_view_product/order-view-product';
|
|
203
204
|
|
|
@@ -212,6 +213,9 @@ export default {
|
|
|
212
213
|
type: Boolean,
|
|
213
214
|
default: true
|
|
214
215
|
}
|
|
216
|
+
},
|
|
217
|
+
computed: {
|
|
218
|
+
...mapGetters(['taxName'])
|
|
215
219
|
}
|
|
216
220
|
};
|
|
217
221
|
</script>
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
v-if="isSelectedPrint"
|
|
206
206
|
class="form-row">
|
|
207
207
|
<span class="PricingMainSection__section-content-label">
|
|
208
|
-
Inclusive of
|
|
208
|
+
Inclusive of {{ taxName }}:
|
|
209
209
|
</span>
|
|
210
210
|
<span class="PricingMainSection__section-content-value">
|
|
211
211
|
{{ productPricing.tax.totalPrice | price(currency) }}
|
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
</template>
|
|
226
226
|
|
|
227
227
|
<script>
|
|
228
|
+
import { mapGetters } from 'vuex';
|
|
228
229
|
import { PRODUCT_TYPES, PRODUCT_TYPES_LIST } from '@lancom/shared/assets/js/constants/product';
|
|
229
230
|
import productsPrice from '@lancom/shared/mixins/products-price';
|
|
230
231
|
import Range from '@lancom/shared/components/common/range/range';
|
|
@@ -254,6 +255,7 @@ export default {
|
|
|
254
255
|
};
|
|
255
256
|
},
|
|
256
257
|
computed: {
|
|
258
|
+
...mapGetters(['taxName']),
|
|
257
259
|
productEditorLink() {
|
|
258
260
|
return `/${this.product.SKU}/${this.product.alias}/editor`;
|
|
259
261
|
},
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
{{ productPricing.totalPrice | price(currency) }}
|
|
64
64
|
</div>
|
|
65
65
|
<div class="PricingExample__example-tax">
|
|
66
|
-
Inclusive of
|
|
66
|
+
Inclusive of {{ taxName }}: {{ productPricing.tax.totalPrice | price(currency) }}
|
|
67
67
|
</div>
|
|
68
68
|
<div class="mt-10">
|
|
69
69
|
+ Delivery
|
|
@@ -139,7 +139,7 @@ export default {
|
|
|
139
139
|
};
|
|
140
140
|
},
|
|
141
141
|
computed: {
|
|
142
|
-
...mapGetters(['shop']),
|
|
142
|
+
...mapGetters(['shop', 'country', 'taxName']),
|
|
143
143
|
printsPricing() {
|
|
144
144
|
return this.productPricing?.products[this.product._id]?.prints.prints || [];
|
|
145
145
|
}
|
|
@@ -152,7 +152,7 @@ export default {
|
|
|
152
152
|
const prints = this.generateSidesPrints();
|
|
153
153
|
const layers = prints.map(({ printType, printSize, printArea }) => ({ printType: printType?._id, printSize: printSize?._id, printArea: printArea?._id }));
|
|
154
154
|
const entities = getProductsForCalculatePricing(this.product, [this.simpleProduct], layers, true, true);
|
|
155
|
-
this.productPricing = await api.calculateProductPrice({ entities }, this.shop._id);
|
|
155
|
+
this.productPricing = await api.calculateProductPrice({ entities, country: this.country?._id }, this.shop._id);
|
|
156
156
|
},
|
|
157
157
|
generateSidesPrints() {
|
|
158
158
|
return this.sides
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
Your Total Price
|
|
77
77
|
</div>
|
|
78
78
|
<div class="PricingHowWeCalculate__entity-description">
|
|
79
|
-
(inclusive of
|
|
79
|
+
(inclusive of {{ taxName }})
|
|
80
80
|
</div>
|
|
81
81
|
</div>
|
|
82
82
|
</div>
|
|
@@ -86,8 +86,13 @@
|
|
|
86
86
|
</template>
|
|
87
87
|
|
|
88
88
|
<script>
|
|
89
|
+
import { mapGetters } from 'vuex';
|
|
90
|
+
|
|
89
91
|
export default {
|
|
90
|
-
name: 'PricingHowWeCalculate'
|
|
92
|
+
name: 'PricingHowWeCalculate',
|
|
93
|
+
computed: {
|
|
94
|
+
...mapGetters(['taxName'])
|
|
95
|
+
}
|
|
91
96
|
};
|
|
92
97
|
</script>
|
|
93
98
|
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
216
216
|
};
|
|
217
217
|
},
|
|
218
218
|
computed: {
|
|
219
|
-
...mapGetters(['shop']),
|
|
219
|
+
...mapGetters(['shop', 'country']),
|
|
220
220
|
maxScreenPrintColors() {
|
|
221
221
|
const printTypes = this.product.printTypes.filter(printType => printType.type === 'screen print');
|
|
222
222
|
return Math.max(...printTypes.map(printType => printType.colorsQuantity));
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
const prints = this.generateSidesPrints(type);
|
|
263
263
|
const layers = prints.map(({ printType, printSize, printArea }) => ({ printType: printType?._id, printSize: printSize?._id, printArea: printArea?._id }));
|
|
264
264
|
const entities = getProductsForCalculatePricing(this.product, [this.simpleProduct], layers, true, true);
|
|
265
|
-
const pricing = await api.calculateProductPrice({ entities, postcode: this.postcode }, this.shop._id);
|
|
265
|
+
const pricing = await api.calculateProductPrice({ entities, postcode: this.postcode, country: this.country?._id }, this.shop._id);
|
|
266
266
|
return { pricing, prints, type };
|
|
267
267
|
})
|
|
268
268
|
);
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
v-if="isSelectedPrint"
|
|
206
206
|
class="form-row">
|
|
207
207
|
<span class="PricingScreenPrintSection__section-content-label">
|
|
208
|
-
Inclusive of
|
|
208
|
+
Inclusive of {{ taxName }}:
|
|
209
209
|
</span>
|
|
210
210
|
<span class="PricingScreenPrintSection__section-content-value">
|
|
211
211
|
{{ productPricing.tax.totalPrice | price(currency) }}
|
|
@@ -226,6 +226,7 @@
|
|
|
226
226
|
|
|
227
227
|
<script>
|
|
228
228
|
import Multiselect from 'vue-multiselect';
|
|
229
|
+
import { mapGetters } from 'vuex';
|
|
229
230
|
import { PRODUCT_TYPES, PRODUCT_TYPES_LIST } from '@lancom/shared/assets/js/constants/product';
|
|
230
231
|
import productsPrice from '@lancom/shared/mixins/products-price';
|
|
231
232
|
import Range from '@lancom/shared/components/common/range/range';
|
|
@@ -285,6 +286,7 @@ export default {
|
|
|
285
286
|
};
|
|
286
287
|
},
|
|
287
288
|
computed: {
|
|
289
|
+
...mapGetters(['taxName']),
|
|
288
290
|
productEditorLink() {
|
|
289
291
|
return `/${this.product.SKU}/${this.product.alias}/editor`;
|
|
290
292
|
},
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
<div
|
|
3
3
|
class="ProductColorImage"
|
|
4
4
|
:class="{ zoomedIn }"
|
|
5
|
-
:style="style"
|
|
6
|
-
v-lazy:background-image="pattern">
|
|
5
|
+
:style="style">
|
|
7
6
|
</div>
|
|
8
7
|
</template>
|
|
9
8
|
|
|
@@ -32,7 +31,7 @@ export default {
|
|
|
32
31
|
return this.color.pattern && staticLink(this.color.pattern);
|
|
33
32
|
},
|
|
34
33
|
style() {
|
|
35
|
-
return getColorBackgroundStyle(this.color
|
|
34
|
+
return getColorBackgroundStyle(this.color);
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
};
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
{{ product[minPriceAttr] | tax(gstTax) | price(currency) }}
|
|
11
11
|
<span
|
|
12
12
|
v-if="visiblePriceInfo"
|
|
13
|
-
class="lc_regular11 lc_bold">inc.
|
|
13
|
+
class="lc_regular11 lc_bold">inc. {{ taxName }}</span>
|
|
14
14
|
</div>
|
|
15
15
|
<div
|
|
16
16
|
v-if="withoutGst"
|
|
17
17
|
:class="withGst ? 'lc_regular11' : 'lc_h4'">
|
|
18
|
-
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} +
|
|
18
|
+
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} + {{ taxName }}
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
<div
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
{{ product[minPriceAttr] | tax(gstTax) | price(currency) }} {{ rangeDivider }} {{ product[maxPriceAttr] | tax(gstTax) | price(currency) }}
|
|
28
28
|
<span
|
|
29
29
|
v-if="visiblePriceInfo"
|
|
30
|
-
class="lc_regular11 lc_bold"> inc.
|
|
30
|
+
class="lc_regular11 lc_bold"> inc. {{ taxName }}</span>
|
|
31
31
|
</div>
|
|
32
32
|
<div
|
|
33
33
|
v-if="withoutGst"
|
|
34
34
|
:class="withGst ? 'lc_regular11' : 'lc_h4'">
|
|
35
|
-
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} {{ rangeDivider }} {{ product[maxPriceAttr] | price(currency) }} +
|
|
35
|
+
{{ prePriceText }} {{ product[minPriceAttr] | price(currency) }} {{ rangeDivider }} {{ product[maxPriceAttr] | price(currency) }} + {{ taxName }}
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
@@ -84,7 +84,8 @@ export default {
|
|
|
84
84
|
},
|
|
85
85
|
computed: {
|
|
86
86
|
...mapGetters([
|
|
87
|
-
'gstTax'
|
|
87
|
+
'gstTax',
|
|
88
|
+
'taxName'
|
|
88
89
|
])
|
|
89
90
|
}
|
|
90
91
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<checkbox
|
|
5
5
|
v-model="inclGST"
|
|
6
6
|
:dark="true">
|
|
7
|
-
<div class="ml-5">Inc.
|
|
7
|
+
<div class="ml-5">Inc. {{ taxName }}</div>
|
|
8
8
|
</checkbox>
|
|
9
9
|
</div>
|
|
10
10
|
<tabs
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
90
|
computed: {
|
|
91
|
-
...mapGetters(['shop']),
|
|
91
|
+
...mapGetters(['shop', 'taxName']),
|
|
92
92
|
...mapGetters('product', ['priceIncludeGST']),
|
|
93
93
|
...mapGetters(['helpMessages']),
|
|
94
94
|
hasPrintSurcharge() {
|
|
@@ -10,20 +10,21 @@
|
|
|
10
10
|
right: 0;
|
|
11
11
|
top: 41px;
|
|
12
12
|
padding: 10px;
|
|
13
|
-
background-color:
|
|
14
|
-
|
|
13
|
+
background-color: white;
|
|
14
|
+
border: 1px solid $medium_gray;
|
|
15
|
+
z-index: 999;
|
|
15
16
|
}
|
|
16
17
|
&__result-item {
|
|
17
18
|
padding-bottom: 10px;
|
|
18
19
|
margin-bottom: 10px;
|
|
19
|
-
border-bottom: 1px solid $
|
|
20
|
+
border-bottom: 1px solid $medium_gray;
|
|
20
21
|
&:last-child {
|
|
21
22
|
border-bottom: none;
|
|
22
23
|
margin-bottom: 0px;
|
|
23
24
|
}
|
|
24
25
|
::v-deep {
|
|
25
26
|
a {
|
|
26
|
-
color: $
|
|
27
|
+
color: $gray_main;
|
|
27
28
|
font-size: 13px;
|
|
28
29
|
text-decoration: none;
|
|
29
30
|
}
|
|
@@ -33,24 +34,22 @@
|
|
|
33
34
|
padding: 10px;
|
|
34
35
|
text-align: center;
|
|
35
36
|
display: block;
|
|
36
|
-
background-color: $
|
|
37
|
+
background-color: $black;
|
|
38
|
+
color: $white !important;
|
|
37
39
|
&:hover {
|
|
38
|
-
background-color: $
|
|
39
|
-
color: $
|
|
40
|
+
background-color: $white;
|
|
41
|
+
color: $black !important;
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
&__input {
|
|
44
46
|
input {
|
|
45
|
-
|
|
46
|
-
border: none;
|
|
47
|
+
border-color: $medium_gray;
|
|
47
48
|
border-radius: 0px;
|
|
48
|
-
color: $white;
|
|
49
49
|
height: 41px;
|
|
50
50
|
position: relative;
|
|
51
51
|
z-index: 1;
|
|
52
52
|
&::placeholder {
|
|
53
|
-
font-weight: 600;
|
|
54
53
|
font-size: 14px;
|
|
55
54
|
color: $grey_3;
|
|
56
55
|
}
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
right: 10px;
|
|
62
61
|
font-size: 17px;
|
|
63
62
|
pointer-events: none;
|
|
64
|
-
color: $white;
|
|
65
63
|
&.icon-search {
|
|
66
64
|
z-index: 2;
|
|
67
65
|
pointer-events: all;
|