• Hello, would be nice to add the invoice_id into the order meta fields, I can see in your actual code that you have this planned in TODO.

    /holded-integration/src/Services/OrderService.php

    try {
                $order = OrderAdapter::fromWoocommerceToDTO($WCOrder);
    
                // Create / Update salesorder.
                $holdedInvoiceId = $WCOrder->get_meta('_holdedwc_invoice_id');
                if (empty($holdedInvoiceId)) {
                    $this->holdedSDK->syncOrder($order);
    
                // TODO: Implement async calls to the plugin in order to save this ID
                    //if (is_string($result)) {
                    //    update_post_meta($orderId, '_holdedwc_invoice_id', $result);
                    //
                    //    $result = true;
                    //}
                } else {
                    $this->holdedSDK->syncOrder($order);
                }
    
                return true;
            } catch (\Exception $e) {
            }

    Please implement this feature for stores to retrieve the invoice ID and let us ask the API to send/download the document.

    This is mandatory, all WooCommerce orders must have an invoice ID match and the store owner needs to see that information on each order.

    Thank you,
    Daniel.

  • The topic ‘Please add the invoice id in the order meta once created’ is closed to new replies.