I’ve put together a visual (yet, you can copy/paste!) hook guide for the WooCommerce Cart Page. If you like this and it is helpful to you, let me know in the comments and I’ll create another one for the checkout, single product page and my account page.
You can find WooCommerce Cart hooks quickly and easily by seeing their actual locations. Great thing is – all you need to do in your functions.php is “add_action(‘place-hook-here’,’your-PHP-function-here’);” and you can place your custom functions anywhere on the WooCommerce Cart Page. Enjoy!
WooCommerce Cart Page [Visual Hook Guide]
Cart
woocommerce_before_cart_table
Product | Price | Quantity | Total | ||
---|---|---|---|---|---|
woocommerce_before_cart_contents | |||||
× | Test 6 | €5,00 | 2 | €10,00 | |
× | Test product | €1,00 | 1 | €1,00 | |
woocommerce_cart_contents | |||||
woocommerce_cart_coupon | |||||
woocommerce_after_cart_contents |
woocommerce_after_cart_table
You may be interested in…
-
Sale!
Monthly Product
€50,00€5,00
woocommerce_before_cart_totals
Cart Totals
Subtotal | €11,00 |
---|---|
woocommerce_cart_totals_before_shipping | |
Shipping | woocommerce_before_shipping_calculator woocommerce_after_shipping_calculator |
woocommerce_cart_totals_after_shipping | |
woocommerce_cart_totals_before_order_total | |
Total | €18,00 |
woocommerce_cart_totals_after_order_total |
woocommerce_proceed_to_checkout Proceed to Checkout
woocommerce_after_cart_totals
woocommerce_after_cart
WooCommerce Cart Default add_actions
// These are actions you can unhook/remove!
add_action( 'woocommerce_before_cart', 'woocommerce_output_all_notices', 10 );
add_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
add_action( 'woocommerce_cart_collaterals', 'woocommerce_cart_totals', 10 );
add_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );