• Hello, first of all thank you for the amazing plugin. It works like a charm.

    Is it possible to export first-time customers? Let’s say for example if a certain phone number or email has been used for the first time.

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

    (@algolplus)

    Hello

    you should program it .
    please, visit https://docs.algolplus.com/algol_order_export/filters-orders/ and adapt 1st code.

    you should get something like this code, I didn’t test it!

    add_filter( 'woe_order_export_started',  function ( $order_id ) { 
      $order = new WC_Order($order_id);
      $orders = wc_get_orders( array(
          'billing_email' => $order->get_billing_email(),
          'return' => 'ids',
          'limit' => '2',
      ) );
      return   count($orders)==1 ? $order_id: false;
    });
Viewing 1 replies (of 1 total)

The topic ‘Export first-time customers’ is closed to new replies.