• Resolved Niek

    (@nvomedia)


    Hi,

    I change the Woocommerce with the woocommerce_order_number function. That works perfectly.
    Now I want an function to get the changed ordernumber to export with WP All Export. Is there an function available to get the changed order number with the order ID (not number)?
    I can use PHP functions in WP All Export to change the value what is found, so that’s not a problem.

Viewing 3 replies - 1 through 3 (of 3 total)
  • dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey there @nvomedia

    I think you may want to ask the team who supports WP All Export to see how they can help here. Your query is very customized and I’m unsure if you’ll be able to get support for that in this forum.

    For advice on this, I would recommend reaching out to one of our vetted developers on our Customizations page (https://woocommerce.com/customizations) or join the WooCommerce Slack Community (https://woocommerce.com/community-slack/).

    Let me know how you get on!

    Thanks,

    Thread Starter Niek

    (@nvomedia)

    Hi @dougaitken,

    Thanks for your fast reply.
    I have contacted the developers of WP All Export. Maybe they have an solution for this. If that isn’t gonna working, I will try to create a function by my own and ask the Slack Community to take a look into it (if that is permitted :))

    Thread Starter Niek

    (@nvomedia)

    I have solved it.
    Actually is was very simple.
    I added this function into WP All Export and make the field OrderID an value which is returned by an function.

    global $woocommerce;
    function get_order_id($id){
    	$order = new WC_Order($id);
    	return $order->get_order_number();
    }
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Function to get changed ordernumber’ is closed to new replies.