WooCommerce Visual Hook Guide Cart Page 2024

Leave a comment / By John Cook

Woocommerce visual hooks guide for the cart page. With this guide, you'll be able to gain an understanding of how the cart page is assembled and thr actions of each part. You'll also be able to use this guide to add additional snippets of code and further extend the woocommerce cart page.Once you have found the hook that you want to use simply copy it into your custom function and then into your theme functions.php file or functions plugin.
See also  WooCommerce Visual Hook Guide shop/archive/category pages 2024

Stay In Touch

Cart

woocommerce_before_cart

woocommerce_before_cart_table

  ProductPriceQuantityTotal

woocommerce_before_cart_contents

× Ciara Bow Earrings Gold Ninja Shirt 14.00
2
$28.00
× Ciara Bow Earrings Gold Ninja Silhouette 10.00
3
$30.00

woocommerce_cart_contents

woocommerce_cart_coupon

woocommerce_after_cart_contents

woocommerce_after_cart_table

woocommerce_cart_collaterals

You may be interested in…

Sale! Ciara Bow Earrings Gold

Ninja Shirt

$35.99 $29.99

woocommerce_before_cart_totals

Cart Totals

Subtotal$58.00

woocommerce_cart_totals_before_shipping

Shipping

woocommerce_before_shipping_calculator

Calculate Shipping

woocommerce_after_shipping_calculator

woocommerce_cart_totals_after_shipping

woocommerce_cart_totals_before_order_total

Total$63.00

woocommerce_cart_totals_after_order_total

woocommerce_proceed_to_checkout

woocommerce_after_cart_totals

woocommerce_after_cart

WooCommerce Visual Hook Guide Cart Page 2024 Default 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 );
                        
                    
See also  WooCommerce Checkout Page Visual Hooks Guide 2024

Where to use these hooks...

Was WooCommerce Visual Hook Guide Cart Page 2024 helpful? Why not show your support and buy me a coffee?

Stay In Touch

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
Scroll to Top
×