Cart Hook – woocommerce_after_cart_contents not working
-
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>’;
}
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
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Cart Hook – woocommerce_after_cart_contents not working’ is closed to new replies.