tilekus Posted April 1, 2015 Share Posted April 1, 2015 Hello, I want to set some limit of quantity of orders per day. I mean not quantity of products in order but i want to set limit of all orders per day. For example if i will set this limit to 15, then all customer will be able to make only 15 orders per day. Thank you Link to comment Share on other sites More sharing options...
razaro Posted April 1, 2015 Share Posted April 1, 2015 Most of people want to have more orders with no limit :-) But I guess it depends of nature of work and products, and that more orders physically would be hard to complete. And while you need to limit number orders per day, I could suggest that maybe you leave option to move order for next or some future day. Like these delivery date modules http://addons.prestashop.com/en/front-office-features-prestashop-modules/1652-delivery-days.html http://codecanyon.net/item/delivery-days-for-prestashop/8371810. To get back to your question, one idea is maybe to have a module that would work with cronjob, so it checks maybe every 10 min for number of orders on current day. And then if number is over 15 to turn shop in catalog mode with some notice that customers can not place for today. Or in some other way to leave that for checkout page, so customers can save cart and come tomorrow. Link to comment Share on other sites More sharing options...
tilekus Posted April 1, 2015 Author Share Posted April 1, 2015 On 4/1/2015 at 11:56 AM, razaro said: Most of people want to have more orders with no limit :-) But I guess it depends of nature of work and products, and that more orders physically would be hard to complete. And while you need to limit number orders per day, I could suggest that maybe you leave option to move order for next or some future day. Like these delivery date modules http://addons.prestashop.com/en/front-office-features-prestashop-modules/1652-delivery-days.html http://codecanyon.net/item/delivery-days-for-prestashop/8371810. To get back to your question, one idea is maybe to have a module that would work with cronjob, so it checks maybe every 10 min for number of orders on current day. And then if number is over 15 to turn shop in catalog mode with some notice that customers can not place for today. Or in some other way to leave that for checkout page, so customers can save cart and come tomorrow. Thank you for your answer but i found it. I have created override for cart controller, and there i'm checking how many orders i have for today and if more than 15 i'm putting string to errors array, which will not give to next customers to add product to their cart and they will see information text working solution:https://www.prestashop.com/forums/topic/400069-module-maximum-quantity-of-product-for-prestashop-17-16-15/ Link to comment Share on other sites More sharing options...
razaro Posted April 1, 2015 Share Posted April 1, 2015 That is great, more elegant and very nice solution. Sorry for previous post, that was first come to my mind :-) Link to comment Share on other sites More sharing options...
kineas Posted September 21, 2017 Share Posted September 21, 2017 Thank you for your answer but i found it. I have created override for cart controller, and there i'm checking how many orders i have for today and if more than 15 i'm putting string to errors array, which will not give to next customers to add product to their cart and they will see information text Hi tilekus ! were you satisfied with your option on the long range? Would you mind sharing the procedure? Very interested in the same exact thing Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now