getCustomOption('card_amount') && $product->getPrice() == 0) { $amount = Mage::helper('directory')->currencyConvert($product->getCustomOption('card_amount')->getValue(), Mage::app()->getStore()->getCurrentCurrencyCode(), Mage::app()->getStore()->getBaseCurrency()); //$amount = $product->getCustomOption('card_amount')->getValue(); $finalPrice += $amount; } return $finalPrice; } }