Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

minimum quantity per product


juli

Recommended Posts

Hi,

 

I'm looking for a minimum quantity per product contribution, but i could not find one myself so far.

 

I already installed QPBPP ( http://www.oscommerce.com/community/contributions,1242/ ) but there is no minimum quantity per product option.

The other contribution I found is http://www.oscommerce.com/community/contributions,2982/ but it is obviously not working.

 

Does anyone know what contribution might work for me? Or even a different solution for my problem!?

 

Thanks in advantage,

juli

Link to comment
Share on other sites

that a customer has to buy at least (for example) 5 pieces of that product, but it has not to be in a 5 pieces bundle, where just multiples of 5 are sold, like 5, 10, 15,...

 

I want that it just has to be more than 5.. that you can buy 5 or 12 or 7....

 

 

I hope you understand what i meant now ^^"

 

 

Actually i want exactly what the "Minimum Order Quantity Per Product" contribution should do if it would work...

Link to comment
Share on other sites

That's what i meant by QPBPP -> "Quantity Price Break Per Product"

From what I remember you can use QPBPP like that if you change the function adjustQty in PriceFormatter.php:

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

if ($qb >= 1)
{
	if ($qty < $qb)
		$qty = $qb;
// comment out the next part to use this function for minimum product quantity only
	// if (($qty % $qb) != 0)
	//	$qty += ($qb - ($qty % $qb));
}
return $qty;
 }

Link to comment
Share on other sites

That's what i meant by QPBPP -> "Quantity Price Break Per Product"
There should be a box right above the price breaks boxes that sets the minimum quantity. At least, it has always been there when I have installed it.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

This seems to work good, I added extra price breaks, just a question, not sure how to do this. My products are printed items, and have high minimums such as 500.

 

So first I need to make sure that the minimum of 500 is the first column displayed not the column starting with 1+

 

Second if the minimum is 500 on a product, I don't want the customer to be able to input anything less than that.

 

I'm sure its not that tough, if i knew php a little better. Thanks for the help!

Link to comment
Share on other sites

  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...