Skip to content
Advertisement

Woocommerce percentage discount per item based on quantity

Based on WooCommerce Cart Quantity Base Discount answer code, I apply a discount from xx products on shopping cart with the following:

JavaScript

But I would like to manage the discount from quantity for each product.

Do you have any tips for that?

Advertisement

Answer

The following will make a percentage discount based on item quantity:

JavaScript

Code goes on functions.php file of your active child theme (or active theme). It should works.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement