[ad_1]
Hi @izabela9ti
It seems that you’re using a custom PDF template that needs to be updated on line 84 here:
/app/web/app/themes/sch/woocommerce/pdf/SCHInvoice/invoice.php (84)
Could you paste that line here?
Hi Alex,
Thanks for taking time to answer, I'm kind of new here and it really matters. :)
Line 84 would be the one written in bold. I looked at it but I could not understand the issue.
<tr class="order-date">
<th><?php _e( 'Order Date:', 'schminkbar' ); ?></th>
<td><?php
if ( $this->is_refund( $this->order ) ) {
$parent_order = $this->get_refund_parent( $this->order );
$order_date = WCX_Order::get_prop( $parent_order, 'date_created' );
} else {
$order_date = WCX_Order::get_prop( $this->order, 'date_created' );
}
echo date_format( $order_date, 'F j, Y' );
?></
You can’t use WCX_Order
anymore, we have removed the legacy compatibility classes on version 3.2.2, you must update your custom template by doing a copy of the default Simple template and add the necessary changes.
Perfect, thank you allot Alex.