0

I want to change customer group after placing an order so I need Customer Group id which can be update in observer . How to achieve it?

0

If you have Order object then you can that customer group by

$order->getCustomerGroupId();

If want to change it the use

 $order->setCustomerGroupId('New_Your_Group_id');
 $order->_getResource()->saveAttribute($order, 'customer_group_id');
  • how I can update there this customer group id ? – supriya mishra Nov 4 '16 at 13:11
  • 1
    @Raphael at Digital Pianism, give u right answer.. you need to implemet that properly – Amit Bera Nov 4 '16 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.