Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor natekinkead

    (@natekinkead)

    @xlplugins,

    Thanks for letting me know about that.

    If you have any insight to offer, we would appreciate the help. At first glance, it looks like a simple notice that’s not best practice to access the object property directly. But, perhaps, I need to use $order->get_user_id() and then get_customer() from that. Does that sound right to you?

    I’ll take a closer look probably within the week. Thanks.

    Thread Starter XLPlugins

    (@xlplugins)

    Hi,@natekinkead

    Yes, from WC3.0, We should not access order object properties directly.

    I suggest you to use getter functions to access the data like $order->get_billing_email(); to all the data you are using.

    Thanks
    Daman

    Plugin Contributor natekinkead

    (@natekinkead)

    @xlplugins, we’ve released an update which uses WooCommerce 3.x getter methods with WooCommerce 2.x backward compatibility.

    Thanks for bringing this to our attention.

    Thread Starter XLPlugins

    (@xlplugins)

    Good to hear that ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Notice being thrown’ is closed to new replies.