0

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?

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.

  • Thanks, I guess I'll have to use an override. – SamXronn Mar 12 at 11:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.