Put the whole coupon message in the filter.

This commit is contained in:
Gerhard 2014-07-17 10:36:12 +02:00
parent 7a4c0f94de
commit dc9043f99c
1 changed files with 2 additions and 3 deletions

View File

@ -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' );
?>