Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Restrict Products based on Country

Locked

Started by ultra_mao on 27 Apr 2010, 3:11 AM · Views: 3,681

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
27 Apr 2010, 3:11 AM
#1
ultra_mao avatar

ultra_mao

New Zenner

Join Date:
Jul 2006
Posts:
6
Plugin Contributions:
0

Post #1 by ultra_mao

Hi!

I need to restrict some products on the same product category based on some countries. That is, customers in countries A, B and C are not allowed to buy the products in the category. However, the same customers are allowed to buy products in another category. Is there a way to achieve this in Zencart?

Any advise is appreciated.

Thanks!
Jenny :smile:

27 Apr 2010, 3:57 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

How many countries and categories are involved with this?

There are a number of ways to address the issue but knowing more details helps in determining a simple method or a more complicated method to manage this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 4:00 AM
#3
ultra_mao avatar

ultra_mao

New Zenner

Join Date:
Jul 2006
Posts:
6
Plugin Contributions:
0

Post #3 by ultra_mao

Hi Ajeh,

Thanks for replying.

I'm looking to restrict an entire category to 3 countries. I'm using zencart 1.3.8a.

Thanks.

27 Apr 2010, 4:08 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #4 by ajeh

Do customers have to log in before they can add to the shopping cart or can they add to the cart as a guest?

Basically I am trying to determine if the test for what is in the cart and the country can be done "before" the product is added to the cart or has to be checked after the customer logs in ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 4:29 AM
#5
ultra_mao avatar

ultra_mao

New Zenner

Join Date:
Jul 2006
Posts:
6
Plugin Contributions:
0

Post #5 by ultra_mao

actually customers can add to cart even though they haven't log in yet, they can add to cart as guests. so that check has to be done when the customer logs in or creates an account.

27 Apr 2010, 4:56 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #6 by ajeh

How do you want this handled?

Do you just want a warning on the shopping cart or an attempt to checkout?

Do you want the Products, once the customer logs in, to not be allowed to be added to the cart if you are one of the 3 countries? Or is the 3 country restriction meaning only people from these countries can buy ... so are the 3 countries NOT allowed to buy these products? or are the 3 countries the ONLY countries that can buy these products?

And the big question is ...

Are the restrictions based on:

Customer Address?

Billing Address?

Shipping Address?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Apr 2010, 6:15 AM
#7
ultra_mao avatar

ultra_mao

New Zenner

Join Date:
Jul 2006
Posts:
6
Plugin Contributions:
0

Post #7 by ultra_mao

people from these 3 countries are not allowed to buy the products in the category. If they login and they are from these 3 countries, the "add to cart" functionality for the products in the category should be disabled.

As for the address, as long as any of the address has these 3 countries, they are not allowed to buy the products in the category. But they are allowed to buy products from another category.

Thanks!

27 Apr 2010, 3:13 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #8 by ajeh

So if the UK was one of the 3 countries not allowed to buy any Product from master_categories_id 33 where categories_id 33 is the Category with these Restricted Products ... and Grandma lived in the UK ...

Grandma CANNOT buy this for herself to send to her UK address ...

Grandma CAN buy this for Tiny Tim and send it to his US address ... (the US being an "allowed" country) ...

Is this correct?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 May 2010, 2:12 PM
#9
ningyotan avatar

ningyotan

New Zenner

Join Date:
Nov 2009
Posts:
56
Plugin Contributions:
0

Post #9 by ningyotan

I have one type of product I'd like to restrict to Australian buyers only.

Aerosols, is there any easy way to do this?

6 May 2010, 3:09 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #10 by ajeh

Is it restrict to Australian buyers or Australian shipping that needs the restriction?

What happens in a mixed cart?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

6 May 2010, 3:17 PM
#11
ningyotan avatar

ningyotan

New Zenner

Join Date:
Nov 2009
Posts:
56
Plugin Contributions:
0

Post #11 by ningyotan

Ajeh:

Is it restrict to Australian buyers or Australian shipping that needs the restriction?

What happens in a mixed cart?

I'm in Australia and I'm not permitted to ship aerosols out of the country, I'll like to be able to stop overseas buyers from adding them to their carts, I'd like them to be able to add everything else though.

6 May 2010, 5:05 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #12 by ajeh

There are a few ways to do this ...

Show on Product _info only shipping to Australia ...

Show in Listings only shipping to Australia ...

Check on the shopping_cart and tell them only shipping to Australia ...

Check on checkout_shipping that shipping address is Australia or tell them to either change address or remove products from the cart ...

This does require some customization to make this happen but it can be done ...

Is there something in the products table that identifies these products that can only ship to Australia ... such as the master_categories_id or some sort of identifier? :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Jun 2010, 10:17 PM
#13
mark1984 avatar

mark1984

New Zenner

Join Date:
Jun 2010
Posts:
10
Plugin Contributions:
0

Post #13 by mark1984

I too would like to know how to do this, but i'm not good at coding myself, however i can follow instructions easily...

I would like to do mine based on counties, as we will offer a service such as personal training, but this for the time being will only be available to customers in the South East of England and London - obviously other customers will still be able to buy products sold.

Is this relatively easy to setup? It can either be done by category or product, althogh there will be multiple PT sessions, such as block of 3/5/10 sessions which each having more discount...

Thank you in advance for any help

Mark

17 Jun 2010, 7:32 PM
#14
mr_jolly avatar

mr_jolly

New Zenner

Join Date:
Jul 2008
Location:
England UK
Posts:
8
Plugin Contributions:
0

Post #14 by mr_jolly

I am going to need exactly the same functionality here.

It does not matter where the purchaser is registered, the delivery address is the key. Again it's aerosols and the restrictions we have.

Has there been any movement on this??

Thanks in advance

19 Jun 2010, 10:01 PM
#15
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #15 by schoolboy

We had a similar issue, and got round it by using attributes. It's a bit "clunky", but it worked.

We set up an attribute OPTION NAME (dropdown) called " Delivery Restrictions ".

I can't remember the client we did this for, so I have set up a similar effect on another DEMO site of mine

If you go HERE and then click on the "Styling Options" tab...

20 years a Zencart User