fixed order and cart req

This commit is contained in:
Jelaletdin12
2026-03-13 15:39:24 +05:00
parent c623fd19d6
commit 69e3e2e0ab
3 changed files with 27 additions and 10 deletions

View File

@@ -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: () => {