markfme
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Migrate old invoice numbersHi Darren @dpeyou,
I used the code as you gave but unfortunately it generated an error – Exception: Failed to parse time string (@2023-11-22 11:24:47) at position 8 (-): Double timezone specification as shown in: https://ibb.co/pRGc7p6
Is there any way around this?
Thanks for your help.
Best,
Mark
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Migrate old invoice numbersHi Darren?@dpeyou,
The image link is still working for me so try checking again or try https://ibb.co/w67fqp6 as it shows all the old invoice meta data. The key for the date is _bewpi_invoice_date in the format 2023-09-18 03:25:02. Another key _bewpi_invoice_pdf path gives the format 2023/711-2023.pdf, where 711-2023 is the format of the old invoices we want to migrate.
We do not wish to generate all of the invoices in bulk at once. What we want is for the original invoice number from the previous plugin to be retained in the format specified above when opening an invoice for a random order. Is this possible using a function and the specified meta keys?
Thanks for your help.
Best,
Mark
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Migrate old invoice numbersHi Darren @dpeyou,
The meta-key for the invoice number is _bewpi_invoice_number, as shown in: https://imgur.com/a/t3ejkyO
Unfortunately it seems the old plugin is discontinued and we are unable to get support from them.
In addition the invoice number includes the year it was generated as a suffix. Would it be possible to regenerate all the old invoice numbers in that format using the meta data from the old plugin as shown in the image link?
Please let me know what needs to be done further from our end.
Thanks for your help.
Best,
Mark
- This reply was modified 1 year, 3 months ago by markfme.
I think (but it would be great for someone to confirm) that this issue can be avoided by labelling a field as ‘User Meta Data’ rather than ‘Order Meta Data’ – but it would be great if someone could confirm this.
It would also be good if, within the plugin, there was a warning ?/popup beside these fields to explain the critical nature of the choice for data privacy …Minor update: the folder is in the form wp-content/uploads/(wildcards)-uploads. But of course this does not stop the folder being indexed unless steps are taken to prevent this..
Thanks, your prompt reply much appreciated.