summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-20 10:10:39 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-20 10:10:39 +0700
commitb23d224aa285559d3d4fdfdad4d1f5bc91604b61 (patch)
treefc97dbf5d2fd17f840211f8bba040ad702e28561 /src/lib
parente685337959f292615f3321d901a5cd7b377235a6 (diff)
<Miqdad> show inc ppn desktop
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/ProductCard.jsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 5912f837..785101bf 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -104,7 +104,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
alt='Pick Up Now'
width={83}
height={24}
- className='drop-shadow-sm'
+ // className='drop-shadow-sm'
loading='eager'
/>
</Link>
@@ -232,7 +232,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'