WooCommerce cart page Visual hooks guide

In WooCommerce, there are different hooks for their product pages, cart page & checkout page. These hooks help us to add our content in several places on these pages. Here we have a tendency to discuss WooCommerce cart page hooks.

1. woocommerce_before_cart

The woocommerce_before_cart hook is placed before the cart form that means function under this hook will be executed before the start of the cart form.

2. woocommerce_before_cart_table

The woocommerce_before_cart_table hook is placed inside the cart form but before the start of the cart table.

3. woocommerce_before_cart_contents

The woocommerce_before_cart_contents hook is placed inside the cart table after the title of the columns. This hook can be used if you want to display any message inside the table.

4. woocommerce_cart_contents

The woocommerce_cart_contents hook is placed inside the table and above the ‘Update Cart’ button.

5. woocommerce_cart_coupon

The woocommerce_cart_coupon hook is placed below the ‘Apply Coupon’ button.


The woocommerce_after_cart_contents hook is placed after the coupon and inside the cart table.

7. woocommerce_after_cart_table

The woocommerce_after_cart_table hook is placed outside the cart table but inside the cart form.

8. woocommerce_cart_collaterals

The woocommerce_cart_collaterals hook is placed below the cart table and above the cart totals.

9. woocommerce_before_cart_totals

The woocommerce_before_cart_totals hook is placed before the cart subtotal.

10. woocommerce_cart_totals_before_shipping

The woocommerce_cart_totals_before_shipping hook is placed above the shipping fields in the cart totals. If we add our function to this hook, it will get executed if the cart has shipping enabled.

11. woocommerce_before_shipping_calculator

The woocommerce_before_shipping_calculator hook is placed above the ‘Calculate Shipping’ option in the cart totals and below the shipping options.

12. woocommerce_after_shipping_calculator

The woocommerce_after_shipping_calculator hook is placed after the ‘Calculate Shipping’ options and above the total.

13. woocommerce_cart_totals_after_shipping

The woocommerce_cart_totals_after_shipping hook is placed after the shipping fields.

14. woocommerce_cart_totals_before_order_total

woocommerce_cart_totals_before_order_total hook is placed above the totals field in the cart.

15. woocommerce_cart_totals_after_order_total

The woocommerce_cart_totals_after_order_total action hook is placed just below the totals field on the cart page.

16. woocommerce_after_cart_totals

The woocommerce_after_cart_totals hook is placed below the ‘Proceed to Checkout’ button.

17. woocommerce_proceed_to_checkout

The ‘Proceed to Checkout’ button is also placed using this hook inside the ‘wc-template-hooks.php‘ file. This hook is placed just before the ‘Proceed to Checkout’ button.

18. woocommerce_after_cart

The woocommerce_after_cart hook is placed at the end of the cart, outside the cart table.

Here we discuss WooCommerce cart page hooks so, as per your requirement you can find WooCommerce cart page hooks quickly and easily by seeing their actual locations. Also, you can easily copy and paste. Do you have any questions related to WooCommerce cart page hooks then feel free to contact us. We are an experienced WooCommerce developer at Lathiya Solutions Surat. We are happy to help solve your query.