Support » Plugin: Geolocation IP Detection » Blocking access to shopping basket

  • tomdhu


    We are receiving orders from overseas and we wish to stop receiving these.
    Apparently the Woocommerce country restrictions are being circumvented because we have a PayPal button on the basket page. We really want to keep that button there because it make checkout simple.

    Hence we want to stop customers from outside the United Kingdom from getting access to the Basket page.

    Because we are not php experts, may we ask for assistance on how to use your plugin to stop customers from the USA, Canada, Netherlands and Germany from seeing the Basket page.

    Thank you

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Pick


    I don’t know WooCommerce so I can’t help you there …
    Can you use shortcodes where your PayPal button is? Then you could use this and put it around the paypal button …

    Not sure if this kind of solution is really helpful, though, because what you probably want is “don’t allow shipping to other countries” (if it’s real goods). Keep in mind that geolocation detection is never 100% accurate so there should be a way for the customer to order even if the system detects him to be outside of UK or “no country known”, even it’s only an E-Mail address.

    Thread Starter tomdhu


    Thanks; I came across that link however my very, very limited coding capabilities coupled to my advanced years meant that I couldn’t actually see how to implement it.

    In readiness for it I signed up for and downloaded the MaxMind Geo-IP Lite coutry database but got frightened off the task.

    Thread Starter tomdhu


    OK, I ventured forth and put this code into the block where it previously had just [Woocommerce]

    [geoip_detect2_show_if country=”GB”] [Woocommerce_cart] [/geoip_detect2_show_if]

    It didn’t work. It just showed the text “” Woocommerce_cart”” without any details of what one would find in the cart

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blocking access to shopping basket’ is closed to new replies.