4

I want different base price for different currency, by default Magento converts the price based on currency ratio what we provide. I have such requirements that I want to enter different price for different currency for each product.

Example Product A 10 Euro, 5 Dollar, 100 Rupees
Product B 15 Euro, 9 Dollar, 500 Rupees

How to achieve this.

Please help.

Thank You

2 Answers 2

3

First load currency loaded currency rates the multiple with product price

 $Product=Mage:getModel('catalog/product')->load($productId);
        $currencyModel = Mage::getModel('directory/currency');
        $currencies = $currencyModel->getConfigAllowCurrencies();
 $baseCurrencyCode = Mage::app()->getStore()->getBaseCurrencyCode();

        $defaultCurrencies = $currencyModel->getConfigBaseCurrencies();

                $rates=$currencyModel->getCurrencyRates($defaultCurrencies, $currencies);


                foreach($rates[$baseCurrencyCode] as $key=>$value  ) {
                    echo $key."-";
                    echo $price=$value*$Product->getPrice();
                    echo "<br/>";

                }
1
  • 1
    I'd add a colon after Mage in 1st line :) Commented Jun 23, 2014 at 6:49
0

Did you check the Product Base Currency extension?

It allows setting different base price for different currency on a per product basis.

1
  • 1
    Yeah, I checked it. It isn't free and my company doesn't want to pay for that extension, so was searching for a free extension which could achieve this Commented Jul 4, 2014 at 4:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.