martynute
Forum Replies Created
-
When I wrote this code to the functions.php file, the invoice name disappeared:
add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title' ); function wpo_wcpdf_invoice_title () { $invoice_title = htmlentities('Sąskaita faktūra'); return $invoice_title; }I’m using Notepad++ editor.
I was installed Code Snippets and added:
add_filter( 'wpo_wcpdf_invoice_title', 'wpo_wcpdf_invoice_title' ); function wpo_wcpdf_invoice_title () { $invoice_title = 'Sąskaita faktūra'; return $invoice_title; }It’s working! I see lithuanian characters, but how to change other fields with Code Snippets? For example, if I want to change Order Number?
I was trying to change invoice.php file. For example:
<?php _e( ‘Pirkėjas:’, ‘woocommerce-pdf-invoices-packing-slips’ ); ?>Also I changed functions.php in my theme folder:
add_filter( ‘wpo_wcpdf_invoice_title’, ‘wpo_wcpdf_invoice_title’ );
function wpo_wcpdf_invoice_title () {
$invoice_title = ‘Sąskaita faktūra’;
return $invoice_title;
}It’s not working..
But when I writed “Shop Address” in your Plugin – it’s ok. I see Lithuanian letters.
Interesting.. Maybe it’s not problem of your plugin?