By default, WooCommerce Product Add Ons Ultimate displays a set of subtotals showing the user how the total product price is arrived at. You can edit the labels against each item.
To do this:
- From the front end, go to Customizer > WooCommerce > WooCommerce Product Add Ons Ultimate
- From the back end, go to WooCommerce > Settings > WooCommerce Product Add Ons Ultimate
Edit the field labels as required.
Adding text before the total
If you choose ‘Totals only’ from the ‘Display totals fields’, you can add some text before the total. Use this snippet:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function prefix_pewc_total_only_text( $label, $post_id ) { | |
return __( 'Total: ' ); | |
} | |
add_filter( 'pewc_total_only_text', 'prefix_pewc_total_only_text', 10, 2 ); |