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 --- .../modules/product-detail/components/PriceAction.tsx | 2 +- src/lib/transaction/components/Transaction.jsx | 2 +- src/lib/variant/components/VariantCard.jsx | 12 ++++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index 9348bbfb..850c2d9d 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -163,7 +163,7 @@ const PriceAction = ({ product }: Props) => { */}
- {selectedVariant?.is_in_bu && ( + {qtyPickUp > 0 && ( { ? `| ${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