summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-07-04 10:02:39 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-07-04 10:02:39 +0700
commita995acd0881ef6825c0862e71dea33110bbdf1dd (patch)
tree5137336da19b6b091fbb4f31437c872af6dc642c /src
parent19382df63d65d90e11bde945bc8a533b6170f432 (diff)
Update harga exclude di google merchant xml
Diffstat (limited to 'src')
-rw-r--r--src/pages/google_merchant/products/[page].js4
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 1e70d24f..65e1ebbe 100644
--- a/src/pages/google_merchant/products/[page].js
+++ b/src/pages/google_merchant/products/[page].js
@@ -43,11 +43,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)} IDR` }
+ 'g:price': { '#text': `${Math.floor(product.lowestPrice.price * 1.11)} IDR` }
}
if (product.lowestPrice.discountPercentage > 0) {
item['g:sale_price'] = {
- '#text': `${Math.floor(product.lowestPrice.priceDiscount)} IDR`
+ '#text': `${Math.floor(product.lowestPrice.priceDiscount * 1.11)} IDR`
}
}
productItems.push(item)