From 3daa8e3faff1bb4b0f2d56b185069300b0bbe8c7 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Mon, 27 Oct 2025 11:07:11 +0700 Subject: update robots dan posisi harga desktop --- public/robots.txt | 5 +---- .../modules/product-detail/components/PriceAction.tsx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/public/robots.txt b/public/robots.txt index 957708ad..08a35d98 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -2,7 +2,7 @@ # User-agent: * # Version 1.0 -User-agent: / +User-agent: * User-agent: Googlebot User-agent: Googlebot-mobile Disallow: /shop/product/pdf/* @@ -23,9 +23,6 @@ User-agent: Adsbot-Google Allow: /my/* Allow: /shop/search/* -User-agent: * -Disallow: sentral.indoteknik.com/* -Disallow: erp.indoteknik.com/* Sitemap: https://indoteknik.com/sitemap/products.xml Sitemap: https://indoteknik.com/sitemap/brands.xml diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index f8591b3a..683b679c 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -68,7 +68,7 @@ const PriceAction = ({ product }: Props) => { const price = activePrice?.price_discount || activePrice?.price || 0; const pricedigit = String(Math.floor(price)).length; - const fontSize = pricedigit > 9 ? '20px' : undefined; + const fontSize = pricedigit >= 9 ? '20px' : undefined; // let voucherPastiHemat = 0; @@ -99,16 +99,16 @@ const PriceAction = ({ product }: Props) => {
{Math.floor(activePrice.discount_percentage)}%
-
- Rp {formatCurrency(activePrice.price || 0)} +
+ Rp {formatCurrency(activePrice.price_discount || 0)}
)} -
- Rp {formatCurrency(activePrice.price_discount || 0)} +
+ Rp {formatCurrency(activePrice.price || 0)}
-- cgit v1.2.3