blixten19 LiteCart Fan จาก Sweden เป็นสมาชิกตั้งแต่ พ.ค. 2022 blixten19 19 ก.ย. 2022 20:55 Hello How can i set so customer mus have products for 200sek in the basket if the not have this the can not complete a order. The minimum for complete a order
tim Founder จาก Sweden เป็นสมาชิกตั้งแต่ พ.ค. 2013 tim 19 ก.ย. 2022 21:38 Create an order module and invoke the validate method. https://wiki.litecart.net/how_to_create_an_order_module For the order total: if ($order->data['payment_due'] < 200) { // This is in store currency return ['error' => 'This order is no good']; } } Foor the subtotal: $subtotal = 0; foreach ($order->data['items'] as $item) { $subtotal += $item['price'] * $item['quanntity']; } if ($subtotal < 200) { return ['error' => 'This order is no good']; } }```