- This topic has 2 replies, 2 voices, and was last updated 6 years ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Free Product Quantity Message
Hi Support team,
Thank you for the wonderful plugins. There is one thing I would need your help. We are currently running a Buy 2 Free 1 promotion and multiplication of free product is enabled.I would like to display a message which can show the use how many gifts they can select based on the quantity of the item purchased. For example, if a user purchases 10 products, they will be able to select 5 free products. The message can automatically detect the number of offered free gifts and show to the user like “Please select 5 free gifts”.
Hope to hear from you soon!
Thank you!
You can do this with a template override.
Copy wp-content/plugins/woocommerce-auto-added-coupons-pro/templates/coupon-select-free-product.php
to: wp-content/themes/YOUR_CHILD_THEME/woocommerce-auto-added-coupons/coupon-select-free-product.php
Then find the the following line (probably #55):
<h3><?php echo WJECF_API()->get_select_free_product_message( $coupon ); ?></h3>
and replace it with something like this:
<h3><?php
if ($max_quantity > 1)
echo "Please select {$max_quantity} free gifts";
else
echo "Please select one free gift";
?></h3>
Thank you very much for the solution! It works perfectly!