Page 9 of 30 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 298
  1. #81
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by naturesartandgifts View Post
    Any chance someone will come up with an updated version using CURL to access European Central Bank? My server has allow_url_fopen disabled for security purposes. Thank you all.
    The built-in currency update button works with CURL, and the ECB option is now part of the v1.4.0 core with CURL support. Just one more good thing about the next version, due out soon :)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #82
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by DrByte View Post
    The built-in currency update button works with CURL, and the ECB option is now part of the v1.4.0 core with CURL support. Just one more good thing about the next version, due out soon :)
    It is worth noting that unlike the Oanda and XE, the ECB based only publishes reference rates for a select set of currencies. If a user has a currency outside that set, the code sets the rate to 0 which can cause users some grief.

    It is necessary to escape updating any currency that returns a null value and perhaps sending the site admin an email to inform of this issue.

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

    Default Re: Currency Update (Automatic)

    Agreed. And I certainly wouldn't recommend use of this mod for currencies not reported by the ECB. There's a link in the readme file bundled with the mod so that people can check what the currently reported currencies are.

    That said, companies with access to the relevant foreign exchange information know that it is valuable and are generally trying to offer it at a price.

    The ECB list was way ahead of the others that I could find that could be legitimately used in this way for this purpose. But if anybody knows of better, or even different, please do tell. Zen Cart's code is designed to support multiple provides of this information, so more sources could be added to fill in the gaps.
    Kuroi Web Design and Development | Twitter

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

  4. #84
    Join Date
    Dec 2006
    Posts
    163
    Plugin Contributions
    1

    Default Re: Currency Update (Automatic)

    Kuroi

    Thanks for the work done. I only posted this because I read DrBytes' post that the mod was being included in the upcoming release.

    You are correct that the ECB seems to actually encourage web developers to use them legally and I can't think of any other legit source.

    Perhaps you can edit the mod to escape null rates. Something like below.

    Code:
    if ($rate != 0)
    {
      $updateSql = "UPDATE " . TABLE_CURRENCIES . "
                SET value = '" . $rate . "',
                last_updated = now()
                WHERE currencies_id = '" . $currency['currencies_id']. "'";
      mysql_db_query(DB_DATABASE, $updateSql, $link);
    }
    Simply skipping such rates might be better than setting them to zero.

  5. #85
    Join Date
    Jan 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    I have written a curled version of the 3.1 automatic currency update script.

    automatic_currency_updates_3-1-curled.zip

  6. #86
    Join Date
    Aug 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    What are the improvements of this new curled version v3.1 over the previous v2.0.1

    Is it worth me replacing my current one?

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

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by whitt View Post
    What are the improvements of this new curled version v3.1 over the previous v2.0.1

    Is it worth me replacing my current one?
    It does away with screen scraping, is more future proof, is the apporach now built into Zen Cart 2.0 and is legal. But it has less currencies.
    Kuroi Web Design and Development | Twitter

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

  8. #88
    Join Date
    Aug 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Thanks. I found some info in the readme file also.

    I copy pasted the script into my old one then changed location line 17 to my server root etc. ( i used the location from old script and place between the ' ' )

    It seems to work Ok.

    Thank you

  9. #89
    Join Date
    Jan 2009
    Posts
    71
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Where can I adjust the spread?

    (The difference between the actual rate and the one that is posted on the website?)

    Thanks!

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

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by GoNinja View Post
    Where can I adjust the spread?
    Admin > Configuration > My Store > Currency Conversion Ratio
    Kuroi Web Design and Development | Twitter

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

 

 
Page 9 of 30 FirstFirst ... 789101119 ... 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