• Hi,

    I am trying to export refunds from April 2018 I have used the following code:

    add_action('admin_init', function($statuses){
    WC_Order_Export_Data_Extractor_UI::$object_type='shop_order_refund';
    WC_Order_Export_Data_Extractor::$object_type='shop_order_refund';
    } );

    Which works fine but for the older orders it doesn’t seem to be getting the Line Total or Line Tax whats the best way to get the refunded amount for older orders I am assuming its not working because Woo have updated something in the 2 years?

    Thanks for your help

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

    (@algolplus)

    Hi
    I don’t remember significant changes in last 2 years.

    is checkbox “Skip fully refunded items” off (in section “Filter by product”)?

    thanks, Alex

    Thread Starter MaxUrbanMedia

    (@maxurbanmedia)

    Thanks Alex,

    Still the same output columns are empty.

    Plugin Author algol.plus

    (@algolplus)

    Did you do major update for WooCommerce 2 years ago ?

    you can submit your settings to https://algolplus.freshdesk.com/
    (use tab Tools to get them). But I’m unsure if it’s bug.

    Thread Starter MaxUrbanMedia

    (@maxurbanmedia)

    Thanks Alex, submitted

    I am sure they would of its a Client we have only had the site for a year but Woo commerce is up to date

    Plugin Author algol.plus

    (@algolplus)

    To export refunds only using FREE version — don’t use PHP code.

    Follow this way
    1. edit url and replace
    admin.php?page=wc-order-export
    with
    admin.php?page=wc-order-export&woe_post_type=shop_order_refund
    2. reload page
    3. press button “Reset settings”

    Pro version has selector “order type” at tab Profiles

    • This reply was modified 4 years, 4 months ago by algol.plus.
    • This reply was modified 4 years, 4 months ago by algol.plus.
    Thread Starter MaxUrbanMedia

    (@maxurbanmedia)

    Thanks Alex I will give it a go!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Export Old Refunds’ is closed to new replies.