Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Locked

Views: 1,519

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
27 Jul 2007, 7:28 AM
#1
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Hello,
I will appreciate if someone could answer if the scenario below is possible with current ZC version; or if this needs a module (if yes, is this an existing module > please provide URL):

CASE:
Let's assume that:

  • one of my categories contains paper sheets (various colors/sizes, etc.)
  • the paper is sold in increments of 1 sheet
  • the quantities in stock for some items (papers) may be below 25 sheets
  • customer may select an assortment of papers but the minimum quantity to ship is 25 sheets

QUESTION:
Besides of placing a statement in the product info page about minimum order, is there any configuration that would prevent customer to checkout, if the total amount of defined category/item (in our case paper sheets) is less that predefined number (in our case: 25 sheets)?

Thanks a lot,

27 Jul 2007, 7:44 AM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

0101101011:

Hello,
I will appreciate if someone could answer if the scenario below is possible with current ZC version; or if this needs a module (if yes, is this an existing module > please provide URL):

CASE:
Let's assume that:

  • one of my categories contains paper sheets (various colors/sizes, etc.)
  • the paper is sold in increments of 1 sheet
  • the quantities in stock for some items (papers) may be below 25 sheets
  • customer may select an assortment of papers but the minimum quantity to ship is 25 sheets

QUESTION:
Besides of placing a statement in the product info page about minimum order, is there any configuration that would prevent customer to checkout, if the total amount of defined category/item (in our case paper sheets) is less that predefined number (in our case: 25 sheets)?

Thanks a lot,

If I'm not mistaken, There are options for minimum/maximum quantities on the admin page where you enter your product(s).

27 Jul 2007, 3:31 PM
#3
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Hi - Yes, there is, but I think the case situation is slightly different.
If I'm not mistaken, it is not just about min/max quantity on an item-level - here is why:

Customer can buy assorted products - and let's say, for this discussion, the minimum to add to cart is set to 1.
Let's call the category where the total minimum to ship is 25, CAT1; and other category CAT2.

Customer adds 5 items of product A; 2 items of product B, and 15 items of product C; from CAT1 (total of 22; needed 25) and goes to checkout.

Let say, that all CAT1 items have a "Minimum Order" Note, but the customer didn't pay much attention.
So if there were a sort of checkup on the CATEGORY MINIMUM ORDER, customer would get a message, that s/he has 22 items from CAT1; and s/he needs to add 3 more in order to be able to ship.

The question is: does ZC has such functionality or is there a module making it possible?
Thanks,

27 Jul 2007, 9:03 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Do you only sell sheets?

If so, there is an add-on for minimum order that could be adapted ...

If not, is there an identifier on your sheets that distinquishes them from other products?

If so, this could be used as a modifier to the minimum order add-on ...

If not ... you would need some custom code to manage this for you ...

27 Jul 2007, 10:06 PM
#5
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Ajeh, thanks for responding.
No, not only sheets. Yes, they can have an identifier; in fact, the category or subcategory could be an identifier - I was looking in the download list for mods, and couldn't find functionality that would apply: do you have a particular mod in mind? Please send an URL. Thanks,

28 Jul 2007, 2:28 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

I was thinking about the minimum order add-on but add to that a test based on the condition that identifies the products to ensure there are 25 of them if any appear in the cart ...

It would take some customization ... but you more or less just need something to count if even 1 sheet appears in the cart (this being the trigger) to ensure that there are 25+ based on that same trigger ...

29 Jul 2007, 8:29 PM
#7
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Ajeh,
I have checked the files in minimum order mod.
I understand the theory of what you have suggested, but I'm not sure I will be able to actually turn it into the code.
My php knowledge is little 'monkey-like:' Once I understand what it is all about, I can reproduce it, but I'm affraid, I wouldn't trust myself in writing a mod from scratch.
Is it possible to get more help with it?
Thanks,

29 Jul 2007, 11:04 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

You might then wish to consider posting in the Commercial Help Wanted to have this code customized for you ...

3 Aug 2007, 7:31 AM
#9
0101101011 avatar

0101101011

New Zenner

Join Date:
Nov 2006
Posts:
61
Plugin Contributions:
0

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

Allright - here is another question for you:
Product Qty Min. = 4
Product Qty Units = 2
Product Qty = 11

Customer buys min 4 + 6. In stock = 1

What if the number in qty units is > than qty? I'm getting 'minimum qty error' - is there any setup in admin that would automatically allow to buy the 'left-overs?'
Thanks,

3 Aug 2007, 2:48 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Prevent checkout if 'Predefined Situation' is not met: Is this possible?

There is no feature built into Zen Cart to break out of the rules you have established with the Min/Max/Units just because you are low on stock ...

You would need to customize the code to override these settings and allow this to happen ...