From 96e59b7af6895f82ac005d60b65084bd5ec2d01f Mon Sep 17 00:00:00 2001 From: "HATEC\\SPVDEV001" Date: Thu, 31 Aug 2023 16:47:34 +0700 Subject: change ui open newtab, g maps, top banner, profil --- src/lib/checkout/components/Checkout.jsx | 752 ++++++++++++++++--------------- 1 file changed, 401 insertions(+), 351 deletions(-) (limited to 'src/lib/checkout/components/Checkout.jsx') diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index afb94c10..27a00aa8 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -490,7 +490,9 @@ const Checkout = () => {
)} -
+
{item.canApply && (
{ >

Tambah produk{' '} - {item.manufactureNames} senilai{' '} + {item.manufactureNames}{' '} + senilai{' '} {currencyFormat(item.minPurchaseAmount)} {' '} @@ -537,7 +540,8 @@ const Checkout = () => { >

Tambah produk{' '} - {item.manufactureNames} senilai{' '} + {item.manufactureNames}{' '} + senilai{' '} {currencyFormat(item.differenceToApply)} {' '} @@ -652,6 +656,29 @@ const Checkout = () => { + {selectedCarrierId == SELF_PICKUP_ID && ( +

+ +
+ )} + {selectedCarrierId == SELF_PICKUP_ID && } {selectedCarrierId != SELF_PICKUP_ID && ( <> @@ -884,393 +911,416 @@ const Checkout = () => { -
-
- {selectedCarrierId == SELF_PICKUP_ID && } - {selectedCarrierId != SELF_PICKUP_ID && ( - <> - - - - - )} - - - - - +
+ {selectedCarrierId == SELF_PICKUP_ID && ( + + )} + +
+ {' '} +
+ {selectedCarrierId == SELF_PICKUP_ID && } + {selectedCarrierId != SELF_PICKUP_ID && ( + <> + + + + + )} + + + + + -
-
Detail Pesanan
- - - - - - - - - - - {!products ? ( +
+
Detail Pesanan
+
Nama ProdukJumlahHargaSubtotal
+ - + + + + - ) : ( - products?.map((product) => ( - <> - - + + {!products ? ( + + + + ) : ( + products?.map((product) => ( + <> + + - - - - - {product.program && - product.program.items && - product.program.items.map((item) => ( - <> - - + + - - + + + {product.program && + product.program.items && + product.program.items.map((item) => ( + <> + + - - - - - ))} - - )) - )} - -
-
-
-
-
-
-
-
Nama ProdukJumlahHargaSubtotal
-
- {product?.name} -
-
-
- {product?.parent?.name} -
-
- {product?.code}{' '} - {product?.attributes.length > 0 - ? `| ${product?.attributes.join(', ')}` - : ''} -
-
- Berat item : {product?.weight} Kg +
+
+
+
+
+
+
+
+
+ {product?.name}
- -
- - - {product?.price?.discountPercentage > 0 && ( -
-
- {currencyFormat(product?.price?.price)} +
+
+ {product?.parent?.name}
-
- {product?.price?.discountPercentage}% +
+ {product?.code}{' '} + {product?.attributes.length > 0 + ? `| ${product?.attributes.join(', ')}` + : ''} +
+
+ Berat item : {product?.weight} Kg
- )} -
- {product.price.priceDiscount > 0 - ? currencyFormat(product?.price?.priceDiscount) - : 'Call For Price'} -
-
-
- {product.price.priceDiscount > 0 ? ( - currencyFormat(product?.price?.priceDiscount * product?.quantity) - ) : ( - - Call For Price{' '} - - )} -
-
-
- {item.name} +
+ + + {product?.price?.discountPercentage > 0 && ( +
+
+ {currencyFormat(product?.price?.price)}
-
-
- - {product.program.type.label} - -
-
{item.name}
+
+ {product?.price?.discountPercentage}%
-
- - - {item?.price?.discountPercentage > 0 && ( -
-
- {currencyFormat(product?.price?.price)} +
+ )} +
+ {product.price.priceDiscount > 0 + ? currencyFormat(product?.price?.priceDiscount) + : 'Call For Price'} +
+
+
+ {product.price.priceDiscount > 0 ? ( + currencyFormat(product?.price?.priceDiscount * product?.quantity) + ) : ( + + Call For Price{' '} + + )} +
+
+
+ {item.name} +
+
+
+ + {product.program.type.label} +
+
{item.name}
- )} -
- {item?.price.priceDiscount > 0 ? 'Gratis' : ''} -
-
-
- {item.price.priceDiscount > 0 ? 'Gratis' : ''} -
-
-
-
- -
-
-
-
Ringkasan Pesanan
-
{products?.length} Barang
+ + + + + + {item?.price?.discountPercentage > 0 && ( +
+
+ {currencyFormat(product?.price?.price)} +
+
+ )} +
+ {item?.price.priceDiscount > 0 ? 'Gratis' : ''} +
+ + +
+ {item.price.priceDiscount > 0 ? 'Gratis' : ''} +
+ + + + + ))} + + )) + )} + +
+
+
+
+
+
Ringkasan Pesanan
+
{products?.length} Barang
+
-
- {!cartCheckout ? ( -
-
-
-
+
+ {!cartCheckout ? ( +
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+ ) : ( +
+
+
Total Belanja
+
{currencyFormat(cartCheckout?.totalPurchase)}
+
+
+
Diskon Produk
+
+ - {currencyFormat(cartCheckout?.totalDiscount)} +
+
+ {activeVoucher && ( +
+
Diskon Voucher
+
- {currencyFormat(discountVoucher)}
+
+ )} +
+
Subtotal
+
{currencyFormat(cartCheckout?.subtotal)}
+
+
+
PPN 11%
+
{currencyFormat(cartCheckout?.tax)}
+
+
+
+ Biaya Kirim +

{etdFix}

+
+
+ {currencyFormat(Math.round(parseInt(biayaKirim * 1.1) / 1000) * 1000)} +
-
-
+ )} + +
+ {!cartCheckout ? ( +
+ {' '}
-
-
-
- ) : ( -
-
-
Total Belanja
-
{currencyFormat(cartCheckout?.totalPurchase)}
-
-
-
Diskon Produk
-
- - {currencyFormat(cartCheckout?.totalDiscount)} +
+
- {activeVoucher && ( -
-
Diskon Voucher
-
- {currencyFormat(discountVoucher)}
+ ) : ( +
+
Grand Total
+
+ {currencyFormat( + cartCheckout?.grandTotal + + Math.round(parseInt(biayaKirim * 1.1) / 1000) * 1000 + )}
- )} -
-
Subtotal
-
{currencyFormat(cartCheckout?.subtotal)}
-
-
-
PPN 11%
-
{currencyFormat(cartCheckout?.tax)}
-
-
- Biaya Kirim -

{etdFix}

-
-
- {currencyFormat(Math.round(parseInt(biayaKirim * 1.1) / 1000) * 1000)} + )} + +
+ +
+
+ {'>'} +
- )} -
- {!cartCheckout ? ( -
-
- {' '} -
-
-
-
-
+

+ Dengan melakukan pembelian melalui website Indoteknik, saya menyetujui{' '} + + Syarat & Ketentuan + {' '} + yang berlaku +

+ +
+ +
+ Purchase Order (Opsional)
- ) : ( -
-
Grand Total
-
- {currencyFormat( - cartCheckout?.grandTotal + - Math.round(parseInt(biayaKirim * 1.1) / 1000) * 1000 - )} + +
+
+ + +
+
+ +
- )} +

Ukuran dokumen PO Maksimal 5MB

-
+
-
+ {priceCheck && ( +
+ + *) Terdapat produk yang belum memiliki harga,{' '} + + Hubungi Kami untuk meminta harga. + - {activeVoucher ? ( -
-
- Hemat {currencyFormat(discountVoucher)} -
-
- Voucher berhasil digunakan -
-
- ) : ( - - Hemat belanja dengan promo - - )}
- {'>'} - -
- -

- Dengan melakukan pembelian melalui website Indoteknik, saya menyetujui{' '} - - Syarat & Ketentuan - {' '} - yang berlaku -

- -
- -
- Purchase Order (Opsional) -
- -
-
- - -
-
- - -
+ )}
-

Ukuran dokumen PO Maksimal 5MB

- -
- - - {priceCheck && ( -
- - *) Terdapat produk yang belum memiliki harga,{' '} - - Hubungi Kami untuk meminta harga. - - -
- )}
-- cgit v1.2.3