• Resolved macpheek

    (@macpheek)


    Hi, is there any way I can change the date format on my delivery notes to day/month/year?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author webtoffee

    (@webtoffee)

    Hi @macpheek,

    To alter the date format, please copy below code snippet to your active theme’s functions.php.

    add_filter('wf_pklist_alter_order_date', 'wt_pklist_alter_order_date', 10, 3);
    function wt_pklist_alter_order_date($order_date, $template_type, $order)
    {
    	if($template_type=='deliverynote')
    	{
    		$order_date=get_the_date('d/m/Y', $order->get_id());
    	}
    	return $order_date;
    }
    Thread Starter macpheek

    (@macpheek)

    Hi, that worked a treat thanks so much! 🙂

    Plugin Author webtoffee

    (@webtoffee)

    Hi @macpheek,

    Great. Please leave us a review if you like the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.