• Resolved bartkal

    (@bartkal)


    Dear support,

    Im using Custom Order Numbers for WooCommerce plugin, ane when is active with Flexible Invoices there is a problem Ajax.
    After last update I see that error with opening invoice disapeared, but when you generate the invoice and you have set option turned on: Add number ordered to invoice in Woocommerce -> General options then in Comments on invoice ordered number is still 0.

    I can make few shop orders and everytime this value is 0 (no order number defined via Custom Order Numbers)

    I have already reported to support who is responsible for that plugin, I had live call and after few days received answer:

    —————–

    We are providing you the solution to fix this issue and for that, you would need to make the changes in the file BaseDecorator.php ( located at: wp-content\plugins\flexible-invoices\vendor_prefixed\wpdesk\flexible-invoices-core\src\Invoices\Decorators\ )
    
    On line number 409, there currently the code is 
    
    public function get_order_number() : int 
    
    which needs to be changed to this : 
    
    public function get_order_number() : string

    ——————-

    I do not if this solution solving ajax problem because after your update ajax disapeared but problem with 0 is still there.

    I can attach some screenshots, but please let me know in which way?

    Best Regards
    Bart

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

    (@rzepsen)

    Hello @bartkal,

    I’m wondering first of all if the problem you describe can’t be solved by enabling an option from our plugin. I’m already explaining what this is all about.

    Our plugin has a Sequential Order Number feature. It makes each sequential WooCommerce order have sequential numbers. Is this what you are using the Custom Order Numbers for WooCommerce plugin for?

    If so, please check if enabling this option, will solve your problem. Please go to Invoices > Settings > WooCommerce > General and enable this option Sequential Order Numbers.

    If this solves the problem, you can disable the Custom Order Numbers for WooCommerce plugin. However, if you are using this plugin for more advanced order number combinations and cannot disable it, please contact me again. I will then consult the problem with our developer.

    Best regards

    Thread Starter bartkal

    (@bartkal)

    Hello @rzepsen,

    Thx for your fast response.
    Yes, you are right, Flexible Invoices plugin has this feature and of course I already had enabled and tested before I have created the ticket.

    It would be completely enough but I would like more advanced features, like:
    – number should change and start from 1 every new month,
    – custom number like MK/1, MK/2 etc

    Now after last update, ajax problem disapear but number order on invoice is 0, no matter the orders quantity.

    I would be appreciate you would consult it with developer.

    Maybe, you / WP Desk, could create such solution like custom order number or add this features to Flexible Invoices ??

    Best Regards
    Bart

    Plugin Support rzepsen

    (@rzepsen)

    Hello @bartkal

    number should change and start from 1 every new month

    You can do this, just go to Invoices > Settings >Documents > Invoice.

    Select Number Reset and set it to Monthly.

    custom number like MK/1, MK/2 etc

    You can also achieve this. Exactly the same place in the plugin settings, only select the Prefix field and type MK/ into it. Invoices will then be numbered MK/1, MK/2, MK/3 sequentially.

    Regarding the number order on the invoice. Do you have the order number option checked, which adds the order number to the invoice? You need to go to Invoices > Settings > WooCommerce > General. The option I am writing about will be in that panel.

    If you have this option checked and 0 appears as an order number on the invoice, please contact me again.

    Best regards

    Thread Starter bartkal

    (@bartkal)

    Hi @rzepsen,

    number should change and start from 1 every new month
    You can do this, just go to Invoices > Settings >Documents > Invoice.
    Select Number Reset and set it to Monthly.
    custom number like MK/1, MK/2 etc

    I had those options:
    – Prefix: Rachunek MK/{YYYY}/{MM}/
    – reset numbers: monthly
    – in Woocommerce tab: Number order: Add order numbers to invoices -> yes

    I think, that those options are for invoices and this works great, every invoice is generated with prefix and proper sequential number

    I have made a new order in the shop and receive order number 22. So, if this first order is in February, than order should have 1 or MK/1

    I hope, explained in the proper way. If no, can we make a live call and then explain again

    Best Regards
    Bart

    Plugin Support rzepsen

    (@rzepsen)

    Hello @bartkal

    Please tell us which version of our plugin you are using? The last one is 5.6.3.

    Best regards

    Thread Starter bartkal

    (@bartkal)

    Hello @rzepsen,

    Yes, I’m using 5.6.3 version.

    Best Regards

    Thread Starter bartkal

    (@bartkal)

    Hello @rzepsen,

    I have activated Custom order plugin and made a new order in online shop.
    New order received MK/3 number
    Then, I have generated and invoice and under table with prices etc there is:

    Uwagi (Notice)
    Podstawa zwolnienia z VAT: art. 113 ust. 1 i 9
    Numer zamówienia: 0 (Order number: 0)

    Should be Numer zamówienia: MK/3 (Order number: MK/3)

    Best Regards

    Plugin Support rzepsen

    (@rzepsen)

    Hi @bartkal

    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,

    Thread Starter bartkal

    (@bartkal)

    Hi @rzepsen,

    Thank you, so im waiting for your feedback

    Best Regards

    Thread Starter bartkal

    (@bartkal)

    Hi @rzepsen,

    Do you have any update?

    Best Regards

    Plugin Support rzepsen

    (@rzepsen)

    Hello @bartkal

    Forgive me for waiting so long. We are in the process of testing the improvements. We will be releasing an update soon, which I will keep you informed about.

    Best regards

    Plugin Support rzepsen

    (@rzepsen)

    Hello @bartkal,

    We have just released the Flexible PDF Invoices for WooCommerce & WordPress 5.6.4 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 bartkal

    (@bartkal)

    Hi @rzepsen,

    Yes, I have already updated and works perfect.
    No further question.

    Thank You for your effort.

    Best Regards
    Bart

    Plugin Support rzepsen

    (@rzepsen)

    Hello @bartkal

    Thanks

    I am closing this thread then.

    Best regards

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Ajax problem’ is closed to new replies.