Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Making spacific items not avaialble to outside state customers

Making spacific items not avaialble to outside state customers

Views: 610

Results 1 to 2 of 2
11 Feb 2010, 5:26 PM
#1
lilguppy avatar

lilguppy

New Zenner

Join Date:
Jan 2010
Posts:
96
Plugin Contributions:
0

Making spacific items not avaialble to outside state customers

How do I make some products only available to my state customers without having to put (local customers only please) all over my products?

11 Feb 2010, 5:47 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Making spacific items not avaialble to outside state customers

You could add a new field to the products table:
products_is_local

and when set to 1 the shopping_cart and test, if the customer is logged in, if they are local ...

Then add the same test to the checkout_shipping to prevent checkout when the shipping address is not local ...

Customize the Admin to allow you to add/edit the new field ...

It takes a bit of work ... but it can be done ...