1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Product Page
  5. Pricing
  6. Totals labels
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Product Page
  5. Totals labels
  1. Home
  2. Knowledge Base
  3. WooCommerce Product Add-Ons Ultimate
  4. Totals labels

Totals labels

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.

Subtotal labels

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:

<?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 );

Was this article helpful?

Related Articles