Put the whole coupon message in the filter.
This commit is contained in:
parent
7a4c0f94de
commit
dc9043f99c
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @author WooThemes
|
||||
* @package WooCommerce/Templates
|
||||
* @version 1.6.4
|
||||
* @version 2.2
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
@ -15,8 +15,7 @@ if ( ! WC()->cart->coupons_enabled() ) {
|
|||
return;
|
||||
}
|
||||
|
||||
$info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) );
|
||||
$info_message .= ' <a href="#" class="showcoupon">' . __( 'Click here to enter your code', 'woocommerce' ) . '</a>';
|
||||
$info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' <a href="#" class="showcoupon">' . __( 'Click here to enter your code', 'woocommerce' ) . '</a>' );
|
||||
wc_print_notice( $info_message, 'notice' );
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue