WooCommerce – Treat cart items separate if quantity is more than 1

Although this is a rarely used codex to Treat cart items separately if the quantity is more than 1  but we still want to share this tinny snippet which can be helpful to someone like me. In my live woocommerce project, there was a requirement from the client that if there is a woocommerc order having a product with more than one quantity then the cart item should be treated as a subitem for the quantity of the item in the cart.

Add the following code to your active theme’s functions.php

This is all. Now your cart will start showing cart items separate if quantity is more than 1

Happy coding !!!! 🙂

Loading