From bb953ad18e9040e009d93dff772b792ade6b11f2 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Thu, 23 Oct 2025 11:48:52 +0700 Subject: price desktop --- src/lib/product/components/ProductCard.jsx | 56 +++++++++++++----------------- 1 file changed, 25 insertions(+), 31 deletions(-) diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 5908f1ee..7c47a10d 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -224,42 +224,36 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { {product?.flashSale?.id > 0 && product?.lowestPrice.discountPercentage > 0 ? ( - <> -
-
+
+
+ + {product?.lowestPrice.priceDiscount > 0 ? ( + currencyFormat(product?.lowestPrice.priceDiscount) + ) : ( + + Call for Inquiry + + )} + + {currencyFormat(product.lowestPrice.price)} -
-
-
- {product?.lowestPrice.priceDiscount > 0 ? ( - <> - {currencyFormat(product?.lowestPrice.priceDiscount)} -
- Include PPN:{' '} - {currencyFormat( - product.lowestPrice.priceDiscount * - process.env.NEXT_PUBLIC_PPN - )} -
- - ) : ( - - Call for Inquiry - - )} +
- +
) : ( -
+
{product?.lowestPrice.price > 0 ? ( <> - {currencyFormat(product?.lowestPrice.price)} -
+ {currencyFormat(product?.lowestPrice.priceDiscount)} +
Include PPN:{' '} {currencyFormat( product.lowestPrice.price * -- cgit v1.2.3