• Resolved exponeaacc

    (@exponeaacc)


    Hello!

    Your plugin is wonderful, but I have one question – is it possible to add to the export if the product that someone ordered was set to “Backorder true/false” when he submitted his order?

    So for example if someone was ordering a blue, red and green shirt and the green shirt was already out of stock, the export would show that the green one was backordered.

    These are the export settings: https://i.imgur.com/QzewoGD.jpg
    And this is what I would like to achieve: https://i.imgur.com/fx62upB.jpg (on the left you can see the order from the Woocommerce backend, on the right is the export where I would like to see the “Backordered: 1” values.

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

    (@algolplus)

    Hello

    You should open “Setup fields”, open section “Products”, click “Add field” , select “Backordered” in 2nd dropdown, type column name, create field and drag it to export.

    But you will get “1” or empty.
    To convert these values to Yes/No – add following code to section “Misc Settings”.
    thanks, Alex

    add_filter('woe_get_order_product_value_Backordered', function ($value, $order, $item, $product,$Item_meta) {
    	return $value ? "Yes" : "No";
    }, 10, 5);
    Thread Starter exponeaacc

    (@exponeaacc)

    Thank you, works flawlessly!

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

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

The topic ‘Export backorder info on items’ is closed to new replies.