• I would like to export only certain conditions

    1. If order is Processing
    2. Only if one type of product category in order

    i.e
    if the category is in the order but there is other categories in the the order “IGNORE IT”

    Thanks

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

    (@algolplus)

    Hello

    1. use “Filter by order” and set status
    2. use “Filter by product”, uncheck “Export all items from the order” and set product category.

    thanks, Alex

    • This reply was modified 6 years, 11 months ago by algol.plus.
    Thread Starter prodograw

    (@prodograw)

    Hi sorry maybe i didnt explain myself correctly

    what you suggested yes does work

    but i do not want to export it if there is any other product in the order at all

    basically we have 2 places we dispatch from. if the order only has this category export it

    Plugin Author algol.plus

    (@algolplus)

    Please, look at 1st code https://algolplus.com/plugins/code-samples/#filter_orders

    You should call $order->get_items , call wc_get_product_category_list() and check categories for purchased products.

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

The topic ‘Export Certain Conditions’ is closed to new replies.