Buy 1 Get 1 Free for WooCommerce

$49.00

This PHP code enables you to increase sales by displaying a notice on the cart page when a customer adds a product to the cart offering a free product for every product purchased.

A notice “Add 1 more to get the 2nd item free” is displayed to encourage customers to increase the quantity by a factor of 2.

Installation

Copy and paste the PHP code to the end of your child themes functions.php file or custom functionality plugin.

In the code, replace the product i.d on line 14 to target your buy 1 get 1 free product.