• javiconzentra

    (@javiconzentra)


    Estoy integrando este plugin con PDF Invoices & Packing Slips for WooCommerce – Professional (Pago) Este plugin genera facturas y en PDF. LA versión Professional realiza facturas de devolución

    El problema:

    Al seleccionar los campos a exportar, si a?ades un campo nuevo que no sea predefinido, no aparecen todos. Solo aparecen de los pedidos creados. (Type=shop_order.)

    class-wc-order-export-data-extrator.php

    Class: WC_Order_Export_Data_Extractor

    static $object_types = ‘ \’shop_order\’, \’shop_order_refund\”;

    Function: get_order_custom_fields()

    $total_orders = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->posts}  WHERE post_type IN (" . self::$object_types . ")" );
    
    $order_ids   = $wpdb->get_col( "SELECT  ID FROM {$wpdb->posts} WHERE post_type IN (" . self::$object_types . ") ORDER BY post_date DESC LIMIT {$limit}" );	

    Esto a?ade los ids de pedidos reembolsados y posteriormente a?ade los metas relacionados a estos pedidos que son diferentes a los pedidos completados.

    Necesitaría que incluyeran este código o el que veáis conveniente para que aparezcan todos los códigos en el desplegable.

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

    (@algolplus)

    Hi

    I understand your needs , but you can use textbox to type any key
    https://docs.algolplus.com/wp-content/uploads/add-field-order1.png

    We don’t plan to modify existing code ,
    as we added “refunds” export as part of pro version .

    thanks, Alex

    • This reply was modified 1 year ago by algol.plus.
    Plugin Author algol.plus

    (@algolplus)

    Thread Starter javiconzentra

    (@javiconzentra)

    Thanks, I can use this to add it to the list.
    https://www.ads-software.com/support/topic/no-aparecen-todos-los-campos-a-anadir/

    Another questions:
    – This hook adds the fields to “filter by” but does not filter correctly.
    As you can see, orders without invoices refused should be behind

    • Filter by refunded date
      I don’t know if it can be done with a hook or with the PRO version. It does not appear in the DEMO. I Like only list a refuse orders.

    I have tried adding a condition for custom fields so that they only appear refunded by putting _wcpdf_credit_note_number <> Empty but the field does not appear.

    Thanks

    Plugin Author algol.plus

    (@algolplus)

    please, use this code to export only refunds

    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";
    } );

    • This reply was modified 1 year ago by algol.plus.
    Thread Starter javiconzentra

    (@javiconzentra)

    Thanks, this shows invoices with a refunded status always. But I can’t show the rest and the refunded fields don’t appear.

    I would need to create two profiles, one showing invoices and the other the refunded invoices. Those refunded may be in a refunded or completed state, since some are partially refunded, some product.

    In the code of the first url (https://docs.algolplus.com/algol_order_export/woocommerce-pdf-invoices-packing-slips/) As the first code does not include ‘wcpdf_credit_note_number’ in Custom Fields I have used ‘_wcpdf_credit_note_creation_trigger <> empty ‘. So far solved.

    But I still need to order. The new fields are included in the sorting section. But they don’t work. If I sort by Credit Note Number or Credit Note Date Formatted, it doesn’t sort.

    You also cannot filter by refund date. It would be interesting to be able to filter by those dates, even if it is in the PRO version PS: come back live demo doesn’t work.

    Thank you so much

    Plugin Author algol.plus

    (@algolplus)

    Hello

    You can create 2 profiles only using pro version.

    We can check other issues –
    if you submit “PDF Invoices & Packing Slips for WooCommerce – Professional” as new ticket to https://algolplus.freshdesk.com/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No aparecen todos los campos a a?adir’ is closed to new replies.