• Resolved samuelabrooks

    (@samuelabrooks)


    Hey!

    We’re currently running Advanced Order Export (pro) along with Woocommerce subscriptions which has been fantastic so far!

    One slight issue we’ve run into is that because of the way Woocommerce Subscriptions works with renewal days (we don’t charge customers for their subscription product order until a certain day of the week) it’ll include products in the order export that haven’t actually been peen paid for then double up on orders in the export panel when Woocommerce automatically creates another order on the renewal day

    For example if a customer orders a one time product and a subscription product they will be charged for the one time product but not the subscription product but both will still show in the same order. When renewal day comes along for subscription products Woocommerce subscriptions automatically creates a new processing order for that customers subscription. When we go to export with your plugin we get a double up on the subscription product because it grabs the unpaid subscription order as well.

    Basically we want to exclude the unpaid products from an order and only include paid products. Apologies for any confusion please ask me expand upon anything if it’s not making sense.

    Really appreciate any assistance!

    • This topic was modified 5 years, 11 months ago by samuelabrooks.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi Samuel

    Can you upload the screenshots of “items” section for both orders in helpdesk ?

    thanks, Alex

    Thread Starter samuelabrooks

    (@samuelabrooks)

    Done! 🙂

    Plugin Author algol.plus

    (@algolplus)

    thanks, I’ve replied.

    Thread Starter samuelabrooks

    (@samuelabrooks)

    Legend, thank you again Alex!

    For anyone else looking for the same solution here’s the code Alex put together 🙂

    add_filter(‘woe_skip_order_item’, function($skip, $product, $item, $item_meta, $post) {
    if( $product->get_type() == “subscription” AND $item[‘line_total’] ==0)
    $skip = true;
    return $skip;
    },10,5);

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Excluding unpaid products from export’ is closed to new replies.