fixed order and cart req
This commit is contained in:
@@ -128,6 +128,8 @@ export default function CartPage() {
|
||||
);
|
||||
if (!selectedProvinceData) return;
|
||||
|
||||
const product_ids = cartItems.map((item) => item.product.id);
|
||||
|
||||
createOrder(
|
||||
{
|
||||
customer_name: `${name} ${lastName}`.trim(),
|
||||
@@ -137,6 +139,7 @@ export default function CartPage() {
|
||||
payment_type_id: paymentType.id,
|
||||
region: selectedRegion,
|
||||
notes: note || undefined,
|
||||
product_ids,
|
||||
},
|
||||
{
|
||||
onSuccess: () => {
|
||||
|
||||
Reference in New Issue
Block a user