@haus-tech/product-export-plugin 2.2.4 → 2.2.5

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.
@@ -173,9 +173,10 @@ let ProductExportService = class ProductExportService {
173
173
  record[`optionValues:${lang}`] = variantValues[lang];
174
174
  record[`variantFacets:${lang}`] = variantFacets[lang];
175
175
  }
176
+ const productVariantPrices = variant.productVariantPrices.filter((price) => price.channelId === ctx.channelId);
176
177
  record.assets = records.length === 0 ? productAssets : '';
177
178
  record.sku = variant.sku;
178
- record.price = variant.productVariantPrices[0]?.price / 100; // Assuming the price is stored in cents
179
+ record.price = productVariantPrices[0]?.price / 100; // Assuming the price is stored in cents
179
180
  record.taxCategory = 'standard'; // Replace with actual tax category if available
180
181
  record.stockOnHand = stockOnHand;
181
182
  record.trackInventory = variant.trackInventory.toLowerCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-tech/product-export-plugin",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "A Vendure plugin for importing products from a CSV file",
5
5
  "author": "Haus Tech",
6
6
  "repository": {