$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>WooCommerce checkout page price break down table hook|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

WooCommerce checkout page price break down table hook

matteradmin10PV0评论

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.

Post a comment

comment list (0)

  1. No comments so far