Here some code to change the wordpress wocommerece cart coupon label. Sometime need to show the custom label for the coupon label in the checkout page. Here is the wocommerece filter to change the checkout page cart coupon label. Al like other filters you can apply this filter code in the functions file of the child-theme or in the normal theme. Instead of the 'coupon' label we can use the 'discount' or 'save' or 'off' etc. labels. Check the code below:-
<?php
// FILTER CART TOTAL COUPON LABEL
add_filter('woocommerce_cart_totals_coupon_label', wc_cart_point_rewards_change_coupon_label',11,2 );
// CUSTOM FUNCTION TO CHANGE CART TOTAL COUPON LABEL
function wc_cart_point_rewards_change_coupon_label( $html , $coupon)
{
$html='Discount 10%:';
return $html;
}
?>
<?php
// FILTER CART TOTAL COUPON LABEL
add_filter('woocommerce_cart_totals_coupon_label', wc_cart_point_rewards_change_coupon_label',11,2 );
// CUSTOM FUNCTION TO CHANGE CART TOTAL COUPON LABEL
function wc_cart_point_rewards_change_coupon_label( $html , $coupon)
{
$html='Discount 10%:';
return $html;
}
?>