[Skip to main content](#vessel-content)

#   Can I restrict purchase based on zone?

##

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile") Topic Author
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

13 years 1 month ago [\#125114](#125114) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125114 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")* was created by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")*

-- HikaShop version -- : HikaShop Business 2.2.1
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3

We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.

I was wondering if there was a way to use the zone system to limit the availability of the product.

FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.

Thank you for the help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#125121](#125121) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125121 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Hi,

The "zone" restriction for payment methods uses the HikaShop zones, so it is countries and states.
If you want to have something more precise, you will have to implement it using an external plugin (in order to create new restriction filters).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile") Topic Author
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

13 years 1 month ago [\#125125](#125125) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125125 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Thanks for the reply. Couldn't I create custom zones under "Nevada" that include a range of Zip codes?

Initially, when I was informed of this requirement (and since at the moment they are handling it manually) I told them that we should just alert them on the product page of the restriction, give them a link to a website where they can check their zip code and their distance from the location and then tell them that if they went ahead with the purchase they would just get their money back. In addition, many of these people already know they would not be allowed if the event is near them.

So there is a way to handle it already, but it would be nice if I could implement this logic without having to build a plugin (Also since I have no idea what the plugin would have to do).

Basically, if any extra work is necessary, we will have to take care of it after the site launches, but if there is an easier way to do it I can try to implement it before launch. Doesn't sound feasible so far.

Is there any other way, outside of the zone system to deny a purchase by location?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#125126](#125126) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125126 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Hi,

You can use the zone (state) plus a zip code restriction.
There are options "minimum/maximum post code".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile") Topic Author
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

13 years 1 month ago [\#125127](#125127) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125127 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Yes, that would be the way I envisioned it. Is there anyplace where it explains how that would work? A tutorial, checklist or anything like that?

Basically the idea is to make it impossible for a registered user to checkout if their address is in the blackout zone, but aside being able to create the zip code range for areas like Las Vegas, Reno, etc. I have no idea how to then restrict the checkout for members from the restricted areas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago [\#125172](#125172) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125172 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Hi,

You just have to create shipping methods for allowed zip codes. If the customer address is in the blackout zone, no shipping methods will be displayed and he will not be able to checkout.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")**
- [![conticreative's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/12955-conticreative "View conticreative's Profile") Topic Author
- [ Offline](/forum/user/12955-conticreative)

Less More

- Posts: 214
- Thank you received: 7
-
-

13 years 1 month ago [\#125300](#125300) by [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")  Replied by *[conticreative](/forum/user/12955-conticreative "View conticreative's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125300 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Thanks for the reply. Unfortunately, another thing I am trying to do is get rid of the shipping step, since there is nothing to ship. Customers are buying access to a cable TV event. So one of the questions I need answered would be how to eliminate the shipping step without blocking checkout. I already removed shipping from the checkout steps, but I haven't had a chance to test it yet.

Wpould there be a way to associate a different price for those zones, where the price would be $0? In that case, even if they purchased the event, at $0 it would be a clear flag that they were not allowed to receive permission.

With the system we are building, there are human actions necessary through the process. After registration customers have to be put in their "occupancy" group manually (We need to make sure they are not cheating) and then they'll be able to purchase an event. After purchase, their names are entered manually and assigned to their cable or satellite company, and the eligibility is checked at that point as far as the blackout zone.
Automating this would basically save us from having to issue refunds.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 month ago -  13 years 1 month ago [\#125334](#125334) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Can I restrict purchase based on zone?](/forum/2-general-talk-about-hikashop/862321-can-i-restrict-purchase-based-on-zone#125334 "-- HikaShop version -- : HikaShop Business 2.2.1 -- Joomla version -- : 3.1.5 -- PHP version -- : 5.3  We sell Pay Per View events to public establishments and one of the rules we have to follow is not to sell to anyone inside a 50 miles radius around the actual location of the event. For instance, since most events are held in las Vegas, no business in Las Vegas and for a 50 miles radius, can purchase an event held there. Establishments in Atlantic City will be able to buy it, but conversely if the event is in Atlantic City, establishments there are denied the sale while those in Las Vegas can buy it.  I was wondering if there was a way to use the zone system to limit the availability of the product.  FYI, we also charge a different amount per product based on the business occupancy. So customers already belong to a group based on how many people they can sit.  Thank you for the help.")*

Hi,

You have to let the shipping step in the checkout, by this way the system will checked if the customer is in the blackout zone or not.
In Configuration &gt; Checkout &gt; Payment &amp; Shipping, enable the option to automatically select the shipping and payment methods. Then with some css you can hide the shipping part.

The customer will not see anything related on the shipping, and the check will be made. If he's in the blackout zone, an error message will be displayed, you can change this message with a translation override to say something like "your are in the blackout zone, ...".
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

EDIT: Since HikaShop 2.2.0, you can restrict the payment methods to a zone, so you just have to create many payment methods the same way than the shipping methods. And remove the shipping step in the checkout.

Last edit: 13 years 1 month ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

The following user(s) said Thank You: [conticreative](/forum/user/12955-conticreative "View conticreative's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MjMyMS1jYW4taS1yZXN0cmljdC1wdXJjaGFzZS1iYXNlZC1vbi16b25lP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.069 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
