• How can I add date, client e-mail, phone client in “Page header text” or Page footer text

    • This topic was modified 4 years, 3 months ago by inomi.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    Do you plan to export only one order ?
    thanks, Alex

    Thread Starter inomi

    (@inomi)

    Yes, i want export only one order

    Plugin Author algol.plus

    (@algolplus)

    Please, put this code to “Misc Settings: and tweak it.
    $order is https://docs.woocommerce.com/wc-apidocs/class-WC_Order.html

    add_filter("woe_formatter_pdf_properties", function($settings){
    $order = new WC_Order(WC_Order_Export_Engine::$order_id);
    $full_name = $order->get_billing_first_name(). " " .$order->get_billing_last_name();
    $settings["header"]["title"] = $full_name; //add more $order fields
    return $settings;
    });
    Thread Starter inomi

    (@inomi)

    Great ?? but how can i use new line beceuse <br> doesn’t work

    add_filter("woe_formatter_pdf_properties", function($settings){
    $order = new WC_Order(WC_Order_Export_Engine::$order_id);
    $full_name = $order->get_billing_first_name(). " " .$order->get_billing_last_name();
    $email = $order->get_billing_email();
    $settings["header"]["title"] = $full_name."<br>".$email; 
    return $settings;
    });
    • This reply was modified 4 years, 3 months ago by inomi.
    • This reply was modified 4 years, 3 months ago by inomi.
    Plugin Author algol.plus

    (@algolplus)

    Please, use “\n”

    Thread Starter inomi

    (@inomi)

    If I use $settings["header"]["title"] = $full_name."\n".$email; doesn’t work.

    Plugin Author algol.plus

    (@algolplus)

    We’ll check and provide solution only on Monday.

    Plugin Author algol.plus

    (@algolplus)

    Could you submit ticket to https://algolplus.freshdesk.com/ ?
    We’ll provide modified version for tests.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘add date, e-mail in “Page header text”’ is closed to new replies.