If this is your first visit, check our documentation. To post, register or login.
Forums / Managing Customers and Orders / Problem of "One per household"??

Problem of "One per household"??

Locked

Started by ez2ask on 21 Jul 2006, 5:15 PM · Views: 1,474

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
21 Jul 2006, 5:15 PM
#1
ez2ask avatar

ez2ask

New Zenner

Join Date:
Sep 2005
Posts:
25
Plugin Contributions:
0

Problem of "One per household"??

Hi, I have a question about "Product Qty Maximum" and it's related to "one per houlsehold" order condition......

I have a product that limits "ONE per household" and I did set "Product Qty Maximum" to 1 and "Products Quantity Box Shows" sets "NO", this product has no attributes. So, one customer only allows to order one of that item.

When customer set up an account then order this item for one, there is no problem at all, but when customer finish the check out and add that product to cart again, the program allows the customer to order the second times, third times......... So, I found out there is one customer has more than one order at the same item.

My question is how to prevent that happened, is there anything that I forgot to set up or........ Please help!!! Hurry!!! Really appreciate!!

21 Jul 2006, 6:29 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Problem of "One per household"??

You would need to have some code customized to block purchase of these types of products based on previous orders ...

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!

22 Jul 2006, 5:31 PM
#3
ez2ask avatar

ez2ask

New Zenner

Join Date:
Sep 2005
Posts:
25
Plugin Contributions:
0

Re: Problem of "One per household"??

Ajeh:

You would need to have some code customized to block purchase of these types of products based on previous orders ...

Thank you for the reply. Which file/function should I change and where is it? Can anyone help me? Thank you very much.

22 Jul 2006, 5:38 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Problem of "One per household"??

Most likely you want to block at the shopping cart ...

Have it automatically test the product ... if already bought ... throw a message and do not add it ...

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!

22 Jul 2006, 7:48 PM
#5
ez2ask avatar

ez2ask

New Zenner

Join Date:
Sep 2005
Posts:
25
Plugin Contributions:
0

Re: Problem of "One per household"??

Ajeh:

Most likely you want to block at the shopping cart ...

Have it automatically test the product ... if already bought ... throw a message and do not add it ...

Thanks Ajeh!!

But, I still don't know which file and function and where I should modify. Would you mind telling me more about the coding part? Really appreciate!!!

22 Jul 2006, 8:00 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Problem of "One per household"??

I'd have to sit down and write it more than likely ... :cry:

You have to decide if:

1 product does not show once ordered (harder to do)

2 product is blocked from being added to the cart and message given saying failed

3 product just gives message No way ... No Checkout until you put it back

There are a lot of ways to do this ... I don't know what level of coding you can do ...

You might look at how the call for price is done and just switch the add to cart button ... but that does slow things down on a per product check for a previous order ...

You can look at the minimum/maximum/unit check is done and do a look up similar to that before adding to the cart ...

You need something to identify what the product(s) is/are that cannot be purchased more than once ...

You need something to check the orders_products table for products in orders for the customer to see what's been added ...

You need to decide what to do for customers not logged in ... as in what if they add 1 to cart that already is purchased then login?

So ... there are a lot of tests to be done here ... but you only want to test the specific products and not all products as that takes time on lists etc.

This is not to discourage you but to help you break down all the things you need to take into account to test can the customer buy the product ... and then decide how do you want to handle that ...

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!

23 Jul 2006, 8:01 PM
#7
ez2ask avatar

ez2ask

New Zenner

Join Date:
Sep 2005
Posts:
25
Plugin Contributions:
0

Re: Problem of "One per household"??

Ajeh:

I'd have to sit down and write it more than likely ... :cry:

You have to decide if:

1 product does not show once ordered (harder to do)

2 product is blocked from being added to the cart and message given saying failed

3 product just gives message No way ... No Checkout until you put it back

There are a lot of ways to do this ... I don't know what level of coding you can do ...

You might look at how the call for price is done and just switch the add to cart button ... but that does slow things down on a per product check for a previous order ...

You can look at the minimum/maximum/unit check is done and do a look up similar to that before adding to the cart ...

You need something to identify what the product(s) is/are that cannot be purchased more than once ...

You need something to check the orders_products table for products in orders for the customer to see what's been added ...

You need to decide what to do for customers not logged in ... as in what if they add 1 to cart that already is purchased then login?

So ... there are a lot of tests to be done here ... but you only want to test the specific products and not all products as that takes time on lists etc.

This is not to discourage you but to help you break down all the things you need to take into account to test can the customer buy the product ... and then decide how do you want to handle that ...

Hi, Ajeh:

I guess you are right......there are lots of things need to consider and will make the coding more difficult. Hopfully, the next version of zencart will put this kind of situation to the core/main program and make it as one of the product's attribute or something else.......

Really appreciate your time to think of the problem for me and it's really help me to think this kind of situation deeply. Thank you so much for your help.