summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-20 10:15:37 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-20 10:15:37 +0700
commita3f04830ba424a64ca412ffd211e55fa3d43a4ed (patch)
treeabdfe21d7118c52826da76669c3bb86d97de83c7
parentb23d224aa285559d3d4fdfdad4d1f5bc91604b61 (diff)
<Miqdad> show include ppn mobile
-rw-r--r--src/lib/product/components/ProductCard.jsx11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 785101bf..db608159 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -471,7 +471,16 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
</div>
<div className='text-danger-500 font-semibold mb-2'>
{product?.lowestPrice.priceDiscount > 0 ? (
- currencyFormat(product?.lowestPrice.priceDiscount)
+ <>
+ {currencyFormat(product?.lowestPrice.priceDiscount)}
+ <div className='text-gray_r-9 text-[10px] font-normal mt-2'>
+ Inc. PPN:{' '}
+ {currencyFormat(
+ product.lowestPrice.priceDiscount *
+ process.env.NEXT_PUBLIC_PPN
+ )}
+ </div>
+ </>
) : (
<a
rel='noopener noreferrer'