WooCommerce checkout page price break down table hook

admin2025-06-02  2

I want to add a new price break down line to the WooCommerce breakdown page. I've looked at using these hooks which supposedly should allow me to post to the table.

woocommerce_review_order_after_cart_contents
woocommerce_review_order_before_shipping
woocommerce_review_order_before_cart_contents

However, if I echo a string as a test it always appears above the checkout table price break down.

Is there any way to add a new line item to the WooCommerce checkout table?

I want to add a new price break down line to the WooCommerce breakdown page. I've looked at using these hooks which supposedly should allow me to post to the table.

woocommerce_review_order_after_cart_contents
woocommerce_review_order_before_shipping
woocommerce_review_order_before_cart_contents

However, if I echo a string as a test it always appears above the checkout table price break down.

Is there any way to add a new line item to the WooCommerce checkout table?

Share Improve this question asked Mar 11, 2019 at 13:44 SamXronnSamXronn 1951 gold badge3 silver badges18 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

I think the hooks you're looking for are going to be either woocommerce_review_order_after_shipping or woocommerce_review_order_before_order_total. If you need to get in between where those two put you then you're looking at modifying a template, which isn't as future proof but is still a viable option when the hooks aren't enough.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748819705a313992.html

最新回复(0)