Jump to content

Limit quantity of orders per day


tilekus
 Share

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
Share on other sites

  • 2 years later...

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 !

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More