• Resolved igracke2

    (@igracke2)


    Hello ,

    I have free version of this plugin. I’ve managed to translate to my language almost everything in PDF Invoice form that I need using invoice.php code, but I can’t find a way to translate these 4 words anywhere: “Invoice”, “Subtotal”, “Total” and “Shipping”. Are they located in some other file where I can re-type them manually? I’ve also tried Loco translate but it didn’t change anything.

    Can I somehow translate these words without buying premium package? And can I delete completely “Subtotal” and “Shipping” fields, as I don’t need them? Thanks to whoever answer this question!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! These translations come directly from WooCommerce (they are the same as displayed in the WooCommerce email). If you translate them in the ‘woocommerce’ textdomain, they should turn up translated in the PDF too (unless you are using a multilingual plugin, in that case it can become a bit more complex – for WPML or Polylang you need the Professional extension).

    You can hide subtotal and shipping with CSS:

    
    table.totals tr.cart_subtotal,
    table.totals tr.shipping {
        display: none;
    }
    

    Using custom styles

    Thread Starter igracke2

    (@igracke2)

    ok. Thanks

    Thread Starter igracke2

    (@igracke2)

    Hello!

    I’ve managed to use these code you gave me and I’ve successfully hid subtotal and shipping in PDF Invoice form, which is great! But I just can’t translate words “Invoice” and “Total” anywhere and I mean anywhere. Is there a way to insert custom lines (like the ones you gave me) directly in style.css which will translate these words in PDF file? Is this somehow possible in free version or do we have to buy Premium? Polylang has messed up the whole site ??

    Thank you so much.

    Plugin Contributor Ewout

    (@pomegranate)

    “Invoice” is a core string that is part of the language pack of this plugin (WooCommerce PDF Invoices & Packing Slips). “Total” is part of WooCommerce itself.
    You can change or add translations with a plugin like Loco Translate.

    However, for full multilingual support (like Polylang which you mentioned but also WPML), you need the Professional extension. Also note that for Polylang to work correctly with WooCommerce (regardless of the PDF invoice plugin), I think you always need Polylang for WooCommerce.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translate words Invoice, Subtotal, Total’ is closed to new replies.