Fatal error after plugin update to 3.3.1

[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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer