diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-06 16:14:55 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-06 16:14:55 +0700 |
| commit | 857ba27d9df9361fb0e8f4b77004e8c9a2b86110 (patch) | |
| tree | b744d85fe9bbab1d1dcf5fa41ae1cfdee9bc5780 /src/pages/google_merchant | |
| parent | 82194361b5213266aa0dd301ab259a89dde1964e (diff) | |
Change page animation and google merchant price include
Diffstat (limited to 'src/pages/google_merchant')
| -rw-r--r-- | src/pages/google_merchant/products/[page].js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pages/google_merchant/products/[page].js b/src/pages/google_merchant/products/[page].js index aaa4dde4..6f41ce35 100644 --- a/src/pages/google_merchant/products/[page].js +++ b/src/pages/google_merchant/products/[page].js @@ -42,10 +42,12 @@ export async function getServerSideProps({ res, query }) { 'g:condition': { '#text': 'new' }, 'g:availability': { '#text': 'in_stock' }, 'g:brand': { '#text': product.manufacture?.name || '' }, - 'g:price': { '#text': `${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': `${product.lowestPrice.priceDiscount} IDR` } + item['g:sale_price'] = { + '#text': `${Math.floor(product.lowestPrice.priceDiscount * 1.11)} IDR` + } } productItems.push(item) }) |
