public function getOptionList() { $options = false; if (Mage::getStoreConfig('SCP_options/cart/show_custom_options')) { $options = parent::getOptionList(); } if (Mage::getStoreConfig('SCP_options/cart/show_config_product_options')) { if ($this->getConfigurableProductParentId()) { $attributes = $this->getConfigurableProductParent()->getTypeInstance()->getUsedProductAttributes(); foreach ($attributes as $attribute) { $options[] = array('label' => $attribute->getFrontendLabel(), 'value' => $this->getProduct()->getAttributeText($attribute->getAttributeCode()), 'option_id' => $attribute->getId()); } } } return $options; }
public function getOptionList() { $options = parent::getOptionList(); $item = $this->getItem(); $giftwrapItem = Mage::getModel('giftwrap/selectionitem')->getCollection()->addFieldToFilter('item_id', $item->getId())->getFirstItem(); $giftbox = Mage::getModel('giftwrap/selection')->load($giftwrapItem->getSelectionId()); $giftwrap = Mage::getModel('giftwrap/giftwrap')->load($giftbox->getStyleId()); $giftcard = Mage::getModel('giftwrap/card')->load($giftbox->getGiftcardId()); if ($giftwrapItem->getId()) { $options[] = array('label' => Mage::helper('giftwrap')->__('Gift Wrap'), 'value' => $this->htmlEscape($giftwrap->getTitle())); if ($giftcard->getId()) { $options[] = array('label' => Mage::helper('giftwrap')->__('Gift Card'), 'value' => $this->htmlEscape($giftcard->getName())); } if ($giftbox->getMessage()) { $options[] = array('label' => Mage::helper('giftwrap')->__('Gift Message'), 'value' => $this->htmlEscape($giftbox->getMessage())); } } return $options; }
public function getOptionList() { return array_merge($this->_getSarpOptions(), parent::getOptionList()); }
/** * Overloaded method for getting list of bundle options * Caches result in quote item, because it can be used in cart 'recent view' and on same page in cart checkout * * @return array */ public function getOptionList() { $item = $this->getItem(); $optionList = $item->getBlockOptionList(); if ($optionList === null) { $optionList = array_merge($this->_getBundleOptions(), parent::getOptionList()); $item->setBlockOptionList($optionList); } return $optionList; }