Change the text in order page

Hello,

On the view order page /account/vendor/orders/3014/ for the person listing and receiving an order and then viewing the order details I would like the following text to show instead of Subtotal and Total. I would like it to say “Subtotal with fees” and “Total earnings”.

Thanks,
Tom

1 Like

Hi,

Please try to use Loco Translate How to translate an extension - HivePress Help Center.
You can find these strings in Loco Translate > Plugins > WooCommerce.

Hey Andrii,

We don’t want to use loco translate because that will change the wording everywhere. We just want to change the wording on this specific route /account/vendor/orders/xxxx/

Hi,

Unfortunately, we can’t offer you another option because these are WooCommerce strings.

Can’t we just have a functions.php similar to how we modify this one on one specific page?

add_filter(
 'hivepress/v1/routes',
 function( $routes ) {
  if(!isset($routes['user_edit_settings_page'])){
   return $routes;
  }
  
  $routes['user_edit_settings_page']['title'] = 'Primary Account Settings';

  return $routes;
 },
 1000
);

add_filter(
 'hivepress/v1/menus/user_account',
 function( $menu ) {
  if(!isset($menu['items']['user_edit_settings'] )){
   return $menu;
  }
  
  $menu['items']['user_edit_settings'] = array_merge($menu['items']['user_edit_settings'], [
   'label'  => hivepress()->translator->get_string( 'settings' ),
  ]);

  return $menu;
 }
);

Hi,

Sorry for the inconvenience, but customization is beyond our support scope - it includes fixing bugs and guidance about the available features Support Policy | HivePress.

If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY

P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.