Hi!
Thank you for your module. It's really useful.
But Is there any ability to assignment Min/max limitation only for specific role?
Because it is not necessary to limit order for all customers.
thanks!

Comments

pun_pun’s picture

And it will be great to set different min/max limits for different roles. :)

summit’s picture

Hi,
Yes please minimum order quantity per role!
greetings, Martijn

mrsinguyen’s picture

Added permissions:

- access maximum
- access minimum
- access quantity

Now can set permission per role.

mrsinguyen’s picture

Issue summary: View changes
Status: Active » Reviewed & tested by the community

Committed at 1e14427

summit’s picture

Hi,
Thanks for adding these functionalities!
greetings, Martijn

summit’s picture

Hi,
For anybody searching for the role based functionality. It is within the User Permissions:

Commerce Minimum & Maximum Order Amount
Access maximum
  Access maximum order amount when checkout.
Access minimum
  Access minimum order amount when checkout.
Access quantity
  Access order quantity when checkout.

Thanks for building this!
Greetings,
Martijn

mrsinguyen’s picture

Status: Reviewed & tested by the community » Fixed
pun_pun’s picture

Thank you! :)

pun_pun’s picture

Hi!

Strange, but permissions do not work for administrator role. I always got a warning message "This store requires minimum order of ..." and cannot proceed to checkout.

pun_pun’s picture

Status: Fixed » Needs review

Hi!
Strange, but permissions do not work for administrator role. I always got a warning message "This store requires minimum order of ..." and cannot proceed to checkout.

mrsinguyen’s picture

Let's check

mrsinguyen’s picture

I think it's don't work with user id is 1. Let's fix

summit’s picture

Hi,
I have the 15 december dev version, but I do not see the roles to select from within admin/commerce/config/moa ?
Does it work? How do I get a specific order quantity set for a certain role?
Thanks for your reply in advance.

Greetings, Martijn

summit’s picture

Hi,

Looking at the code, now it is possible to set the roles to which the minimum and maximum order quantity should comply,
Not to be able to set the minimum and maximum order quantity differently per role...Would this be possible please?

greetings, Martijn

mrsinguyen’s picture

Hi Martijn,

We can set via admin/people/permissions

Thanks

mrsinguyen’s picture

Status: Needs review » Reviewed & tested by the community
summit’s picture

Hi,

yes you can set this on or off per role, But you can't set different minimum and maximum per role.
See a wholeseller can buy minimum 100 - maximum 1000 but a dropshipper can buy minimum 10 - maximum 100.
Thanks a lot in advance again for your reply and sorry for the confusion on my behalve. Setting this to active if it is ok by you.

greetings, Martijn

summit’s picture

Status: Reviewed & tested by the community » Active
mrsinguyen’s picture

Ok ok, I know, can do it with config.

candelas’s picture

Any improvements on this? Thanks a lot for the module