Post by msquaredstl » Thu Jul 12, 2018 7:48 am

My client has an apparel store that offers screen printing on a variety of items (T-shirts, hoodies, bags, etc.). They have a couple of different minimum quantities that they want.

First off, the overall order must be at least 12 items of any assortment. Most of the apparel has size breakdowns (XS through 4XL). Each of the apparel styles can be screen printed with one of seven designs. They want each design to have a minimum of 6 when ordering – this can be spread out over any screen printable item.

For example, a customer could purchase 6 shirts with design A, and 6 hoodies with design B to make up the minimum quantity of 12. They could also purchase a bag, men’s hoodie, women’s hoodie, men’s t-shirt, women’s t-shirt, and a tank top with design A and a similar quantity of design B to make the minimum of 12.

If a customer tries to order less than six of any design there should be an error asking them to add more products of the design.

I’m guessing the changes will need to be made in the checkout controller (\catalog\controller\checkout\checkout.php).

Can anyone suggest a good way to go about this?

Some ideas/questions that I had:
Unique identifier for each design, then count the total number, as long as it’s over 6 proceed to checkout.
Can a new field be added to the option values?
Can the Option Value SKU be used as a lookup across products?
Required ‘add-on’ product for the screen printing with minimum quantities.

As a disclaimer, I don't have much experience with Opencart 1.5, but I have used 2 and 3. So hopefully I should be able to figure out how to do this with some assistance.



Thu Jul 12, 2018 6:46 am

Post by IP_CAM » Fri Jul 13, 2018 3:16 am

My client has ...
sounds, like you will be willing, to accept a commercial Solution on such. 8)
But a huge Amount of Extensions exists on such, it's just a little complicated,
to find out, what possibly fit's best.
Search under Options - Related Options - Dependent - Conditional - Minimum
to find most of them:
Search for Options ... load_id=33
Minimum: ... load_id=33
Good Luck! ;)

Ernie's OpenCart v. LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites -

User avatar
Guru Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by msquaredstl » Mon Jul 16, 2018 4:11 am

We have a minimum quantity extension installed, but the issue that we're having is that we want to have a minimum quantity on product options for multiple products as well as the product categories. The minimum quantity appears to work with the individual products, but doesn't work the way we want for the product options.



Thu Jul 12, 2018 6:46 am
Who is online

Users browsing this forum: Bing [Bot] and 36 guests