• Resolved rossfabio

    (@rossfabio)


    Hi everyone, the plugin is not exporting the orders when WooCommerce HPOS setting is active, to be able to export i need to first deactivate the setting, export, and then go reactivate it.

    It doesn’t bother me for now since i export once a month, but i worry about it for when WooCommerce will make HPOS the only available setting

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    hello

    Our plugin correctly works with HPOS mode, nobody reported similar problem in past.

    What WooCommerce version do you use?

    Thread Starter rossfabio

    (@rossfabio)

    Hi, i’m really sorry…i went back to double check settings. Turns out i was using _order_total <> 0.00 to filter orders and apparently HPOS removes that custom field entirely, if i switch back to legacy order storage it gets used and works

    I momentarily solved by removing this filter, but it would be nice to be able to filter orders by total amount among the settings, i couldn’t find a way to do it…maybe there already is one?

    Many thanks!

    Plugin Author algol.plus

    (@algolplus)

    please, open section “Misc Settings”(at bottom) and add this code

    // export only orders with total > 0
    add_filter( 'woe_order_export_started', function ( $order_id ) {
    $order = new WC_Order($order_id);
    return ($order->get_total() > 0.00) ? $order_id: false;
    });

    • This reply was modified 1 month, 2 weeks ago by algol.plus.
    Thread Starter rossfabio

    (@rossfabio)

    Thank you very much!

    • This reply was modified 1 month, 2 weeks ago by rossfabio.
    Plugin Author algol.plus

    (@algolplus)

    You’re welcome

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.