getCart(); $items = $cartEntity->getItems(); $allCustomOptions = array(); foreach ($items as $item) { /** @var $product Mage_Catalog_Model_Product */ $product = $item->getProduct(); if ($product->hasCustomOptions()) $allCustomOptions[$product->getId()] = $product->getOptions(); } foreach ($allCustomOptions as $options) { foreach ($options as $_option) { foreach ($_option->getValues() as $value) { $_product = Mage::getModel('catalog/product')->loadByAttribute('sku', $value->getData('sku')); $_product->setCustomerGroupId(Mage::getSingleton('customer/session')->getCustomerGroupId()); $value->setData('price', $_product->getFinalPrice()); } } } return $this; } }