fc_pro_checkout_review_order_after_coupon_code
Type: Action
Fires after the coupon code row in the checkout order review.
Signature
do_action( 'fc_pro_checkout_review_order_after_coupon_code' );
Parameters
This hook does not pass any parameters.
Since
2.0.5
Source: templates/fc/checkout-steps/checkout/review-order.php
Examples
add_action( 'fc_pro_checkout_review_order_after_coupon_code',
/**
* Add savings total line to order summary.
*/
function() {
$discount_total = WC()->cart->get_cart_discount_total();
if ( $discount_total > 0 ) {
echo '<tr class="cart-savings">';
echo '<th>' . esc_html__( 'Total Savings:', 'text-domain' ) . '</th>';
echo '<td><strong>' . wc_price( $discount_total ) . '</strong></td>';
echo '</tr>';
}
},
10
);