• Hi – we have GEO IP detection hooked to say no tax in states outside of Illinois and it works beautifully, however, I want to add some code to detect Canada and say our flat rate shipping. I am using a VPN to test and when I goto Canada I am not seeing the text I want, which is this code: [geoip_detect2_show_if country=”CA”]Flat Rate $15 Canada Shipping[/geoip_detect2_show_if]

    Here is our current code that is working – and my new code that doesn’t show:
    https://prntscr.com/qg4sc7

    This is to show that the one code is working:
    https://prntscr.com/qg4spj

    here is our data source selection:
    https://prntscr.com/qg4tbr

    Any help as to why the Canada code isn’t working would be most helpful – thank you

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • (I am not associated with the developers.)

    First thing I’d do is test it, if you can, by putting your own country code in and trying it not over the VPN. You could also put some temporary code somewhere that shows the country the browser believes you are in:
    [geoip_detect2 property=”country.name” default=”an unknown country” lang=”en”]
    or even better just tuck this somewhere discreet temporarily:
    [geoip_detect2 property=”country.isoCode” default=”**”]

    That will at least reassure you that you are ‘in’ the country you think you are.

    Other than that, I note that you are trying to show both texts if the user is in Canada; both the ‘No tax charged in’ and the ‘Flat rate … shipping’. Yet you are getting neither. So the problem might not be with the second text at all, but that the first is coming up empty and shoving the second notice out of sight?

    Just some thoughts.

    Thread Starter adminpoumie

    (@adminpoumie)

    Thanks for your help – I tried adding US instead of CA and also added your code – still got nothing: https://prnt.sc/qikw16

    also tried deleting the other non-firing part to see if it was pushing down but its not.

    Any other ideas would be great thanks again.

    Also – that code is there [geoip_detect2 property=”country.isoCode” default=”**”] how can we use that?

    Thread Starter adminpoumie

    (@adminpoumie)

    ok – so some progress – my state is blocked – so when I did vpn from another state – I got all the messages ??

    https://prnt.sc/qim8jh

    so now what? this confirms the country code works? If I set to CA then should it show in canada?

    Thanks for your help

    Thread Starter adminpoumie

    (@adminpoumie)

    I think the div ID may only be showing in US?

    https://prnt.sc/qim9sm

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with Canada Detection Code’ is closed to new replies.