cancel
Showing results for 
Search instead for 
Did you mean: 

GEO Blocking prices/Cart function instead of Page URLs?

GEO Blocking prices/Cart function instead of Page URLs?

My company is in the beginning stages of doing a full corporate rebranding that also includes their 4yr old Magento V1 store.  So we're looking at moving onto Magento V2. 

 

The company has various international distributors so when building the original site we had to take into account that we could not show any product prices or allow visitors to access the shopping cart area of the site if their IP was outside of the USA/Canada, but still allow them to see the product images and descriptions in the catalogs.  We use the open source plugin GeoIP by Peter Jaab that was posted on Github (https://github.com/magento-hackathon/Sandfox_GeoIP).  It worked by placing code around template files that called the prices and cart links.  This plugin hasn't been updated in years and does not work with V2.  I was wondering if anyone knew of something similar? If not I guess i'd have to build quite a few website+storefronts within the Magento platform and use some readily available url geoblocking extensions.

2 REPLIES

Re: GEO Blocking prices/Cart function instead of Page URLs?

Hi @smiller13,


There are several paid extensions for M2. This one is free https://github.com/ytorbyk/magento2-geo-ip2 but I didn't tried so I can't say much.

 

--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"

Re: GEO Blocking prices/Cart function instead of Page URLs?

Thank I'll check it out.  I've looked at several paid GEO blocking plugins from the marketplace but I haven't come across one that just block out specific elements in the product section of a Magento 2 store rather than url blocking/redirecting based on IP.