• Resolved tomascarlo

    (@tomascarlo)


    Dear support,
    I enabled debug printouts on my website, that runs woocommerce 3.2.6 and your plugin in the last available version.
    when I complete an order, in the thank-you page, I get the following errors:

    PHP Notice: billing_email was called incorrectly. Order properties should not be accessed directly.
    PHP Notice: billing_first_name was called incorrectly. Order properties should not be accessed directly.
    PHP Notice: billing_last_name was called incorrectly. Order properties should not be accessed directly.

    It seems that they are raised by your plugin, precisely in
    includes/classes/utils/Ecommerce.php, in the wooCommerceThankYou() function, lines 123-126.

    Should not those lines call the $order->get_billing_* methods?

    thank you in advance,
    Carlo

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor intellywp

    (@intellywp)

    Hi @tomascarlo,
    thank you for reporting this issue.

    We are working to release an update as soon as possible

    Meantime may i ask you, after a plugin backup, to edit the following file

    /wp-content/plugins/tracking-code-manager/includes/classes/utils/Ecommerce.php

    and replace, from line 123 to line 127

    $purchase->email=$order->billing_email;
    $purchase->fullname=$order->billing_first_name;
    if($order->billing_last_name!=”) {
    $purchase->fullname.=’ ‘.$order->billing_last_name;
    }

    with

    $purchase->email=$order->get_billing_email();
    $purchase->fullname=$order->get_billing_first_name();
    if($order->get_billing_last_name()!=”) {
    $purchase->fullname.=’ ‘.$order->get_billing_last_name();
    }

    Let me know if you have any additional questions and will be a pleasure to help you.

    Cheers

    Alex

    Thread Starter tomascarlo

    (@tomascarlo)

    Thanks Alex,

    I’ll wait for your update!
    In the meanwhile this fix is working well.

    Thank you again
    Carlo

    Plugin Contributor intellywp

    (@intellywp)

    Hi Carlo

    You’re welcome ??

    If you still need help, we’re more than happy to assist you.

    Cheers

    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce 3 compatibility’ is closed to new replies.