Limit Products by State

Locked

Views: 1,150

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 May 2009, 11:11 PM
#1
townsend2009 avatar

townsend2009

New Zenner

Join Date:
Nov 2008
Posts:
93
Plugin Contributions:
0

Limit Products by State

I would like to make certain products only available one per state. Can anyone tell me how to do this or point me to the right modification?

I have searched the FAQ's and the forum, but have not pulled up the right responses. I am running the latest version of ZC.

Any help is always greatly appreciated!

13 Oct 2009, 8:14 PM
#2
townsend2009 avatar

townsend2009

New Zenner

Join Date:
Nov 2008
Posts:
93
Plugin Contributions:
0

Re: Limit Products by State

Bumping...Still don't have an answer for this question. Can anyone help? :D TIA!

13 Oct 2009, 8:45 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Limit Products by State

You could add a new field to the products table for the products_state and utilize that when a customer is logged in ...

You could control adding to the cart with the function used for the add to cart and buy now buttons:
zen_get_buy_now_qty

by adding an additional test for the new field and handling what button or text gets sent back to any calling program ...

To do something like this, you may want your shop setup so that the customer must be logged in to "buy" ... they can still see everything, but they would not be allowed to add to the cart until they are logged 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!

14 Oct 2009, 3:38 PM
#4
townsend2009 avatar

townsend2009

New Zenner

Join Date:
Nov 2008
Posts:
93
Plugin Contributions:
0

Re: Limit Products by State

Thanks Linda. You are always so helpful ;)

Could this be achieved by using the zone restrictions? I don't fully understand that feature.

14 Oct 2009, 4:03 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Limit Products by State

If you look in the shipping modules, you can see how a Zone is tested for, such as in:
/includes/modules/shipping/storepickup.php

and you would need to change what is being tested, as this isn't an order, but the concept is there ...

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!