Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is using WooCommerce PDF Invoices & Packing Slips by welaunch with WPML and is unable to translate the invoice content fully, even though all strings have been translated. The issue occurs when orders are created from the WordPress dashboard, resulting in invoices not being translated correctly.
Solution:
We recommend translating the strings with the name

[woocommerce_pdf_invoices_options]contentItems

. This solution was tested on a sandbox site and was effective. If you're experiencing this issue, try applying this solution.

Please note that the solution might be outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 0 reply, has 0 voices.

Last updated by Shekhar Bhandari 4 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
February 20, 2025 at 7:08 am

emadK-2

Background of the issue:
I am trying to use WooCommerce PDF Invoices & Packing Slips by welaunch with WPML on my site hidden link. I want to translate the invoice content.

Symptoms:
The invoice content cannot be translated even if I have translated all the strings.

Questions:
Is WooCommerce PDF Invoices & Packing Slips by welaunch compatible with WPML?

February 20, 2025 at 8:00 am
February 20, 2025 at 8:45 am #16728107

emadK-2

Hello,

I have installed the plugin and translated the related strings.

I discovered something.
If you create the order from the WordPress dashboard, the invoice will not be translated properly.

When the customer places the order, the invoice is issued correctly in the second language, but still, it's not able to reflect some elements like the product details table.
Please check the screenshot to see what I meant.

Please take a look if you can help.
Thank you.

Emad

Screenshot_303.png
February 20, 2025 at 9:45 am #16728526

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

- Go to WPML->String Translations
- Click on Not seeing strings that you are looking for? tab
- Click on “Translate text in admin screens”
- Search for the strings there and see if you can find them.
- If you can find it, select it and add it using the “Add to string translation” button
- Click on “Return to String Translations”
- Translate it

This should fix the issue.

Look forward to your reply.

Thanks

February 20, 2025 at 1:50 pm #16729957

emadK-2

Hello,

I did that, and I added everything not included in String Translation.
Some of them were reflected on the invoice, and some were not.

Can you please check?

Thank you again.

February 20, 2025 at 2:24 pm #16730232

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I don't see all contents being translated, there are multiple instances of the same strings so I would suggest you to translate the strings with name [woocommerce_pdf_invoices_options]contentItems...

I tried it on sandbox site and it works for me.

Let me know if this helps.

Thanks

February 20, 2025 at 4:59 pm #16730810

emadK-2

Hello,

Thank you for following up.
I already applied that on my main website, and the issue has already been solved.

Thank you so much.

February 21, 2025 at 2:56 am #16732012

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Thank you for confirming.

Thanks