diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-20 17:13:24 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-20 17:13:24 +0700 |
| commit | 2feb295e892d2f443e9f8cfa67b33285314da16f (patch) | |
| tree | 337f57e16567aa933d32f807049060ef85e29acc /src/pages/google_merchant/products | |
| parent | 290114b315a2f478113918cd8fc37737a47f8e70 (diff) | |
Update merchant xml price to exclude price
Diffstat (limited to 'src/pages/google_merchant/products')
| -rw-r--r-- | src/pages/google_merchant/products/[page].js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/google_merchant/products/[page].js b/src/pages/google_merchant/products/[page].js index 6f41ce35..4a7d95c6 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -42,11 +42,11 @@ export async function getServerSideProps({ res, query }) { 'g:condition': { '#text': 'new' }, 'g:availability': { '#text': 'in_stock' }, 'g:brand': { '#text': product.manufacture?.name || '' }, - 'g:price': { '#text': `${Math.floor(product.lowestPrice.price * 1.11)} IDR` } + 'g:price': { '#text': `${Math.floor(product.lowestPrice.price)} IDR` } } if (product.lowestPrice.discountPercentage > 0) { item['g:sale_price'] = { - '#text': `${Math.floor(product.lowestPrice.priceDiscount * 1.11)} IDR` + '#text': `${Math.floor(product.lowestPrice.priceDiscount)} IDR` } } productItems.push(item) |
