Repository Forums Support WooCommerce Extended Coupon Features PRO how to select 2 free products on products with 2 quantity Reply To: how to select 2 free products on products with 2 quantity

#4388
Soft79
Keymaster

Hi,

That field is planned to be implemented in a future version of the plugin, but it takes some planning because it will include mathematics. e.g.: quantity = floor( items_in_cart / 5 )

A suggestion: Your hack can be implemented without editing core files by using the wjecf_free_product_amount_for_coupon filter and using our development best practices. See the example code at https://www.soft79.nl/documentation/wjecf/development/ )