From cdc3b88b650a40e15f0f54933b2740b6cf42dac9 Mon Sep 17 00:00:00 2001 From: Mark Pinkster Date: Fri, 16 Jan 2026 17:23:23 +0100 Subject: [PATCH] Quantity bug fix --- api/actions/orders.php | 2 +- index.html | 150 ++++++++++++--------------- js/components/cart.js | 210 ++++++++++++++++++++++++++++++++------ js/components/products.js | 177 +++++++++++++++++++++++++++----- js/services/bogo.js | 41 +++++++- 5 files changed, 431 insertions(+), 149 deletions(-) diff --git a/api/actions/orders.php b/api/actions/orders.php index e2a8b86..7b4ec11 100644 --- a/api/actions/orders.php +++ b/api/actions/orders.php @@ -21,7 +21,7 @@ function handleCreateOrder(): void $input['payment_method'] = 'cod'; $input['payment_method_title'] = 'Sales Panel Order'; - $input['status'] = 'on-hold'; + $input['status'] = 'processing-unpaid'; // IMPORTANT: Disable automatic price calculation // This ensures WooCommerce uses the prices from the sales panel diff --git a/index.html b/index.html index ae38172..fbc6967 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@