• Resolved slade470

    (@slade470)


    Getting this error on woocommerce custom email:
    Function id was called incorrectly. Order properties should not be accessed directly.

    Full error Image:
    https://prnt.sc/RmI2MiHWNPg7

    I have been trying to add a custom template in customer-completed-order.php.
    I have copied this file in my theme/woocommerce/email to avoid getting changed when woo-commerce is update.

    i am trying to add the template in the file located in the same folder my-theme/woocommerce/email. using this way.

    include(‘order-email-license-data.php’);

    it works ok, but also displays error messages in the customer completed order notification email when debugging on enabled in wp-config.

    Let me know how can I include this “order-email-license-data.php” without triggering any error.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function id was called incorrectly. Order properties should not be accessed dire’ is closed to new replies.