Ok I am really new to magento and Zend. Here it is my problem.
I need to set up my store to use Costarican colones as the base currency. (This because the products prices need to be entered in such currency, otherwise it might cause to have huge losses).
As this currency is not a paypal supported I need to tweak it so I always pass the data in US dollars to paypal. However I am aliitle lost as to what I need to change.
By the way I need to use express checkout so the customer is always redirected to the store again. I have seen several posts about this for paypal standard but non for express and the coding changes quite a bit.
I do believe I am looking at the proper files:
file 1 app/code/core/Mage/Paypal/Model/Express.php
file 2 app/code/core/Mage/Paypal/Model/Express/Checkout.php
Per http://www.magentocommerce.com/boards/viewthread/270952/#t370794 On file #2 I changed
However it gives me an error as the total sum does not match to the items, so I coomented out :
/* $paypalCart = Mage::getModel(\’paypal/cart\’, array($this->_quote));
I dont get the errors now and got redirected to paypal, however at paypal I see no amounts. And even if the customer accepts to pay without an amount once he gets back to the store an error will be waiting.
Fatal error: Call to a member function setFieldNamePrefix() on a non-object in /home/petscr/public_html/new/app/design/frontend/base/default/template/paypal/express/review.phtml on line 28
But I believe the cuase of this error is due to the $paypalCart lines I commneted out.
I have seen some modules that helps to overcome this issue but they are only for paypal standard any input is appreciated.
something else I have been thinking is to make magento to use US dollars for all payments, but no idea how to do that. So I am really open for suggestions.