@lancom/shared 0.0.405 → 0.0.407
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.
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
: {{ pricing.totalsWithoutCoupon.totalPrice - pricing.totalPrice | price(currency) }} OFF
|
|
63
63
|
</span>
|
|
64
64
|
</span>
|
|
65
|
-
<span v-else>
|
|
65
|
+
<span v-else-if="!hasQualifyingProducts">
|
|
66
66
|
{{ value.value | price(currency) }} OFF
|
|
67
67
|
</span>
|
|
68
68
|
</div>
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
class="lc_caption form-help is-danger">
|
|
77
77
|
Invalid coupon: Min Order for Coupon: {{ value.minOrderValue | price(currency) }}
|
|
78
78
|
</div>
|
|
79
|
-
<div v-if="hasQualifyingProducts" class="lc_caption">
|
|
79
|
+
<div v-if="hasQualifyingProducts" class="lc_caption mb-10">
|
|
80
80
|
<div v-if="noQualifyingProductsInCart">
|
|
81
81
|
There are no qualifying products in your cart. See here for more information: <a href="/faq/other#entity-684640df5ce4d102f04974d1">EOFY Beanie offer</a>
|
|
82
82
|
</div>
|
package/layouts/products.vue
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<the-aside />
|
|
62
62
|
</div>
|
|
63
63
|
</template>
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
<script>
|
|
66
66
|
import debounce from 'lodash.debounce';
|
|
67
67
|
import LazyHydrate from 'vue-lazy-hydration';
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
import TheFooter from '@/components/the_footer/the-footer';
|
|
82
82
|
import ProductsCatalog from '@/components/products/products_catalog/products-catalog';
|
|
83
83
|
import Error from './error';
|
|
84
|
-
|
|
84
|
+
|
|
85
85
|
export default {
|
|
86
86
|
name: 'ProductsLayout',
|
|
87
87
|
components: {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
if (this.page === 1 && this.products.length === 0) {
|
|
107
107
|
await this.fetchChildrenCategories(this.currentCategory);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
|
|
110
110
|
if (process.server) {
|
|
111
111
|
this.$root.context?.res?.setHeader('Cache-Control', `max-age=${86400}`);;
|
|
112
112
|
}
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
...mapGetters(['notificationBar', 'shop', 'country', 'currency']),
|
|
117
117
|
...mapGetters('products', ['category', 'childrenCategories', 'categories', 'brands', 'types', 'tags', 'loadError', 'count', 'products', 'minPrice', 'maxPrice', 'page']),
|
|
118
118
|
visiblChildrenCategories() {
|
|
119
|
-
return this.page === 1 && this.products.length === 0 && this.childrenCategories.length > 0;
|
|
119
|
+
return false; // this.page === 1 && this.products.length === 0 && this.childrenCategories.length > 0;
|
|
120
120
|
},
|
|
121
121
|
pageItemCanonical() {
|
|
122
122
|
const page = +this.$route.query.page;
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
text: this.currentProductType.name
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
|
|
181
|
+
|
|
182
182
|
if (this.currentTag) {
|
|
183
183
|
breadcrumbs.push({
|
|
184
184
|
to: generateProductsLink(this.$route, {
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
text: this.currentTag.name
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
|
|
193
|
+
|
|
194
194
|
if (this.currentBrand) {
|
|
195
195
|
breadcrumbs.push({
|
|
196
196
|
to: generateProductsLink(this.$route, {
|
|
@@ -202,14 +202,14 @@
|
|
|
202
202
|
text: this.currentBrand.name
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
return breadcrumbs;
|
|
207
207
|
},
|
|
208
208
|
routeName() {
|
|
209
209
|
if (this.routeInfo && this.routeInfo.textTitle) {
|
|
210
210
|
return this.routeInfo.textTitle;
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
|
|
213
213
|
const items = ['Products'];
|
|
214
214
|
if (this.currentCategory) {
|
|
215
215
|
items.push(this.currentCategory.name);
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
const maxPrintsPrice = product.maxPrintsPrice || 0;
|
|
261
261
|
const maxProductPrice = product.isClearance ? product.maxPriceWithoutClearance : product.maxPrice;
|
|
262
262
|
const maxPrice = maxProductPrice + maxPrintsPrice;
|
|
263
|
-
|
|
263
|
+
|
|
264
264
|
const schema = {
|
|
265
265
|
'@type': 'Product',
|
|
266
266
|
name: product.name,
|
|
@@ -282,16 +282,16 @@
|
|
|
282
282
|
name: product.brand.name
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
|
|
286
286
|
const image = getProductLargeCover(product, 'front') || getProductMediumCover(product, 'front');
|
|
287
287
|
if (image) {
|
|
288
288
|
schema.image = image;
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
return schema;
|
|
292
292
|
}) || []
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
|
|
295
295
|
const breadcrumbSchema = {
|
|
296
296
|
'@context': 'https://schema.org',
|
|
297
297
|
'@type': 'BreadcrumbList',
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
}))
|
|
312
312
|
]
|
|
313
313
|
};
|
|
314
|
-
|
|
314
|
+
|
|
315
315
|
return [productsSchema, breadcrumbSchema, this.$store.state.shop?.schema].filter(s => !!s);
|
|
316
316
|
},
|
|
317
317
|
methods: {
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
if (/^\/products/.test(this.$route.path)) {
|
|
338
338
|
this.loadProducts();
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
|
|
341
341
|
this.$aside.hide();
|
|
342
342
|
}, 100),
|
|
343
343
|
async loadProducts(placeholder) {
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
</script>
|
|
379
379
|
<style lang="scss" scoped>
|
|
380
380
|
@import "@/assets/scss/variables";
|
|
381
|
-
|
|
381
|
+
|
|
382
382
|
.Products {
|
|
383
383
|
margin-top: 40px;
|
|
384
384
|
&__text {
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
::v-deep .ProductsFilters {
|
|
442
442
|
&__wrapper {
|
|
443
443
|
margin-bottom: 20px;
|
|
444
|
-
|
|
444
|
+
|
|
445
445
|
input,
|
|
446
446
|
.multiselect__tags {
|
|
447
447
|
border-radius: 0px !important;
|
|
@@ -453,4 +453,3 @@
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
</style>
|
|
456
|
-
|