Post by blundelli » Tue Jul 10, 2012 11:54 pm

Hi there,

I was wondering if there is a way of forcing a minimum order quantity through weight-based (or some other) shipping?

I have a minimum order of 4 forced through the product as I would like customers to be able to opt to have two types of products, but I would like the overall minimum to be 8 if that makes sense?

So a customer may buy 8 of one product or 4 of one and 4 of another but not just 4.

Is there an easy way of forcing this through shipping?

Many thanks,

Blundelli

Newbie

Posts

Joined
Tue Jul 10, 2012 11:51 pm

Post by josehansome » Wed Jul 11, 2012 10:09 am

So a customer may buy 8 of one product or 4 of one and 4 of another but not just 4.thanks!




------------------------------------------------------------------------------------
Rc Hobby|Remote Control Helicopters

Newbie

Posts

Joined
Wed Jul 11, 2012 10:02 am

Post by OpenCart Addons » Fri Jul 13, 2012 12:12 am

Add:

Code: Select all

if ($this->cart->getQuantity() < 8) {
$status = false;
}
Before:

Code: Select all

if ($status) {

Regards,
Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by Qphoria » Sat Jul 28, 2012 1:08 am

OpenCart Addons wrote:Add:

Code: Select all

if ($this->cart->getQuantity() < 8) {
$status = false;
}
I think you mean

Code: Select all

$this->cart->countProducts()

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by OpenCart Addons » Mon Jul 30, 2012 10:34 pm

Qphoria wrote:
OpenCart Addons wrote:Add:

Code: Select all

if ($this->cart->getQuantity() < 8) {
$status = false;
}
I think you mean

Code: Select all

$this->cart->countProducts()

Ah yes, sorry.


Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada
Who is online

Users browsing this forum: No registered users and 2 guests