diff options
| -rw-r--r-- | public/robots.txt | 7 | ||||
| -rw-r--r-- | src/pages/google_merchant/products/[page].js | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/public/robots.txt b/public/robots.txt index 418e72f1..4aca1276 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -2,8 +2,6 @@ # User-agent: * # Version 1.0 -User-agent: AhrefsBot -User-agent: Yandex User-agent: Googlebot User-agent: Googlebot-mobile Disallow: /shop/product/pdf/* @@ -15,10 +13,13 @@ Disallow: /shop/search?q=* Disallow: /shop/cart/ Disallow: /shop/checkout/ Disallow: /my/* -Disallow: /shop/variant/* Disallow: /shop/search/* Disallow: /promo/* +User-agent: Adsbot-Google +Allow: /my/* +Allow: /shop/search/* + User-agent: * Disallow: sentral.indoteknik.com/* Disallow: erp.indoteknik.com/* 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) |
