@lancom/shared 0.0.361 → 0.0.363
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.
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
</span>
|
|
27
27
|
</label>
|
|
28
28
|
<label
|
|
29
|
+
v-if="app.PAYMENT_GOOGLE_GATEWAY"
|
|
29
30
|
class="form-label OrderPaymentInformation__checkbox"
|
|
30
31
|
@click="updatePaymentType('google')">
|
|
31
32
|
<checked-icon :checked="paymentMethod === 'google'" />
|
|
@@ -124,7 +125,7 @@ export default {
|
|
|
124
125
|
},
|
|
125
126
|
computed: {
|
|
126
127
|
...mapGetters(['MESSAGES']),
|
|
127
|
-
...mapGetters(['country', 'currency']),
|
|
128
|
+
...mapGetters(['country', 'currency', 'app']),
|
|
128
129
|
...mapGetters(['orderSettings']),
|
|
129
130
|
...mapGetters('order', ['card']),
|
|
130
131
|
...mapGetters('cart', ['entities', 'notEmptySimpleProducts', 'cartPricing'])
|
package/mixins/product-view.js
CHANGED
|
@@ -295,10 +295,10 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
|
|
|
295
295
|
'@type': 'http://schema.org/QuantitativeValue',
|
|
296
296
|
value: this.product.sameDayDispatch ? 1 : 0
|
|
297
297
|
};
|
|
298
|
-
if (sp.quantityStock > 0) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
298
|
+
// if (sp.quantityStock > 0) {
|
|
299
|
+
offer.shippingDetails = { "@id": "#shipping_policy" };
|
|
300
|
+
offer.hasMerchantReturnPolicy = { "@id": "#return_policy" };
|
|
301
|
+
// }
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
const galleryImages = this.product.images?.filter(i => !(i.types || []).includes('designer') && i.color === sp.color?._id) || [];
|
|
@@ -333,14 +333,6 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
|
|
|
333
333
|
// schema.gtin = SKU;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
if (this.$store.state.shop?.returnPolicySchema) {
|
|
337
|
-
productSchema.hasMerchantReturnPolicy = this.$store.state.shop?.returnPolicySchema;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
if (this.$store.state.shop?.shippingPolicySchema) {
|
|
341
|
-
productSchema.shippingDetails = this.$store.state.shop?.shippingPolicySchema;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
336
|
if (aggregateRating?.count > 0) {
|
|
345
337
|
productSchema.aggregateRating = {
|
|
346
338
|
'@type': 'AggregateRating',
|
|
@@ -413,7 +405,9 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
|
|
|
413
405
|
return [
|
|
414
406
|
productSchema,
|
|
415
407
|
breadcrumbSchema,
|
|
416
|
-
mainEntity.length > 0 ? faqSchema : null
|
|
408
|
+
mainEntity.length > 0 ? faqSchema : null,
|
|
409
|
+
this.$store.state.shop?.returnPolicySchema,
|
|
410
|
+
this.$store.state.shop?.shippingPolicySchema
|
|
417
411
|
].filter(s => !!s);
|
|
418
412
|
}
|
|
419
413
|
});
|