Code

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #495011

    cmeng7680
    Participant

    I hope that there will be a form in the coupon area where you can fill in the code directly, instead of the current paragraph of text. This is not eye-catching enough. what should I do?

    Attachments:
    You must be logged in to view attached files.
    #495211

    Hello,

    Try to add following code snippet in the child theme to change the text and make it eye catching:

    add_filter( 'woocommerce_checkout_coupon_message', 'pk_have_coupon_message');
    function pk_have_coupon_message() {
       return '<i class="fa fa-ticket" aria-hidden="true"></i> Have a coupon? <a href="#" class="showcoupon">Click here to enter your discount</a>';
    }

    Best Regards.

Viewing 2 posts - 1 through 2 (of 2 total)