0
 $product = Mage::getModel('catalog/product')->load($item->getProductId());
 $product->setCustomerGroupId($customer->getGroupId());
 $product->save();

 $options = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());
 $info    = $options['info_buyRequest'];
 $request = new Varien_Object();

 if (!$request->hasQty()) 
 {
      $request->setQty($item->getQty());
 }

 $request->setData($info);
 $cart->addProduct($product, $request); $cart->save();

If you have any idea please share here.

Thank You.

  • Try: $product->setCustomerGroupId($customer->getCustomerGroupId()); – Chirag Rajput Apr 25 '18 at 7:36
  • Not working still. @ChiragRajput thanks for the reply. – Ashish Kacha Apr 25 '18 at 8:29
  • are you iterate quote in loop? write your full code of observer – Chirag Rajput Apr 25 '18 at 8:31
  • I get customer group price on my observer and one of my controller file but when we addtocart that product at that time not displayed that price. – Ashish Kacha Apr 25 '18 at 8:41
  • @ChiragRajput if you have any idea then please share here. – Ashish Kacha Apr 26 '18 at 12:12

Your Answer

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

Browse other questions tagged or ask your own question.