diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-11 16:54:31 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-11 16:54:31 +0700 |
| commit | 7e2f5060f4cb140be6910f1b0b86e498ae5917c7 (patch) | |
| tree | e7a0cf5ec8ed2964cf966c4cc0ab720486c3de75 | |
| parent | 6e10da793b9c1acf71232fe741cf91d16a4db82a (diff) | |
| parent | 63779b2d7e23bf61bb4f2a7e6cbe028f7f0eb49f (diff) | |
Merge branch 'master' of bitbucket.org:altafixco/next-indoteknik
| -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 52b87389..eeda4347 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -45,11 +45,11 @@ export async function getServerSideProps({ res, query }) { 'g:condition': { '#text': 'new' }, 'g:availability': { '#text': availability }, 'g:brand': { '#text': product.manufacture?.name || '' }, - 'g:price': { '#text': `${Math.floor(product.lowestPrice.price * 1.11)} IDR` } + 'g:price': { '#text': `${Math.round(product.lowestPrice.price * 1.11)} IDR` } } if (product.lowestPrice.discountPercentage > 0) { item['g:sale_price'] = { - '#text': `${Math.floor(product.lowestPrice.priceDiscount * 1.11)} IDR` + '#text': `${Math.round(product.lowestPrice.priceDiscount * 1.11)} IDR` } } productItems.push(item) |
