Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Show price of free item › Reply To: Show price of free item
September 13, 2017 at 1:20 pm
#1907
Soft79
Keymaster
Hi, you can use these filters for that:
add_filter( 'wjecf_free_cart_item_price',
function ( $text, $price_html, $cart_item, $cart_item_key )
{
return "<del>" . $price_html . "</del> <strong>" . __('Free!', 'woocommerce') . "</strong>";
}, 10, 4);
add_filter( 'wjecf_free_cart_item_subtotal',
function ( $text, $price_html, $cart_item, $cart_item_key )
{
return "<del>" . $price_html . "</del> <strong>" . __('Free!', 'woocommerce') . "</strong>";
}, 10, 4);