This Function Has Been Available Since:|
(AFCommerce v 2.1, Functions v 1.1)
Checks to see if the minimum order amount has been reached by the user to allow them to check out.
This function checks to see if you have set a minimum order amount, which if set to an amount greater than zero, will not allow a customer to complete an order unless this minimum order amount has been reached. If the current total order amount is less than the minimum order amount, the customer is redirected to minimumorder.php, which displays a message telling them to add more products to their order. Since this function is open source, as well as the language file, you can change which page the user is redirected too, and the text that is displayed when this amount is not reached. By default, there is not a minimum order amount set, so all orders can be completed regardless of the amount of the purchase.
id (integer) - Anytime you see this variable being passed to a function, all you need to do is simply use the variable $id, which is automatically set for you when dbinfo.php is called.
This function has no return value.
Open Source: Yes
This function is called in checkout.php, and I can't see you needing to use it anywhere else. If you build any feature that is similar to a minimum order amount, I suggest writing your own function to handle that feature.
Back to Functions List