• Resolved ipoblete

    (@ipoblete)


    Hi,
    thank you for new update. New good options added. However, since the last update, the phone number is not displayed on the lebel page. I have activated the option to show the phone if the field is not empty. Not sure whats not working,
    any idea?
    Best Regards,

    • This topic was modified 2 years, 9 months ago by ipoblete.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dima Pavlenko

    (@dima411)

    Hi,

    In short: I’m going to adjust the plugin and keep this thread open until I do. I understand it’s urgent so I’m working on it.

    Sorry for the inconvenience but yes, there was a breaking change (mentioned in the Change Log section under Development tab in the plugin repository), which should have used the WooCommerce WC_Order class shipping_phone field, rather than the previously used billing_phone.

    Initialy, the reason for this change was that someone contacted me directly through my website, mentioned he’s not getting the shipping phone field on the label. I recalled there was never a dedicated shipping phone field in WooCommerce, but only billing phone. I even had a comment to myself in the plugin code that it’s weired.

    After some research, turned out WooCommerce 5.6 release, around August 2021, added get_shipping_phone() method to the WC_Order class, and there actually is a shipping phone field, if you click the shipping details edit button in some order.

    I guess for some reason, WooCommerce duplicates the billing details to shipping details, except the phone field, which is left empty. Furthermore, most themes don’t expose yet that dedicated shipping phone input field (when “Ship to a different address?” checkbox is selected, showing a separate shipping address form).

    So, for now I guess I’ll simply use the billing phone if the shipping phone is empty. Hopefully it won’t lead to too many problems, since billing person’s phone might be different from the receiving one. At least until WooCoommerce and themes figure it out. Anyway this solution should work the same as previous versions and handle the new cases.

    Dima

    Thread Starter ipoblete

    (@ipoblete)

    Hi,
    thank you for this reply. Yes, you’re right. I did a test with a record that had only billing information where woocommerce copied same data to shipping info. Manually copying the phone in the shipping address info works and phone number appears on the label.
    Regards,

    Plugin Author Dima Pavlenko

    (@dima411)

    Thank you for your patience and testing,

    I pushed the small fix, please update the plugin to 1.0.5 version.

    If you still find any unexpected issues, please let me know (preferably via my website or Facebook messenger so I can reply faster).

    Dima

    Thread Starter ipoblete

    (@ipoblete)

    Hi,
    great, fixed,
    Best Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘phone missing since last update’ is closed to new replies.