• Resolved Pauk

    (@paukmentor)


    Hi team, great plugin! However, I realised, when using the Gutenberg Invoice Editor, that the order number block is using the woocommerce order ID and not the woocommerce custom sequential number. So $order = wc_get_order( $order_id ) should somehow be changed to $order->get_order_number()

    Is that possible? Maybe via a php code snippet?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support rzepsen

    (@rzepsen)

    Hi, @paukmentor

    Thank you for feedback.

    We apologize for the inconvenience, the problem has been reported, and our technicians are trying to resolve it as soon as possible. As soon as I receive further information on this subject, I will notify you immediately.

    In case of further questions, please contact me.

    Best Regards,

    Plugin Support rzepsen

    (@rzepsen)

    Hi @paukmentor

    I just want to inform you that we have just released the Flexible PDF Invoices for WooCommerce & WordPress 6.2.3 update containing the proper fixes for the problem you’ve reported. So please simply do the update.

    If the WordPress updater hasn’t informed you about the newer versions available, please check for the updates manually choosing the Dashboard tab > Updates > Check Again option.

    Please let me know if you have any further questions or if there is something more I can help you with.

    Kind regards,

    Thread Starter Pauk

    (@paukmentor)

    Hi @rzepsen , thanks for the quick fix!
    I wanted to note another bug related to the same issue:
    When inputting the short tag {OrderNumber} in the template’s “Document Prefix” or “Document Suffix” the file is generated with shor ttag name and not picking up the order number – it just displays “Invoice {OrderNumber}” – However, inside in the generated pdf it seems to pick up the number correctly under the “DocumentNumber” which is the filename to my understanding; this shows “Invoice 1 12345”.

    Lastly, I have toggled off the sequential numbers option in the settings for your plugin, however, the “Next document number” is not disabled in the template for some reason? All generated files includes a sequential number – regardless of this setting?

    Again, thanks for your support, and an amazing plugin!

    BR,

    Plugin Support rzepsen

    (@rzepsen)

    Hi @paukmentor

    It seems that you are right, and we will solve this problem in a similar way as before. Please wait for another message. However, due to the approaching weekend, you can expect a message on Monday at the earliest.

    Plugin Support rzepsen

    (@rzepsen)

    HI @paukmentor

    I’m back with the arrangements.

    According to the Flexible Invoices documentation, the {OrderNumber} placeholder cannot be used in the invoice title or document numbering settings, so it will not work in this case.

    In the (Beta) Gutenberg Invoice Editor, the invoice title and numbering can only be customized using the built-in document numbering settings, such as:

    • Prefix and Suffix fields
    • Automatic document number
    • Date placeholders like {DD}, {MM}, {YYYY}

    If your goal is to include the WooCommerce order number in the invoice title, Flexible Invoices provides a different, supported way to achieve this. You can configure the plugin to use sequential order numbers and adjust the invoice numbering settings so that the order number is reflected in the invoice title, as described in the documentation.

    This approach is the only officially supported method, and {OrderNumber} cannot be used directly in the invoice title field.

    If the solution I shared is not sufficient for your needs, I can report this as a feature request to the development team so they can consider adding native support for {OrderNumber} in the invoice title in the future.

    Documentation references:

    Thread Starter Pauk

    (@paukmentor)

    Hi @rzepsen , thanks for your reply. Yes, would happily see it added as a feature request. It would be great if you could add the {OrderNumber} functionality to document prefix and suffix. I can imagine a lot of other users would expect the same shorttag availability in this section, and having your customer order number flow set up and working in the template, but then not working in the title of the document is a bit frustrating (not everyone wish to enable your plugins sequential number function – and might be using another system for this purposes already). Also, if having short tags working for date placeholders for document prefixes and suffixes, I don’t see any reason why not to add your {OrderNumber} option here, since we can now confirm it working inside the template with custom sequential number ordering via $order->get_order_number() in your latest update πŸ™‚ Hopefully you would consider this for a future update

    BR,

    Plugin Support rzepsen

    (@rzepsen)

    Dear @paukmentor

    Thank you for your detailed feedback. I have passed this feature request to our plugin development team for consideration.

    I have also added your email address to the list of customers who are interested in this type of functionality. If this option is added to the plugin in a future update, I will make sure to inform you.

    We appreciate you taking the time to share your use case and suggestions β€” feedback like this is very valuable for improving the plugin.

    If you have any further ideas or questions, please feel free to stay in touch.

    Plugin Support rzepsen

    (@rzepsen)

    Hi @paukmentor

    As we haven’t got any replies, I’m marking this topic as resolved for now.

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

You must be logged in to reply to this topic.