From e02f6630910bb7dbecff0aa9eec937b9c02f1f52 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 28 Apr 2023 11:44:51 +0700 Subject: fix checkout --- src/lib/checkout/components/Checkout.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/checkout/components') diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index eee679fd..0a8b072a 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -122,8 +122,8 @@ const Checkout = () => { quantity: product.quantity })) let data = { - partner_shipping_id: selectedAddress.shipping.id, - partner_invoice_id: selectedAddress.invoicing.id, + partner_shipping_id: auth.partnerId, + partner_invoice_id: auth.partnerId, order_line: JSON.stringify(productOrder), type: 'sale_order' } -- cgit v1.2.3 From 92b99c8d1d890766da55031f921601372d5b49a3 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 3 May 2023 09:14:02 +0700 Subject: default banner brand, whatsapp link, bug fix after transaction --- src/lib/checkout/components/FinishCheckout.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/checkout/components') diff --git a/src/lib/checkout/components/FinishCheckout.jsx b/src/lib/checkout/components/FinishCheckout.jsx index cd93e3a4..92245e31 100644 --- a/src/lib/checkout/components/FinishCheckout.jsx +++ b/src/lib/checkout/components/FinishCheckout.jsx @@ -14,7 +14,7 @@ const FinishCheckout = ({ query }) => {

No. Transaksi

Lihat detail pembelian Anda disini -- cgit v1.2.3 From 93832023b7c2f560bd90a02e9768d0fccec79078 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 3 May 2023 16:03:45 +0700 Subject: whatsapp url --- src/lib/checkout/components/Checkout.jsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/lib/checkout/components') diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index 0a8b072a..dc3908db 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -19,6 +19,8 @@ import axios from 'axios' import Image from '@/core/components/elements/Image/Image' import MobileView from '@/core/components/views/MobileView' import DesktopView from '@/core/components/views/DesktopView' +import whatsappUrl from '@/core/utils/whatsappUrl' +import { createSlug } from '@/core/utils/slug' const Checkout = () => { const router = useRouter() @@ -251,7 +253,7 @@ const Checkout = () => {
*) Terdapat produk yang belum memiliki harga,{' '} - + Hubungi Kami untuk meminta harga. @@ -330,7 +332,13 @@ const Checkout = () => { {product.price.priceDiscount > 0 ? ( currencyFormat(product?.price?.priceDiscount * product?.quantity) ) : ( - + Call For Price{' '} )} @@ -423,7 +431,7 @@ const Checkout = () => {
*) Terdapat produk yang belum memiliki harga,{' '} - + Hubungi Kami untuk meminta harga. -- cgit v1.2.3