protected function _applyOptionsPrice($product, $qty, $finalPrice) { if ($amount = $product->getCustomOption('credit_price_amount')) { $finalPrice = $amount->getValue(); } return parent::_applyOptionsPrice($product, $qty, $finalPrice); }
protected function _applyOptionsPrice($product, $qty, $finalPrice) { if ($amount = $product->getCustomOption('amount')) { $store = Mage::app()->getStore(); $finalPrice = $amount->getValue(); $finalPrice /= $store->convertPrice(1); } return parent::_applyOptionsPrice($product, $qty, $finalPrice); }
protected function _applyOptionsPrice($product, $qty, $finalPrice) { if ($option = $product->getCustomOption('giftcard_value')) { $optionValue = $option->getValue(); if (is_numeric($optionValue)) { $series = Mage::getModel('giftcard/series'); $price = $series->getProductPrice($product, $optionValue); if ($price) { $finalPrice = $price; } } } return parent::_applyOptionsPrice($product, $qty, $finalPrice); }