diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-04 06:36:42 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-04 06:36:42 +0000 |
| commit | 8fd1c897fc28b1e3b95f9e54135163ffe86846ad (patch) | |
| tree | 60b607213765c9c3b9912523c0c737732ff37c0b /src | |
| parent | b49f0d06ef9ea9b847e33c4f23f3e81d171a65fb (diff) | |
| parent | a72b7217f84f819974d8e48b8ed1fb65ec5d9666 (diff) | |
Merged in CR/Pricelist (pull request #84)
bugs fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/pages/api/shop/product-detail.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/api/shop/product-detail.js b/src/pages/api/shop/product-detail.js index 23adcb5f..60433459 100644 --- a/src/pages/api/shop/product-detail.js +++ b/src/pages/api/shop/product-detail.js @@ -38,7 +38,7 @@ const productResponseMap = (products, pricelist) => { if (pricelistDiscountPerc && pricelistDiscountPerc > 0) discountPercentage = pricelistDiscountPerc */ - price = product?.[`price_${pricelist}_v2_f`] || 0 + price = product?.[`price_${pricelist}_f`] || 0 } if (product?.flashsale_id_i > 0) { @@ -93,7 +93,7 @@ const productVariantsResponseMap = (parent, products, pricelist) => { let discountPercentage = product.discount_f || 0 if (pricelist) { - price = product?.[`price_${pricelist}_v2_f`] || 0 + price = product?.[`price_${pricelist}_f`] || 0 } if (product?.flashsale_id_i > 0) { |
