woocommerce checkout, only finish if you have 3 products in cart

0

My problem is this:

I want to create a store where I will offer 10 online courses for sale, but the customer will only be able to finalize the purchase if he includes at least 3 courses in the cart if he includes 1 or 2, p>

An important detail , this can not be a general rule in woocommerce, as the same store will sell books, magazines and other courses that can be marketed alone.

In order not to impact the entire store I thought of making this "3-product rule" work by category and not by product, so if the customer places a product of the "magazine" category it will normally finish, but if it includes in the cart a product of the category "cursos3" he will be obliged to include another 2 courses to finalize the purchase.

I would like to know if there is a plugin for woocommerce that does something similar, I find it difficult, but sometimes someone knows it.

Or some code that I can implement in function.php

    
asked by anonymous 03.04.2018 / 20:27

0 answers