From d36a21cb0a6e95323fa9dd868a79bf1a318968e3 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Mon, 10 Mar 2025 21:41:38 +0700 Subject: update code variant no pick up --- src/lib/transaction/components/Transaction.jsx | 2 +- src/lib/variant/components/VariantCard.jsx | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx index b2fb2c17..2ca7d386 100644 --- a/src/lib/transaction/components/Transaction.jsx +++ b/src/lib/transaction/components/Transaction.jsx @@ -885,7 +885,7 @@ const Transaction = ({ id }) => { ? `| ${product?.attributes.join(', ')}` : ''} - {product.soQty && product.reservedStockQty && ( + {product.soQty && (
{product.soQty !== product.reservedStockQty ? 'Barang sedang disiapkan' diff --git a/src/lib/variant/components/VariantCard.jsx b/src/lib/variant/components/VariantCard.jsx index d8cd5c93..79746995 100644 --- a/src/lib/variant/components/VariantCard.jsx +++ b/src/lib/variant/components/VariantCard.jsx @@ -128,10 +128,18 @@ const VariantCard = ({ product, openOnClick = true, buyMore = false }) => {

Berat Item : {product?.weight} Kg x {product?.quantity} Barang

-

+ {product.soQty && ( +

+ {product.soQty !== product.reservedStockQty + ? 'Barang sedang disiapkan' + : `${product.reservedStockQty} barang bisa di + kirim/pickup`} +
+ )} + {/*

{qtyPickUp} barang ini bisa di pickup maksimal pukul 16.00 -

+

*/}
{product.hasFlashsale && ( <> -- cgit v1.2.3