Repository Forums Support WooCommerce Extended Coupon Features PRO Choose Free Product on Checkout Reply To: Choose Free Product on Checkout

#3829
Soft79
Keymaster

I see.

If a free product hasn’t been selected yet the product selection is displayed on the checkout page. If a free product has been selected already, it will not be displayed on checkout. This is by design, to keep distraction to a minimum on checkout page.

If you want to change this behaviour:

1. Copy wp-content/plugins/woocommerce-auto-added-coupons-pro/templates/checkout/select-free-product.php to:
wp-content/themes/YOUR_CHILD_THEME/woocommerce-auto-added-coupons/checkout/select-free-product.php

2. Open the file, find the following line:
if ( empty( $coupon_form_data['selected_quantity'] ) ) {

and replace with:

if ( true || empty( $coupon_form_data['selected_quantity'] ) ) {