Home Forums WoodMart support forum Cart Hook – woocommerce_after_cart_contents not working

Cart Hook – woocommerce_after_cart_contents not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #63273

    mazs91
    Participant

    Dear Support,

    I have placed the below code in the funtions.php. The text is appearing at the top of the cart page. Ideally, it should appear after the coupon code button. Is it a woocommerce issue or the theme template issue?

    add_action(‘woocommerce_after_cart_contents’, ‘jagels_custom_checkout_field’);

    function jagels_custom_checkout_field() {
    echo ‘<p><small>>>If you have a coupon code, please apply it below.</small></p>’;
    }

    #63283

    Artem Temos
    Keymaster

    Hi,

    This hook is placed after the cart content and you can’t use it to place your text after the coupon code. You need to find some other WooCommerce hook for this purpose.

    Regards

    #63310

    mazs91
    Participant

    thanks sorted it out

    #63320

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Cart Hook – woocommerce_after_cart_contents not working’ is closed to new replies.