Tuesday, 13 May 2025

How to hide products by country in prestashop when customer uses VPN

 

Hello, I'm interested in your Hide products by country module, but can you confirm a few things? - does it really work correctly on prestashop 8.1.6? - I would like to display certain products for certain countries without users being connected to their account. I have activated geolocation, but is this really reliable for determining where the customer is connected from and displaying the right products? - if the customer uses a VPN, does geolocation use the VPN's ip or not?



Hello,

I confirm that this module is ready to work in all currently available 8.x releases of prestashop including 8.1.6 and also latest 8.2.1 :)
 

I would like to display certain products for certain countries without users being connected to their account. I have activated geolocation, but is this really reliable for determining where the customer is connected from and displaying the right products? - if the customer uses a VPN, does geolocation use the VPN's ip or not?

 
Module identifies origin of customer(s) based on two things simultaneously:
  1. geolocation features (that uses visitor IP address)
  2. customer / guest address (if customer is logged or guest goes through guest checkout)
 
According to your question about VPN,
module will use IP address of VPN service (in fact - this is a purpose of VPN services - to hide the real location/ip of the client).
unfortunately, there is no method to identify real origin when someone is behind VPN.
 
Because of this module will also check delivery/invoice address to avoid situation when somoene that uses VPN service will have access to some products, that should be hidden for real customer's origin.
 
best regards
milosz
 

  

No comments:

Post a Comment