Page 3 of 30 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 298
  1. #21
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    I GOT IT!. The command I use is;-

    php /home/[your username]/public_html/rss/import_feeds.php

  2. #22
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hmmm this has always been working fine, but now I've moved to a new server and the script and cron are working except they update my currency rate to 0 which makes everything in my store free if visitors are shopping in US $, eek!!! I didn't change the file at all, I can't understand why it's doing that. Any thoughts anyone?

    TIA!
    Danielle

  3. #23
    Join Date
    Apr 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Danielle View Post
    Hmmm this has always been working fine, but now I've moved to a new server and the script and cron are working except they update my currency rate to 0 which makes everything in my store free if visitors are shopping in US $, eek!!! I didn't change the file at all, I can't understand why it's doing that. Any thoughts anyone?

    TIA!
    Why don't you Google the error message that comes out? The solution is somewhere out there in the WWW.

  4. #24
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    There is no error message...everything appears to work great, but when I check the currency values in my admin, Canadian is correct and USD is changed to 0.
    Danielle

  5. #25
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Currency Update (Automatic)

    What happens when you do a manual update? How do you know that CRON and the script are working?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #26
    Join Date
    Jun 2007
    Location
    Palestine
    Posts
    55
    Plugin Contributions
    0

    red flag Re: Currency Update (Automatic)

    well, what should i do here

    i think i read all the posts here but i can't find one thing

    in the mod they said that you should change line 16

    is it this one? define('CURRENCY_SERVER_BACKUP', 'oanda');

    i doubt it

    but i thought that it would be this one

    $location = '/home/***/***/currency_update.php'; // location of zen-cart intall

    i put my physical address here

    and in the cron job i put the physical address my host supervisor gave it to me...


    but still nothing is working!!!???

    did i made the right change inside the script?

    can you advice in it?


    saher

  7. #27
    Join Date
    Jun 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    My host has allow_url_fopen disabled for security reasons, and I'm sort of loath to enable it since most of the advice I've found suggests leaving it alone unless you really know what you're doing. I know zilch about web security, so...

    Several people have suggested using cURL as an alternative, but I don't know PHP from Hebrew and haven't figured out how to do it. Perhaps I'm revealing my ignorance here, but mightn't it be a good idea to make the switch in the next version of the script in the interest of maximum compatibility? It would at least eliminate one of the issues people are having. It's just these two lines that are causing problems, right?

    Code:
    $page = file('http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=' . $code .  '&format=CSV&dest=Get+Table&sel_list=' . $base);
    
    $page = file('http://www.xe.net/ucc/convert.cgi?Amount=1&From=' . $from . '&To=' . $to);

  8. #28
    Join Date
    Jun 2007
    Posts
    20
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    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)

  9. #29
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    663
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Thank you kuroi and phreakymonkey for making those little changes to the script. I haven't given too much attention to it, since it *should* be working as a standalone script, regardless of the zen version.

    Unfortunaly I didn't think of file() fopen() disallowed by a server when writing the script... The CURL method is the best alternative, which should work ok.

    I will see if I can improve the script for now and make it available on my website by tomorrow.
    Last edited by masterblaster; 1 Jul 2007 at 09:43 PM.

  10. #30
    Join Date
    Jul 2007
    Posts
    156
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi,
    I seem to be having a little difficulty getting this mod set up.

    Please can someone advise me if these settings are correct:

    the currency_update.php file is in directory /home/admin*****
    the run command is in directory /etc/cron.hourly/hourlytasks
    my store is in directory /var/www/html

    I have the setting in the currency_update.php file set to /var/www/html
    the run command is set to usr/bin/php /home/admin*****/currency_update.php

    This should run the script every hour but when I look in admin->localization->currencies the displayed last update date was days ago.

    Please can someone tell me what I'm doing wrong?

    Thanks

 

 
Page 3 of 30 FirstFirst 1234513 ... 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