• Resolved abuelfid

    (@abuelfid)


    Hello,
    We have pruducts with arabic names. but as we work in europe we need invoices in English.
    We use WPML and the pages main language is arabic. the other languages are german and english.However the invoices shall be in english.

    Now we have RTL support deactivated. The customers get thier invocies in arabic and with a RTL layout.

    can we get this off? so that invocies can be issued in one language?
    Best regards

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @abuelfid,

    The invoice will be generated based on the user’s default language.

    Thread Starter abuelfid

    (@abuelfid)

    Thank you for your reply.
    this means there is no way to control this? even if i have to edit some php?
    that would be great! thank you. if this works we will be going to buy the premium version.

    best

    Plugin Author WebToffee

    (@webtoffee)

    Hi @abuelfid,

    Please try adding below code to your active theme’s functions.php

    add_filter('wf_pklist_alter_pdf_file_name','wf_pklist_alter_pdf_file_name',10,3);
    function wf_pklist_alter_pdf_file_name($name, $template_type, $order_ids)
    {
    	if($template_type=='invoice')
    	{
    		switch_to_locale('en_US');
    	}
    	return $name;
    }
    Thread Starter abuelfid

    (@abuelfid)

    much apreciated. i ll try it.
    best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disabling WPML and rtl support while mentaining arabic product names in invoices’ is closed to new replies.