Welcome, Guest. Please login or register.
Login with username, password and session length


Need help or want to talk to other developers? Join the VirtueMart Chat! Read more...

  Advanced search

247031 Posts in 67504 Topics- by 258313 Members - Latest Member: Matej.iStraxx
Pages: [1]   Go Down
Print
Author Topic: Currency converter offline mode  (Read 3317 times)
Antoine T
Translator Team
Newbie
**
Posts: 19


WWW
« on: March 13, 2009, 13:32:37 pm »

Hi,

One may face the following message error when using VirtueMart offline :
Error: Failed to retrieve the Currency Converter XML document

Here is a workaround :

Create the file /administrator/components/com_virtuemart/classes/currency/convertNOP.php

with the following content   :
Code:
 
      <?php   
      
if(
      !
defined'_VALID_MOS' )
      &&
      !
defined'_JEXEC' ) )
      die( 
'Direct Access to '.basename(__FILE__).' is not allowed.' );

       class 
convertNOP {
        function 
convert$amountA$currA=", $currB=" ) {
         return 
$amountA;
        }
       }
      
?>


Then, choose this file in the back-office of virtuemart.

You can see the french version of this post on my blog about joomla and virtuemart.

It can also solve few performance issue.

Regards

Antoine T
http://libre-d-esprit.thinking-days.net/
Logged
Vlada_bgd
Jr. Member
**
Posts: 64


« Reply #1 on: May 10, 2009, 16:49:40 pm »

Hold on a second. Should I put some values or something?Huh
Logged
Pages: [1]   Go Up
Print
Jump to: