@lancom/shared 0.0.359 → 0.0.360

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.
@@ -331,6 +331,14 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
331
331
  // schema.gtin = SKU;
332
332
  }
333
333
 
334
+ if (this.$store.state.shop?.returnPolicySchema) {
335
+ productSchema.hasMerchantReturnPolicy = this.$store.state.shop?.returnPolicySchema;
336
+ }
337
+
338
+ if (this.$store.state.shop?.shippingPolicySchema) {
339
+ productSchema.shippingDetails = this.$store.state.shop?.shippingPolicySchema;
340
+ }
341
+
334
342
  if (aggregateRating?.count > 0) {
335
343
  productSchema.aggregateRating = {
336
344
  '@type': 'AggregateRating',
@@ -403,9 +411,7 @@ export default (IS_PRODUCT_PRESET_PRINT_PRICING, isEditor = false) => ({
403
411
  return [
404
412
  productSchema,
405
413
  breadcrumbSchema,
406
- mainEntity.length > 0 ? faqSchema : null,
407
- this.$store.state.shop?.shippingPolicySchema,
408
- this.$store.state.shop?.returnPolicySchema
414
+ mainEntity.length > 0 ? faqSchema : null
409
415
  ].filter(s => !!s);
410
416
  }
411
417
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.359",
3
+ "version": "0.0.360",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {