php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software


Back to Functions List
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.


afc_check_for_minimum_order_amount (id)

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.

Return Values

This function has no return value.

Open Source: Yes

Paul's Examples

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


There are currently no posts for this topic.

AFCommerce Documentation

High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
AFCommerce Website
And Cart Builder