Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Boxes of 6 or 12 bottles


darkdiamond

Recommended Posts

Hi. I'm opening a store and I experienced this problem.

We sell wine, and I need that a costumer can buy 6 or 12 bottles, not 2, not 11, not 8. The problem is that the bottles could be different so the box could be composed of different types of wine (of different products). So I need a contribution to accept orders only if the TOTAL of the items in the cart is 6 or 12. Does anyone know if there is something that will do that?

Thank You

Tommy

Link to comment
Share on other sites

Simple,

1 - Offer a product and assign a price, ?Assorted 6 bottle box?

2 - Add options, ?bottle1, bottle2, bottle3, etc.?

3 ? Add attributes to each ?bottle? option (with no dollar value) 1 Red wine, 1 White wine, 1 Blue wine, etc.

Customer will click on product (Assorted 6 bottle box) then see 6 drop downs each containing all the choices for selection to total the 6 bottles.

 

wazu :thumbsup:

Link to comment
Share on other sites

  • 2 months later...
Another option is:

Quantity Price Breaks Per Product

 

I'm not sure if will work with mixed cases.

HTH,

Robert

 

Nope! Gives you the first part of solution. Customer can buy no less than e.g. 6 bottles, but there is no way you can prevent a customer from buying 9,10 or 11 bottles.

Desparately looking for solution, since I have client with same problem

damsbo

Link to comment
Share on other sites

Nope!  Gives you the first part of solution. Customer can buy no less than e.g. 6 bottles, but there is no way you can prevent a customer from buying 9,10 or 11 bottles.

Interesting. Perhaps you can explain what this function in PriceFormatter.php does then:

  function adjustQty($qty) {
// Force QTY_BLOCKS granularity
$qb = $this->getQtyBlocks();
if ($qty < 1)
 $qty = 1;

if ($qb >= 1)
{
 if ($qty < $qb)
	 $qty = $qb;

 if (($qty % $qb) != 0)
	 $qty += ($qb - ($qty % $qb));
}
return $qty;
 }

Link to comment
Share on other sites

Interesting. Perhaps you can explain what this function in PriceFormatter.php does then:

 ?function adjustQty($qty) {
// Force QTY_BLOCKS granularity
$qb = $this->getQtyBlocks();
if ($qty < 1)
?$qty = 1;

if ($qb >= 1)
{
?if ($qty < $qb)
?	$qty = $qb;

?if (($qty % $qb) != 0)
?	$qty += ($qb - ($qty % $qb));
}
return $qty;
?}

 

I asked for that one, didn't I.

A few keystrokes and a roll-back from my back-up solved the problem. Thnx a lot. I never would have found the piece of code on my own.

I bow to genious minds.

damsbo

Link to comment
Share on other sites

It is possible to have the quantity discount (with various price levels) applied to only to certain items (for example, 3 different CD's), but not anything else in the store?
Yes, the product quantity and quantity discount levels are entered in the admin section for single products, not groups, or categories or whatever.
Link to comment
Share on other sites

Ok, thanks for the reply! Actually, I want a quantity discount and I want it to put all the quantities from select items together and apply the discount to those products based on the quantity purchased.

 

Does this make sense? Any ideas?

 

Lavern Gingerich

Link to comment
Share on other sites

Ok, thanks for the reply! Actually, I want a quantity discount and I want it to put all the quantities from select items together and apply the discount to those products based on the quantity purchased.

 

Does this make sense? Any ideas?

Oops, I know it can be done if you use all products (some post of mine in the SPPC thread) and Tom Maene/Darklings is working on doing this by category but I'm not aware of a contribution or an example of how to do it in that case. Doesn't sound impossible though.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...