Repository Forums Support WooCommerce Extended Coupon Features PRO See the possibe free gift bevor reaching the minimum amount

Topic Resolution: Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #4035


    I would like that the customers see the possible free gift wich the can get befor the reach the minimum amount the have to have. So that they get motivated to buy more to get the free gift.

    How is this possible?

    Thank you!!


    The following snippet would add a message to the cart if a certain coupon is not applied. Replace ‘coupon_code’ by the actual coupon code and change the message to your needs…

    add_action( 'woocommerce_after_cart_table', function() {
        if ( WC()->cart->has_discount( 'coupon_code' ) ) return;
            <div class="soft79-notice clearfix">
                <p>Spend $ 60 to get a <strong>free gift</strong>!</p>
    }, 5 );

    Place it in your child theme’s functions.php.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.