• kevinb85

    (@kevinb85)


    Hello, The button to see the invoice in the MY ACCOUNT / ORDER page are in english and my website site is all and only french. I can’t find where to translate the text on the button: VIEW and INVOICE .

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    @kevinb85 Our apologies for the delayed response. You can give this code snippet a try

    //Filter the invoice View and Download names the My account page - WPO PDF Invoices & Packing Slips
    add_filter( 'wpo_wcpdf_myaccount_actions', function( $action, $order ) {
    	$document = wcpdf_get_document( 'invoice', $order );
    	$view_translation = 'View translation';
    	$download_translation = 'DL translation';
    	$action['view']['name'] = $view_translation;
    	$action['invoice']['name'] = $download_translation;
    	return $action;
    }, 99, 2 );

    Be sure to add your translation in the $view_translation and $download_translation variables.

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Thread Starter kevinb85

    (@kevinb85)

    Thank you. Unfortunately, it did not work.

    Plugin Contributor dwpriv

    (@dwpriv)

    How did you add the snippet? Could you share a screenshot, please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘My Account Page Buttons’ is closed to new replies.