Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2005
    Posts
    39
    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!!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  3. #3
    Join Date
    Sep 2005
    Posts
    39
    Plugin Contributions
    0

    Re: Problem of "One per household"??

    Quote Originally Posted by 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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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!

  5. #5
    Join Date
    Sep 2005
    Posts
    39
    Plugin Contributions
    0

    Re: Problem of "One per household"??

    Quote Originally Posted by 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!!!

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem of "One per household"??

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

    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!

  7. #7
    Join Date
    Sep 2005
    Posts
    39
    Plugin Contributions
    0

    Idea or Suggestion Re: Problem of "One per household"??

    Quote Originally Posted by Ajeh
    I'd have to sit down and write it more than likely ...

    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.

 

 

Similar Threads

  1. v139h Restrict Coupon to One per Household?
    By acerldd in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 7 Nov 2014, 06:37 PM
  2. Replies: 1
    Last Post: 23 Jun 2009, 05:00 AM
  3. Anyone successful make the "Group Pricing (Per Item)" & "MSRP Display" togther?
    By explorer1979 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Dec 2008, 08:37 AM
  4. Checkout 1 of 3, Changing font colour of "flat rate" & "per item" headings?
    By singing_lad in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Oct 2008, 02:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg