Page 4 of 30 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 298
  1. #31
    Join Date
    Jan 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi,

    I am having some difficulty using this mod as well.

    I have installed the update_currency.php in the root for now, then set up the path

    $location = '/home/[my-username]/public_html/';

    Then tried to execute like this

    www.vitalwares.ca/currency_update.php

    (I have not even set up a cron job yet)

    There were no errors on screen so I assumed that the file has run currectly but I donot see any change in the price of an item in a different currency i have tested this over 2 days and there have definately been changes in the currency vlaues , and whn I maually update currency using admin the price of the items changes even if i do it as frequesntly as every 5 mins.

    This leads me to assume that there is something wrong ? Please help..

    p.s. My default currency is Canadian dollars could this be an issue ?


  2. #32
    Join Date
    Jul 2007
    Posts
    156
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi vitalwares,

    I had a bit of trouble getting it set up but it's sorted now, I think the problem you are having is that the file currency_update.php is in your root directory, is this the same place that you have zen cart installed, if so I think your path should be:

    $location = '/';

    I'm not 100% sure if that is correct but give it a try and see what happens, you can tell if it works in your currencies page in admin the updated date will change to today (unless you've already updated it manually today)

  3. #33
    Join Date
    Jan 2008
    Posts
    82
    Plugin Contributions
    0

    bug Re: Currency Update (Automatic)

    hi,

    Now I am sure that there is something wrong.

    Masterblaster/kuroi Please take a look at this modified file I have added some diagnostic code and run this file several times, It does return the currency rates but does not update them (it returns the same data 1 hr or 10 hrs later)

    Please let me know if I have made a mistake or its the script that has an issue.

    Attached Files Attached Files

  4. #34
    Join Date
    Jan 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Phil020782 View Post
    Hi vitalwares,

    I had a bit of trouble getting it set up but it's sorted now, I think the problem you are having is that the file currency_update.php is in your root directory, is this the same place that you have zen cart installed, if so I think your path should be:

    $location = '/';

    I'm not 100% sure if that is correct but give it a try and see what happens, you can tell if it works in your currencies page in admin the updated date will change to today (unless you've already updated it manually today)
    Hi Phil,

    Thanks for your help but if path was the issue it would have given an error response like:



    Warning: require_once(/home/vita127/public_html/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/[username]/public_html/currency_update.php on line 21

    Fatal error: require_once() [function.require]: Failed opening required '/home/[username]/public_html/includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vita1275/public_html/currency_update.php on line 21

  5. #35
    Join Date
    Jul 2007
    Posts
    156
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by vitalwares View Post
    Hi Phil,

    Thanks for your help but if path was the issue it would have given an error response like:



    Warning: require_once(/home/vita127/public_html/includes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/[username]/public_html/currency_update.php on line 21

    Fatal error: require_once() [function.require]: Failed opening required '/home/[username]/public_html/includes/configure.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vita1275/public_html/currency_update.php on line 21
    OK, well like I said I don't really know much about it, I had problems with the path and never got an error message

  6. #36
    Join Date
    Aug 2006
    Location
    HCMC
    Posts
    268
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hello all,

    I use this modules a long time ago. But the trouble is it take my Host Cpu Resource too much. How to fix this trouble ?

    Thanks you for let me know

  7. #37
    Join Date
    Jan 2008
    Posts
    82
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by vitalwares View Post
    hi,

    Now I am sure that there is something wrong.

    Masterblaster/kuroi Please take a look at this modified file I have added some diagnostic code and run this file several times, It does return the currency rates but does not update them (it returns the same data 1 hr or 10 hrs later)

    Please let me know if I have made a mistake or its the script that has an issue.


    Hi somebody please help with this ? Kuroi ? Masterblaster ?

    Its just not refreshing the numbers...

  8. #38
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Currency Update (Automatic)

    I will be posting an update to this shortly

  9. #39
    Join Date
    Aug 2007
    Posts
    43
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by phreakymonkey View Post
    I spent a bunch of time searching tutorials and other various websites, trying to figure out how to replace the php file() function with cURL. Then I found the admin/includes/functions/localization.php file, which seems to be what this is based on. I just cut and pasted that code into the currency_update.php file, and it seems to have just updated my currencies okay on my server with allow_url_fopen disabled. Here it is if anyone wants to poke at it. I'm certainly not going to put it up on the Downloads page until someone who is more knowledgeable about these things checks and makes sure nothing is going to explode.

    Currency Update (cURLed)
    Phreakymonkey - you are my hero!!! I needed the CURL version as I was getting the following error: "URL file-access is disabled in the server configuration", pointing to the lines with the links. Anyone with the same problem - try phreakymonkey's version.

    I'm not a good enough coder to vouch for the "safety" of your script, but it sure does work. Maybe add it to the downloads?

  10. #40
    Join Date
    Jul 2007
    Location
    Jakarta
    Posts
    358
    Plugin Contributions
    0

    help question Re: Currency Update (Automatic) on version 1.3.8a

    Does anyone have experience with the Automatic Currency Updates ver. 2.0?

    I want to install the mod but I'm weary.

    What can expect?

 

 
Page 4 of 30 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. Automatic Currency Updates - curl version problem
    By mtimber in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Dec 2008, 07:53 PM
  2. Automatic Currency Selection for a domain
    By [email protected] in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 5 Jun 2007, 09:38 AM
  3. Automatic Currency Updates
    By dustyservers in forum Customization from the Admin
    Replies: 6
    Last Post: 28 Jun 2006, 12:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR