Results 1 to 10 of 298

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Err just a thought are the file permissions at all relevant in this issue.
    They may be.....where exactly is configure.php and what file permissions do you have on it and the folder it's in.

    and if zen is "on its own it is not in home or www or public ..." exactly where is it?

  2. #2
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi KES99

    Yes I have renamed the catalogue to shop. The configure folder is where it supposed to be. (the original file structure)

    /shop/includes/configure.php

    write permissions are as suggested by security procedures for zen item number 3 set configure.php to read only 444

    Do you suggest I create a folder called www and drop the shop into it?

    Cheers

    RR

  3. #3
    Join Date
    Aug 2004
    Location
    Saint Petersburg, Russia
    Posts
    1,786
    Plugin Contributions
    13

    Default Re: Currency Update (Automatic)

    chdir(dirname(__FILE__));
    DEFINE('PATH_TO_STORE_ROOT', dirname(__FILE__) . '/');

  4. #4
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Hi All,

    I have now tried changing the original file DEFINE('PATH_TO_STORE_ROOT','shop/'); to what Andrew Berezin suggested as per below,
    Quote Originally Posted by a_berezin View Post
    chdir(dirname(__FILE__));
    DEFINE('PATH_TO_STORE_ROOT', dirname(__FILE__) . '/');
    The result now is upon calling the url http://www.adulttoys4u.com.au/shop/currency_update.php that I get a complete blank page and no errors...at all....So is this what is supposed to happen? I am not sure as there was no confirmation of anything, I run it and then then I run it again from the CP and I got different exchange rates but only by a few cents I am thinking thats because it updated from OANDA in the CP and from here http://www.ecb.europa.eu when called by the url..
    Sooo Does it mean that If I go ahead and set the next stage IE the cron job now the currencies will be auto updated...

    Cheers
    Nearly there, Thanks KES99 I did get your PM hold that thought I think we are happening...

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

    Default Re: Currency Update (Automatic)

    The file outputs nothing. This is deliberate, since it's designed to be run quietly and automatically as a script, not as a web page. So there would be nowhere in normal operation for any output to go.

    The way I test it personally, is to tweak the currency rates in the database and then run it in a browser as you have and look in the database to see if they're changed. Then change them again and setup a CRON job for a few seconds into the future and look to see if they've changed. If those work then I set the CRON job to daily shortly after the official update time and check the results the next day.
    Kuroi Web Design and Development | Twitter

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

  6. #6
    Join Date
    Jun 2006
    Posts
    440
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Yeahiii that's fixed it and it all works just fine, (thanks for the code Andrew Berezin, I tested it like you suggested Kuroi and thanks to Kes 99 for your efforts.

    PS Kuroi what is the GMT of the official currency update time.

    Thanks

    Regards
    RR

  7. #7
    Join Date
    Jul 2010
    Location
    Kent UK
    Posts
    50
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by kuroi View Post
    The file outputs nothing.
    The way I test it personally, is to tweak the currency rates in the database and then run it in a browser as you have and look in the database to see if they're changed.
    This is what I have been doing and have noticed that - only Euro is being changed. I have INR (indian Rupee) and USD which stay the same - These are not being updated - I havent changed the default USD configuration in admin/currency. My default currency is GBP.

    version. 1.3.9f

  8. #8
    Join Date
    May 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: Currency Update (Automatic)

    Quote Originally Posted by Renz View Post
    Hi KES99

    Yes I have renamed the catalogue to shop. The configure folder is where it supposed to be. (the original file structure)

    /shop/includes/configure.php

    write permissions are as suggested by security procedures for zen item number 3 set configure.php to read only 444

    Do you suggest I create a folder called www and drop the shop into it?

    Cheers

    RR
    Personally I wouldn't have renamed anything. Too many things can and often do go wrong when you change the location of an installed item such as zen. Best is to install it where you want it and leave it alone.

    I also wouldn't make a www folder. If you're on a linux/apache system www is often part of your path from the servers root. Actually it is often a link to public_html (the real root of your domain). You might really confuse things in having 2 www's.

    Permission of 444 is correct.

    Please check your message box for a PM from me.

    Try the other solution suggested here by a_berezin. Other than that I'm stumped unless you reply in the afirmitive to my PM.

 

 

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

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