Thread: geo4zen add-on

Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    54
    Plugin Contributions
    2

    Default Re: geo4zen add-on

    Ok, more info. I am not a PHP programmer by far. I just cut and paste. So I created a small PHP file with the following code on the root of the IIS site:

    Code:
    <?php
    header('HTTP/1.1 301 Moved Permanently');
    header('Location: http://www.google.com/');
    ?>
    And it worked. Which means that the whole IF statement is not working or the script is not parsing the IP CSV site...

  2. #2
    Join Date
    Jun 2008
    Posts
    54
    Plugin Contributions
    2

    Default Re: geo4zen add-on

    Ok, with a little poking around I have it figured out.

    It appears that for IIS, instead of using:

    getenv("REMOTE_ADDR")

    you have to use:

    $_SERVER['REMOTE_ADDR']

    I tried it and it worked perfectly with your script. You may wanna publish the disclaimer to your posted module on Zen-cart.com about IIS servers.

    For anyone who found this post by searching - if you are running IIS, in the original Kiddo's script, line 6:

    instead of:

    $addr = getenv("REMOTE_ADDR");

    put:

    $addr = $_SERVER['REMOTE_ADDR'];


    Thank you, Kiddo for this wonderful solution to many of ours' problem.

  3. #3
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: geo4zen add-on

    HaHa! I get back and go to look at how to help you and You have done it yourself! And provided your notes and documentation to boot!

    Bravo!

    You are clever to work it out so methodicaly and by test and observe. Most excellent!

    Is there anything at all I can do?

    Will post an updated version with your notes and IIS instructions.

    Or perhaps you would like to package and upload the module? You have added to it's value so you may do that and add your name to the notes and code.

  4. #4
    Join Date
    Jun 2008
    Posts
    54
    Plugin Contributions
    2

    Default Re: geo4zen add-on

    Thank you, Kiddo! I updated the package and uploaded it to http://www.zen-cart.com/index.php?ma...oducts_id=1076

  5. #5
    Join Date
    Aug 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: geo4zen add-on



    thnx for this module. I used for sometime. It works great. The only thing is I feel is the IP database. not very accurate.

    I think if you could incorporate the IP database from http://www.maxmind.com/app/geoip_country. That could be awesome.

    PS: this IP database is more accurate.

  6. #6
    Join Date
    Jul 2006
    Location
    SF Bay Area
    Posts
    867
    Plugin Contributions
    1

    Default Re: geo4zen add-on

    Thank you for the pointer. I will look into that DB.

    There may also be a newer more up-to-date version of the DB in use. The copy packaged with the mod is probably getting out of date by now. I think there is a pointer in the docs to where to check for an updated DB.

    BTW, as soon as I can get my grubby little hands on a copy of ZC v2, I will make sure there is a working version for that release as well.

  7. #7
    Join Date
    Aug 2009
    Posts
    2
    Plugin Contributions
    0

    Default Re: geo4zen add-on

    Hello,
    I have been using the module for some time. I did a trick to route customers from specific regions, let’s say, Thailand, to an error page or to a different site as per the instructions. It does work well. But if you open the website again in the next tab by typing the address without closing the previous tab in the ie/chrome/opera/fx, then the trick fails; you will not see an error page or be routed to a dif site as expected. I think it is cache or something that makes the module in vain.

    I would really appreciate if someone could bring out a solution.

    Thanks
    Mark

 

 

Similar Threads

  1. Looking for an Add-On that allows admin to add fields to a product
    By tcarden in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Jun 2014, 08:38 PM
  2. v139h Geo4Zen & Multisite
    By gazag in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Feb 2012, 04:24 AM
  3. how can i add add to cart with image on front page
    By chrisnasah in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Oct 2010, 04:39 PM
  4. Remove add to cart & add box from product listing!!!
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 May 2008, 12:27 PM
  5. Is it possible to add an images section to store without price/add to cart?
    By jdjohnson99 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Sep 2007, 04:37 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