Jump to content

Get group in ParentOrderController


Bartjuh1994

Recommended Posts

Can someone help me to get the group ID / group Name in the ParentOrderController? I want to configure the order opc for a certain customer group like this:

if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 0 && groupName != 'a' && strpos($_SERVER['PHP_SELF'], 'order.php') === false)
Tools::redirect('order.php');
if (Configuration::get('PS_ORDER_PROCESS_TYPE') == 1 && groupName == 'a' && strpos($_SERVER['PHP_SELF'], 'order-opc.php') === false)

See 'groupName != 'a' and groupname == 'a' in the code above.

 
Thanks in advance.
Link to comment
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
×
×
  • Create New...