• Hi, upon some testing I noticed that the plugin doesn’t work properly when HPOS is enabled. It seems that although there are a few lines of code which marks the plugin as HPOS compatible it does not use HPOS-compatible ways of retrieving order data.
    To be more specific when HPOS is enabled 17TRACK tracking input box does not appear on the order page.

Viewing 1 replies (of 1 total)
  • Thread Starter titsmaker

    (@titsmaker)

    Probably following line should be updated:
    add_meta_box('woocommerce-yqtrack', __('17TRACK', 'wc_yqtrack'), array(&$this, 'meta_box'), 'shop_order', 'side', 'high');

    Namely 'shop_order' should be changed to 'woocommerce_page_wc-orders' if HPOS is enabled.

    Also supposedly save metabox code should be updated and all get_post_meta should be replaced with $order->get_meta.

    This article https://developer.woocommerce.com/docs/hpos-extension-recipe-book/ contains some general information regarding making plugin HPOS-compatible.

    • This reply was modified 3 months, 3 weeks ago by titsmaker.
    • This reply was modified 3 months, 3 weeks ago by titsmaker.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.