I need to create a PHP script that will allow me to convert prices using the same rates as are stored in my Magento shop, but from outside Magento.
I will be adding products dynamically and need to ensure the prices are consistent wherever they are shown on my site.
I know this would probably need mage.php, then somehow accessing the currency classes… but i don’t know how to do that. Can anybody help me work out how I could access this function in Currency.php?
* Convert price to currency format
* @param double $price
* @param string $toCurrency
* @return double
public function convert($price, $toCurrency=null)
Thanks in advance for any suggestions!