| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Minimum Products Allowed To checkout | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Minimum Products Allowed To checkout
Again another simple but useful option
We already have an option for the following Minimum allowed order subtotal: Maximum allowed order subtotal (0 means no maximum limit): Maximum allowed total quantity of products in an order (0 means no maximum limit): It would be useful to complete the set and add the following option too Minimum allowed total quantity of products in an order (0 means no maximum limit): Im working on a store now that wishes to set a minimum quantity ordered before you can checkout
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Minimum Products Allowed To checkout
As I had to do this anyway if anyone needs it heres how it can be done ...
this is done for 4.1.8 but it should not be too hard to adjust it for other versions. Its basically a rehash of the max amount setting. for starters put this into the config table Code:
Then edit cart.php and find ... Code:
and just after it add this Code:
Next up add the following language variable via the languages section Code:
next up edit skin1/customer/home_main.tpl find Code:
and just after it add this .. Code:
finally make a new tpl file (you can make a copy of error_max_itemps.tpl) skin1/main/error_min_items.tpl this is the code for the template file Code:
you should now be able to set the minimum amount of items that need to be added to the cart before someone can checkout. If you leave this as zero then it will be ignored
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
|
|||
X-Cart forums © 2001-2020
|