@haus-tech/product-export-plugin 2.2.4 → 2.2.6
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 =
|
|
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();
|