@lancom/shared 0.0.436 → 0.0.437

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.
@@ -106,16 +106,18 @@ async function googleShoppingFeed(axios, config, availableStores, country, isEdi
106
106
  info['g:sale_price'] = { _text: `${(sp.clearancePrice)} ${sp.currencyCode || 'AUD'}` };
107
107
  }
108
108
 
109
- if (sp.storeCode && !config.IGNORE_STORE_CODE) {
110
- info['g:store_code'] = { _text: sp.storeCode };
111
- info['g:link_template'] = { _text: `${link}&store={store_code}` };
112
- if (availableStores) {
113
- info['g:pickup_method'] = { _text: 'buy' };
114
- info['g:pickup_sla'] = { _text: product.prePrint ? 'next day' : 'same day' };
109
+ if (!config.IGNORE_STORE_CODE) {
110
+ if (sp.storeCode) {
111
+ info['g:store_code'] = { _text: sp.storeCode };
112
+ info['g:link_template'] = { _text: `${link}&store={store_code}` };
113
+ if (availableStores) {
114
+ info['g:pickup_method'] = { _text: 'buy' };
115
+ info['g:pickup_sla'] = { _text: product.prePrint ? 'next day' : 'same day' };
116
+ }
117
+ } else {
118
+ info['g:pickup_method'] = { _text: 'not_supported' };
119
+ info['g:excluded_destination'] = [{ _text: 'Local_inventory_ads' }, { _text: 'Free_local_listings' }];
115
120
  }
116
- } else {
117
- info['g:pickup_method'] = { _text: 'not_supported' };
118
- info['g:excluded_destination'] = [{ _text: 'Local_inventory_ads' }, { _text: 'Free_local_listings' }];
119
121
  }
120
122
  if (product.volume) {
121
123
  if (product.volume.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.436",
3
+ "version": "0.0.437",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {