dwpriv
Forum Replies Created
-
Since we haven’t heard from your in a while, I’ll mark this topic as resolved. Feel free to reopen it if you need further help, or start a new topic if you need help with something else.
By the store owner, do you mean the admin of the website? Normally, the emails in WC are sent to the customer by default, which are the ones our plugin attaches the invoice to. It seems reversed based on what you’re saying. Could you try selecting the “Customer renewal invoice” email notification and see how this works? Alternatively, you could try selecting all of the renewal email notifications as a test to see if the invoice is attached to them. You could pinpoint the correct one to use this way – unless this is indeed a bug or an incompatibility between our plugins.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] critical errorCould you share a screenshot of the form you’re referring to, please?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] critical errorHow were you trying to add these details?
Could you share a screenshot of the attachment settings you’re using, please?
@baz74 the first slug
page=alg-wc-renumerate-orders-toolsis not from our plugin. Our plugin doesn’t change the order numbers, nor does it alter orders in a general. Perhaps you have a plugin installed that handles order numbers.The same for the second slug
page=wc-settings&tab=alg_wc_custom_order_numbers. This is referring to the same plugin above, whatever it is. It seems to be the Woocommerce Custom Order Numbers plugin, though I could be wrong on that.Could you confirm that you’re using this plugin or a similar one on the site or not?
@baz74 Apologies for the delayed response.
To answer your question, our plugin doesn’t renumber the WC order numbers, it only renumbers the documents that were created for those orders or creates the documents if they don’t exist, or delete documents if they do exist. The plugin can do this based on filter dates via PDF Invoices > Advanced > Tools > “Renumber existing documents”, yes.
Also, the plugin mentioned here isn’t our plugin but a different one from a different developer
Hi @callmejud
Apologies for the late reply
- Root cause diagnosis
- Are skipped invoice numbers typically caused by the invoice being generated on an event that can fire multiple times (e.g., email sending, status transitions, checkout hooks, retries, etc.)?
They are related, yes. However, the usual issue is often in the payment process and the updating of the order status afterwards. The invoice along with the number are created at this point based on the settings in the “Attach to” options of the invoice. Most often, there can be a race condition.
For instance, we are aware about a known WooCommerce issue with a specific PayPal configuration, and it affects more than just invoice creation. PayPal has two different methods for confirming payment of an order (name “PDT” and “IPN”). If you have enabled both of them, PayPal sends two notifications to WooCommerce at the same time. This results in what is called a “race condition”: the processes start in parallel (not being able to see the other yet), doing the same tasks. The client receives two emails for their order (each with an invoice), stock gets reduced twice, and other processes might be duplicated as well. Because an order can only have one invoice, only one of them ‘survives’ after the processes have finished.
So, sometimes, the issue can be found here in the checkout process. - Have you seen conflicts like this with automation/email plugins such as ShopMagic (or similar)?
This would be my first time seeing this. Third party SMTP plugin like this can sometimes create issues in the attachment process since our plugin works directly with the WC emails and a these plugins may have their own custom setup. Concerning the attachments with third party plugins, you’d have to consult their developers.
Alternatively, you can test the issue by temporarily deactivating ShopMagic on a staging site and how the attachments with the invoice number behaves. - Is there a recommended way to prevent invoice creation from being triggered twice for the same order?
Similar to what I mentioned above, this is the default behavior. When it happens as in your case, there is something else happening at checkout that triggers the invoice creation twice. I think testing with the ShopMagic plugin deactivated can give more clues as to what’s happening.
Also, you can check the order logs in orders that have the numbering issue to see any discrepancies or oddities.
- Are skipped invoice numbers typically caused by the invoice being generated on an event that can fire multiple times (e.g., email sending, status transitions, checkout hooks, retries, etc.)?
- Automatic invoice generation without emailing
- Is it possible to configure the plugin to generate invoices automatically (e.g., when an order becomes Processing/Completed), even if the invoice is not attached to any email?
Yes, in the Professional extension of the plugin. Since this is a paid plugin, you’d have to email us at [email protected] for further information, as we cannot discuss paid plugins on the forum. - The key requirement is: invoices should be created automatically and keep the original invoice date (order date / configured invoice date logic), without relying on email attachments to trigger generation.
This can be done with the Professional extension’s “Create automatically for” option that works independent of attaching the invoices.
- Is it possible to configure the plugin to generate invoices automatically (e.g., when an order becomes Processing/Completed), even if the invoice is not attached to any email?
- Safe backfilling
- If invoices weren’t generated for a period (because attachments were disabled), is there a “safe” way to generate missing invoices using the original order date and without causing numbering issues?
For the dates, you can use the “Display invoice date” on the Invoice settings page and set it to “Order date”.
- If invoices weren’t generated for a period (because attachments were disabled), is there a “safe” way to generate missing invoices using the original order date and without causing numbering issues?
If it helps, I can provide temporary access so you can check whether there’s a conflict between ShopMagic + email triggers + invoice generation, or if there’s something I’m missing.
If this becomes necessary, you would have to do so by contacting us at the provided email above, as sharing login information on the forum is not advisable.
Can you test this on a staging site with only our plugin and Woocommerce activated and see if the issue persists?
You can email us at [email protected]
@pieterclaesen the topic here seems to be a duplicate of this one. I will close this one in favor of that topic since that thread is ongoing. If this is a mistake, please reopen this topic.
Since we haven’t heard from you in a while. I will mark this topic as resolved. Feel free to reopen it if you need more help or start another topic if you need help with something else.
Since we haven’t heard from you in a while. I will mark this topic as resolved. Feel free to reopen it if you need more help or start another topic if you need help with something else.
Since we haven’t heard from you in a while. I will mark this topic as resolved. Feel free to reopen it if you need more help or start another topic if you need help with something else.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Change filenameSince we haven’t heard from you in a while. I will mark this topic as resolved. Feel free to reopen it if you need more help or start another topic if you need help with something else.
- Root cause diagnosis