Assign order status by user group?


here’s my question:

is there any way to assign an order status depending on the usergroup the customer belongs?

e.g. i have 2 user groups: standard and resellers.

i have “standard” users that have their orders set to the default order status (“opened” if they pay with check, “processed” if they pay with credit card/paypal). this is the default behavior and is ok to me.

then i have “resellers” group, i need them to have their orders set to a different status than “standard” users (“standby” status).

Does anyone know how to do this? Is there any option or do i need to edit the code?


You would need to edit code. Probably use a code hook and hook into the fn_change_order_status function.

Ok thanks i'll give it a try!