"+d.data.error+"
"+d+"
"+d.data.error+"
"+d+"
"+wpo_wcpdf_debug.danger_zone.message+"
"+wpo_wcpdf_debug.danger_zone.message+"
%s
) is not writable, check the permissions for this folder! Without having write access to this folder, the plugin will not be able to email invoices."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:205
+#: includes/documents/class-wcpdf-invoice.php:235
msgid "Disable for:"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:214
+#: includes/documents/class-wcpdf-invoice.php:244
msgid "Select one or more statuses"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:220
+#: includes/documents/class-wcpdf-invoice.php:250
msgid "Display shipping address"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:227
-#: includes/documents/class-wcpdf-invoice.php:279
-#: includes/documents/class-wcpdf-invoice.php:295
-#: includes/documents/class-wcpdf-invoice.php:313
-#: includes/documents/class-wcpdf-packing-slip.php:103
+#: includes/documents/class-wcpdf-invoice.php:257
+#: includes/documents/class-wcpdf-invoice.php:309
+#: includes/documents/class-wcpdf-invoice.php:341
+#: includes/documents/class-wcpdf-packing-slip.php:128
#: includes/views/advanced-status.php:169
#: includes/views/advanced-status.php:173
#: includes/views/advanced-status.php:204
@@ -691,294 +752,275 @@ msgstr ""
msgid "No"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:228
+#: includes/documents/class-wcpdf-invoice.php:258
#: includes/views/setup-wizard/display-options.php:21
msgid "Only when different from billing address"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:229
-#: includes/documents/class-wcpdf-invoice.php:400
-#: includes/documents/class-wcpdf-packing-slip.php:105
+#: includes/documents/class-wcpdf-invoice.php:259
+#: includes/documents/class-wcpdf-invoice.php:428
+#: includes/documents/class-wcpdf-packing-slip.php:130
#: includes/views/setup-wizard/display-options.php:22
msgid "Always"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:237
-#: includes/documents/class-wcpdf-packing-slip.php:113
+#: includes/documents/class-wcpdf-invoice.php:267
+#: includes/documents/class-wcpdf-packing-slip.php:138
msgid "Display email address"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:248
-#: includes/documents/class-wcpdf-packing-slip.php:124
+#: includes/documents/class-wcpdf-invoice.php:278
+#: includes/documents/class-wcpdf-packing-slip.php:149
msgid "Display phone number"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:259
-#: includes/documents/class-wcpdf-packing-slip.php:135
+#: includes/documents/class-wcpdf-invoice.php:289
+#: includes/documents/class-wcpdf-packing-slip.php:160
msgid "Display customer notes"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:272
+#: includes/documents/class-wcpdf-invoice.php:302
msgid "Display invoice date"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:288
+#: includes/documents/class-wcpdf-invoice.php:318
msgid "Display due date"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:296
-msgid "1 day"
-msgstr ""
-
-#: includes/documents/class-wcpdf-invoice.php:297
-msgid "7 days"
-msgstr ""
-
-#: includes/documents/class-wcpdf-invoice.php:298
-msgid "30 days"
-msgstr ""
-
-#: includes/documents/class-wcpdf-invoice.php:300
-msgid "Displays a due date below the order data."
+#. translators: number of days
+#: includes/documents/class-wcpdf-invoice.php:325
+msgid "%s days"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:306
+#: includes/documents/class-wcpdf-invoice.php:334
msgid "Display invoice number"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:315
+#: includes/documents/class-wcpdf-invoice.php:343
#: includes/views/setup-wizard/display-options.php:82
msgid "Order Number"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:319
+#: includes/documents/class-wcpdf-invoice.php:347
msgid "Warning!"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:320
+#: includes/documents/class-wcpdf-invoice.php:348
msgid "Using the Order Number as invoice number is not recommended as this may lead to gaps in the invoice number sequence (even when order numbers are sequential)."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:321
+#: includes/documents/class-wcpdf-invoice.php:349
msgid "More information"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:328
+#: includes/documents/class-wcpdf-invoice.php:356
msgid "Next invoice number (without prefix/suffix etc.)"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:334
+#: includes/documents/class-wcpdf-invoice.php:362
msgid "This is the number that will be used for the next document. By default, numbering starts from 1 and increases for every new document. Note that if you override this and set it lower than the current/highest number, this could create duplicate numbers!"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:340
+#: includes/documents/class-wcpdf-invoice.php:368
msgid "Number format"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:348
+#: includes/documents/class-wcpdf-invoice.php:376
msgid "Prefix"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:350
+#: includes/documents/class-wcpdf-invoice.php:378
msgid "If set, this value will be used as number prefix."
msgstr ""
#. translators: 1. document type, 2-3 placeholders
-#: includes/documents/class-wcpdf-invoice.php:352
-#: includes/documents/class-wcpdf-invoice.php:361
+#: includes/documents/class-wcpdf-invoice.php:380
+#: includes/documents/class-wcpdf-invoice.php:389
msgid "You can use the %1$s year and/or month with the %2$s or %3$s placeholders respectively."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:354
-#: includes/documents/class-wcpdf-invoice.php:363
+#: includes/documents/class-wcpdf-invoice.php:382
+#: includes/documents/class-wcpdf-invoice.php:391
msgid "Check the Docs article below to see all the available placeholders for prefix/suffix."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:357
+#: includes/documents/class-wcpdf-invoice.php:385
msgid "Suffix"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:359
+#: includes/documents/class-wcpdf-invoice.php:387
msgid "If set, this value will be used as number suffix."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:366
+#: includes/documents/class-wcpdf-invoice.php:394
msgid "Padding"
msgstr ""
#. translators: document type
-#: includes/documents/class-wcpdf-invoice.php:370
+#: includes/documents/class-wcpdf-invoice.php:398
msgid "Enter the number of digits you want to use as padding. For instance, enter 6
to display the %s number 123
as 000123
, filling it with zeros until the number set as padding is reached."
msgstr ""
#. translators: document type
-#: includes/documents/class-wcpdf-invoice.php:374
+#: includes/documents/class-wcpdf-invoice.php:402
msgid "For more information about setting up the number format and see the available placeholders for the prefix and suffix, check this article:"
msgstr ""
#. translators: document type
-#: includes/documents/class-wcpdf-invoice.php:374
+#: includes/documents/class-wcpdf-invoice.php:402
msgid "Number format explained"
msgstr ""
#. translators: document type
-#: includes/documents/class-wcpdf-invoice.php:374
+#: includes/documents/class-wcpdf-invoice.php:402
msgid "Note: Changes made to the number format will only be reflected on new orders. Also, if you have already created a custom %s number format with a filter, the above settings will be ignored."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:380
+#: includes/documents/class-wcpdf-invoice.php:408
msgid "Reset invoice number yearly"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:391
+#: includes/documents/class-wcpdf-invoice.php:419
msgid "Allow My Account invoice download"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:398
+#: includes/documents/class-wcpdf-invoice.php:426
msgid "Only when an invoice is already created/emailed"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:399
+#: includes/documents/class-wcpdf-invoice.php:427
msgid "Only for specific order statuses (define below)"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:401
+#: includes/documents/class-wcpdf-invoice.php:429
msgid "Never"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:416
+#: includes/documents/class-wcpdf-invoice.php:444
msgid "Enable invoice number column in the orders list"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:427
+#: includes/documents/class-wcpdf-invoice.php:455
msgid "Enable invoice date column in the orders list"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:438
+#: includes/documents/class-wcpdf-invoice.php:466
msgid "Enable invoice number search in the orders list"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:444
+#: includes/documents/class-wcpdf-invoice.php:472
msgid "The search process may be slower on non-HPOS stores. For a more efficient search, you can utilize the HPOS feature, allowing you to search orders by invoice numbers using the search type selector."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:450
+#: includes/documents/class-wcpdf-invoice.php:478
msgid "Disable for free orders"
msgstr ""
#. translators: zero number
-#: includes/documents/class-wcpdf-invoice.php:457
+#: includes/documents/class-wcpdf-invoice.php:485
msgid "Disable document when the order total is %s"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:463
+#: includes/documents/class-wcpdf-invoice.php:491
msgid "Mark as printed"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:471
+#: includes/documents/class-wcpdf-invoice.php:499
msgid "Manually"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:474
+#: includes/documents/class-wcpdf-invoice.php:502
msgid "On single order action"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:475
+#: includes/documents/class-wcpdf-invoice.php:503
msgid "On bulk order action"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:476
+#: includes/documents/class-wcpdf-invoice.php:504
msgid "On my account"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:477
+#: includes/documents/class-wcpdf-invoice.php:505
msgid "On email attachment"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:478
+#: includes/documents/class-wcpdf-invoice.php:506
msgid "On order document data (number and/or date set manually)"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:483
+#: includes/documents/class-wcpdf-invoice.php:511
msgid "Allows you to mark the document as printed, manually (in the order page) or automatically (based on the document creation context you have selected)."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:489
+#: includes/documents/class-wcpdf-invoice.php:517
msgid "Unmark as printed"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:495
+#: includes/documents/class-wcpdf-invoice.php:523
msgid "Adds a link in the order page to allow to remove the printed mark."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:501
+#: includes/documents/class-wcpdf-invoice.php:529
msgid "Always use most current settings"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:507
+#: includes/documents/class-wcpdf-invoice.php:535
msgid "When enabled, the document will always reflect the most current settings (such as footer text, document name, etc.) rather than using historical settings."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:509
+#: includes/documents/class-wcpdf-invoice.php:537
msgid "Caution: enabling this will also mean that if you change your company name or address in the future, previously generated documents will also be affected."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:522
+#: includes/documents/class-wcpdf-invoice.php:550
msgid "Invoice numbers are created by a third-party extension."
msgstr ""
#. translators: link
-#: includes/documents/class-wcpdf-invoice.php:525
+#: includes/documents/class-wcpdf-invoice.php:553
msgid "Configure it here."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:574
+#: includes/documents/class-wcpdf-invoice.php:602
msgid "Include encrypted PDF:"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:580
+#: includes/documents/class-wcpdf-invoice.php:608
msgid "Include the PDF Invoice file encrypted in the UBL file."
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:592
-msgid "Invoice Number:"
+#: includes/documents/class-wcpdf-packing-slip.php:24
+#: includes/documents/class-wcpdf-packing-slip.php:41
+msgid "Packing Slip"
msgstr ""
-#: includes/documents/class-wcpdf-invoice.php:600
-msgid "Invoice Date:"
+#: includes/documents/class-wcpdf-packing-slip.php:51
+msgid "Packing Slip Number:"
msgstr ""
-#: includes/documents/class-wcpdf-packing-slip.php:24
-#: includes/documents/class-wcpdf-packing-slip.php:36
-msgid "Packing Slip"
+#: includes/documents/class-wcpdf-packing-slip.php:61
+msgid "Packing Slip Date:"
msgstr ""
-#: includes/documents/class-wcpdf-packing-slip.php:42
+#: includes/documents/class-wcpdf-packing-slip.php:67
msgid "packing-slip"
msgid_plural "packing-slips"
msgstr[0] ""
msgstr[1] ""
-#: includes/documents/class-wcpdf-packing-slip.php:96
+#: includes/documents/class-wcpdf-packing-slip.php:121
msgid "Display billing address"
msgstr ""
-#: includes/documents/class-wcpdf-packing-slip.php:104
+#: includes/documents/class-wcpdf-packing-slip.php:129
msgid "Only when different from shipping address"
msgstr ""
-#: includes/documents/class-wcpdf-packing-slip.php:151
+#: includes/documents/class-wcpdf-packing-slip.php:176
msgid "Upgrade to our Professional extension to attach packing slips to any email!"
msgstr ""
-#: includes/documents/class-wcpdf-packing-slip.php:184
-msgid "Packing Slip Number:"
-msgstr ""
-
-#: includes/documents/class-wcpdf-packing-slip.php:192
-msgid "Packing Slip Date:"
-msgstr ""
-
#: includes/settings/class-wcpdf-settings-callbacks.php:37
msgid "Warning! The settings below are meant for debugging/development only. Do not use them on a live website!"
msgstr ""
@@ -1012,270 +1054,278 @@ msgid "Yearly reset numbering system rescheduled!"
msgstr ""
#: includes/settings/class-wcpdf-settings-debug.php:250
+msgid "Released semaphore locks have been cleaned up!"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-debug.php:258
+msgid "Released legacy semaphore locks have been cleaned up!"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-debug.php:266
msgid "Extensions' license cache cleared successfully!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:278
+#: includes/settings/class-wcpdf-settings-debug.php:294
msgid "Export settings type is empty!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:315
+#: includes/settings/class-wcpdf-settings-debug.php:331
msgid "Exported settings data is empty!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:334
+#: includes/settings/class-wcpdf-settings-debug.php:350
msgid "Failed to get contents from JSON file!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:341
+#: includes/settings/class-wcpdf-settings-debug.php:357
msgid "JSON file not found!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:347
+#: includes/settings/class-wcpdf-settings-debug.php:363
msgid "The JSON file data is corrupted!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:358
+#: includes/settings/class-wcpdf-settings-debug.php:374
msgid "The JSON file settings type is not supported on this store!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:383
+#: includes/settings/class-wcpdf-settings-debug.php:399
msgid "Couldn't determine the settings option for the import!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:392
+#: includes/settings/class-wcpdf-settings-debug.php:408
msgid "%s settings imported successfully!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:400
+#: includes/settings/class-wcpdf-settings-debug.php:416
msgid "The %s settings file you are trying to import is identical to your current settings, therefore, the settings were not imported."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:412
+#: includes/settings/class-wcpdf-settings-debug.php:428
msgid "Reset settings type is empty!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:451
+#: includes/settings/class-wcpdf-settings-debug.php:467
msgid "%s settings reset not supported!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:464
+#: includes/settings/class-wcpdf-settings-debug.php:480
msgid "%s settings are already reset!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:476
+#: includes/settings/class-wcpdf-settings-debug.php:492
msgid "%s settings reset successfully!"
msgstr ""
#. translators: settings type
-#: includes/settings/class-wcpdf-settings-debug.php:484
+#: includes/settings/class-wcpdf-settings-debug.php:500
msgid "An error occurred when trying to reset the %s settings."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:498
+#: includes/settings/class-wcpdf-settings-debug.php:514
msgid "One or more request parameters missing."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:510
+#: includes/settings/class-wcpdf-settings-debug.php:526
msgid "documents deleted."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:510
+#: includes/settings/class-wcpdf-settings-debug.php:526
msgid "documents renumbered."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:541
+#: includes/settings/class-wcpdf-settings-debug.php:557
msgid "Wrong date type selected."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:556
+#: includes/settings/class-wcpdf-settings-debug.php:572
msgid "Unexpected results from the orders query."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:654
+#: includes/settings/class-wcpdf-settings-debug.php:670
msgid "Debug"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:655
+#: includes/settings/class-wcpdf-settings-debug.php:671
msgid "UBL Taxes"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:691
+#: includes/settings/class-wcpdf-settings-debug.php:707
msgid "Document link access type"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:699
+#: includes/settings/class-wcpdf-settings-debug.php:715
msgid "Logged in (recommended)"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:700
-#: includes/settings/class-wcpdf-settings-debug.php:900
+#: includes/settings/class-wcpdf-settings-debug.php:716
+#: includes/settings/class-wcpdf-settings-debug.php:916
msgid "Guest"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:701
-#: includes/settings/class-wcpdf-settings-debug.php:904
+#: includes/settings/class-wcpdf-settings-debug.php:717
+#: includes/settings/class-wcpdf-settings-debug.php:920
msgid "Full"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:718
+#: includes/settings/class-wcpdf-settings-debug.php:734
msgid "Document access denied redirect page"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:726
+#: includes/settings/class-wcpdf-settings-debug.php:742
msgid "Blank page with message (default)"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:727
+#: includes/settings/class-wcpdf-settings-debug.php:743
msgid "Login page"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:728
+#: includes/settings/class-wcpdf-settings-debug.php:744
msgid "My Account page"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:729
+#: includes/settings/class-wcpdf-settings-debug.php:745
msgid "Custom page (enter below)"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:731
+#: includes/settings/class-wcpdf-settings-debug.php:747
msgid "Select a frontend page to be used to redirect users when the document access is denied."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:744
+#: includes/settings/class-wcpdf-settings-debug.php:760
msgid "Custom external URLs not allowed."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:750
+#: includes/settings/class-wcpdf-settings-debug.php:766
msgid "Pretty document links"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:756
+#: includes/settings/class-wcpdf-settings-debug.php:772
msgid "Changes the document links to a prettier URL scheme."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:762
+#: includes/settings/class-wcpdf-settings-debug.php:778
msgid "Calculate document numbers (slow)"
msgstr ""
#. translators: 1. AUTO_INCREMENT, 2. one
-#: includes/settings/class-wcpdf-settings-debug.php:770
+#: includes/settings/class-wcpdf-settings-debug.php:786
msgid "Document numbers (such as invoice numbers) are generated using %1$s by default. Use this setting if your database auto increments with more than %2$s."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:779
+#: includes/settings/class-wcpdf-settings-debug.php:795
msgid "Enable debug output"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:785
+#: includes/settings/class-wcpdf-settings-debug.php:801
msgid "Enable this option to output plugin errors if you're getting a blank page or other PDF generation issues."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:786
+#: includes/settings/class-wcpdf-settings-debug.php:802
msgid "Caution! This setting may reveal errors (from other plugins) in other places on your site too, therefore this is not recommended to leave it enabled on live sites."
msgstr ""
#. translators: &debug=true
-#: includes/settings/class-wcpdf-settings-debug.php:789
+#: includes/settings/class-wcpdf-settings-debug.php:805
msgid "You can also add %s to the URL to apply this on a per-order basis."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:797
+#: includes/settings/class-wcpdf-settings-debug.php:813
msgid "Enable automatic cleanup"
msgstr ""
#. translators: number of days
-#: includes/settings/class-wcpdf-settings-debug.php:804
+#: includes/settings/class-wcpdf-settings-debug.php:820
msgid "every %s days"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:808
+#: includes/settings/class-wcpdf-settings-debug.php:824
msgid "Automatically clean up PDF files stored in the temporary folder (used for email attachments)"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:814
+#: includes/settings/class-wcpdf-settings-debug.php:830
msgid "Output to HTML"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:820
+#: includes/settings/class-wcpdf-settings-debug.php:836
msgid "Send the template output as HTML to the browser instead of creating a PDF."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:821
+#: includes/settings/class-wcpdf-settings-debug.php:837
msgid "You can also add &output=html
to the URL to apply this on a per-order basis."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:827
+#: includes/settings/class-wcpdf-settings-debug.php:843
msgid "Embed Images"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:833
+#: includes/settings/class-wcpdf-settings-debug.php:849
msgid "Embed images only if you are experiencing issues with them loading in your PDF. Please note that this option can significantly increase the file size."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:839
+#: includes/settings/class-wcpdf-settings-debug.php:855
msgid "Log to order notes"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:845
+#: includes/settings/class-wcpdf-settings-debug.php:861
msgid "Log PDF document creation, deletion, and mark/unmark as printed to order notes."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:851
+#: includes/settings/class-wcpdf-settings-debug.php:867
msgid "Disable document preview"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:857
+#: includes/settings/class-wcpdf-settings-debug.php:873
msgid "Disables the document preview on the plugin settings pages."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:863
+#: includes/settings/class-wcpdf-settings-debug.php:879
msgid "Enable semaphore logs"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:869
+#: includes/settings/class-wcpdf-settings-debug.php:885
msgid "Our plugin uses a semaphore class that prevents race conditions in multiple places in the code. Enable this setting only if you are having issues with document numbers, yearly reset or documents being assigned to the wrong order."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:875
+#: includes/settings/class-wcpdf-settings-debug.php:891
msgid "Enable danger zone tools"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:881
+#: includes/settings/class-wcpdf-settings-debug.php:897
msgid "Enables the danger zone tools. The actions performed by these tools are irreversible!"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:896
+#: includes/settings/class-wcpdf-settings-debug.php:912
msgid "Logged in"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:897
+#: includes/settings/class-wcpdf-settings-debug.php:913
msgid "Document can be accessed by logged in users only."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:901
+#: includes/settings/class-wcpdf-settings-debug.php:917
msgid "Document can be accessed by logged in and guest users."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:905
+#: includes/settings/class-wcpdf-settings-debug.php:921
msgid "Document can be accessed by everyone with the link."
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:914
+#: includes/settings/class-wcpdf-settings-debug.php:930
#: includes/views/advanced-status.php:325
msgid "Status"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:915
+#: includes/settings/class-wcpdf-settings-debug.php:931
msgid "Tools"
msgstr ""
-#: includes/settings/class-wcpdf-settings-debug.php:916
+#: includes/settings/class-wcpdf-settings-debug.php:932
msgid "Numbers"
msgstr ""
@@ -1530,7 +1580,7 @@ msgstr ""
#: includes/settings/class-wcpdf-settings-upgrade.php:91
#: includes/settings/class-wcpdf-settings-upgrade.php:101
#: includes/settings/class-wcpdf-settings-upgrade.php:111
-#: includes/views/upgrade-table.php:56
+#: includes/views/upgrade-table.php:54
msgid "Learn more"
msgstr ""
@@ -1566,6 +1616,54 @@ msgstr ""
msgid "Easily change the look and feel of your documents by adding some custom CSS."
msgstr ""
+#: includes/settings/class-wcpdf-settings-upgrade.php:133
+msgid "WooCommerce Smart Reminder Emails"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:134
+msgid "Automatically schedule and send Reminder Emails for WooCommerce orders."
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:140
+msgid "WooCommerce Print Address Labels"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:141
+msgid "Print out address labels for selected orders straight from WooCommerce."
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:147
+msgid "WooCommerce Automatic Printing - PrintNode"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:148
+msgid "A plugin to automatically print completed orders via PrintNode."
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:154
+msgid "WooCommerce Ultimate Barcodes"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:155
+msgid "Generate barcodes (ZATCA, QR-codes, C128, EAN-13 and more) for your orders, products and even invoices & packing slips."
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:161
+msgid "WooCommerce Print Order List"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:162
+msgid "This plugin lets you quickly print a list of your WooCommerce orders. Great for order picking."
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:168
+msgid "Menu Cart Pro"
+msgstr ""
+
+#: includes/settings/class-wcpdf-settings-upgrade.php:169
+msgid "Integrates seamlessly with WooCommerce to add a shopping cart to your menu."
+msgstr ""
+
#: includes/tables/class-wcpdf-number-store-list-table.php:80
msgid "Refund:"
msgstr ""
@@ -1616,7 +1714,7 @@ msgid "Search number"
msgstr ""
#: includes/views/advanced-numbers.php:39
-#: includes/views/advanced-tools.php:123
+#: includes/views/advanced-tools.php:211
msgid "Reset"
msgstr ""
@@ -1853,140 +1951,187 @@ msgstr ""
msgid "Clean up the PDF files stored in the temporary folder (used for email attachments)."
msgstr ""
+#: includes/views/advanced-tools.php:62
+msgid "Remove released semaphore locks"
+msgstr ""
+
#: includes/views/advanced-tools.php:63
+msgid "Clean up the released semaphore locks from the database."
+msgstr ""
+
+#: includes/views/advanced-tools.php:66
+msgid "Remove released locks"
+msgstr ""
+
+#. translators: 1: number of released semaphore locks
+#: includes/views/advanced-tools.php:78
+msgid "There is %s released semaphore lock in the database."
+msgid_plural "There are %s released semaphore locks in the database."
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/views/advanced-tools.php:91
+msgid "There are no released semaphore locks in the database."
+msgstr ""
+
+#. translators: 1: next run date
+#: includes/views/advanced-tools.php:105
+msgid "The next cleanup action is scheduled to run on %s."
+msgstr ""
+
+#: includes/views/advanced-tools.php:120
+msgid "Remove released legacy semaphore locks"
+msgstr ""
+
+#: includes/views/advanced-tools.php:121
+msgid "Clean up the released legacy semaphore locks from the database."
+msgstr ""
+
+#: includes/views/advanced-tools.php:124
+msgid "Remove released legacy locks"
+msgstr ""
+
+#. translators: 1: number of released legacy semaphore locks
+#: includes/views/advanced-tools.php:134
+msgid "There is %s released legacy semaphore lock in the database."
+msgid_plural "There are %s released legacy semaphore locks in the database."
+msgstr[0] ""
+msgstr[1] ""
+
+#: includes/views/advanced-tools.php:151
msgid "Set up your basic invoice workflow via our Wizard."
msgstr ""
-#: includes/views/advanced-tools.php:69
+#: includes/views/advanced-tools.php:157
msgid "Export Settings"
msgstr ""
-#: includes/views/advanced-tools.php:70
+#: includes/views/advanced-tools.php:158
msgid "Download plugin settings in JSON format to easily export your current setup."
msgstr ""
-#: includes/views/advanced-tools.php:83
+#: includes/views/advanced-tools.php:171
msgid "Export"
msgstr ""
-#: includes/views/advanced-tools.php:93
+#: includes/views/advanced-tools.php:181
msgid "Import Settings"
msgstr ""
-#: includes/views/advanced-tools.php:94
+#: includes/views/advanced-tools.php:182
msgid "Import plugin settings in JSON format."
msgstr ""
-#: includes/views/advanced-tools.php:99
+#: includes/views/advanced-tools.php:187
msgid "Import"
msgstr ""
-#: includes/views/advanced-tools.php:109
+#: includes/views/advanced-tools.php:197
msgid "Reset Settings"
msgstr ""
-#: includes/views/advanced-tools.php:110
+#: includes/views/advanced-tools.php:198
msgid "This will clear all your selected settings data. Please do a backup first using the export tool above."
msgstr ""
-#: includes/views/advanced-tools.php:134
+#: includes/views/advanced-tools.php:222
msgid "Clear extensions license caching"
msgstr ""
-#: includes/views/advanced-tools.php:135
+#: includes/views/advanced-tools.php:223
msgid "This will clear all extensions' license caching. This could be required to update the license status in the Upgrade tab or for new Cloud Storage activations (Professional extension)."
msgstr ""
-#: includes/views/advanced-tools.php:138
+#: includes/views/advanced-tools.php:226
msgid "Clear licenses cache"
msgstr ""
-#: includes/views/advanced-tools.php:153
+#: includes/views/advanced-tools.php:241
msgid "Order date created"
msgstr ""
-#: includes/views/advanced-tools.php:154
+#: includes/views/advanced-tools.php:242
msgid "Order date modified"
msgstr ""
-#: includes/views/advanced-tools.php:155
+#: includes/views/advanced-tools.php:243
msgid "Order date completed"
msgstr ""
-#: includes/views/advanced-tools.php:156
+#: includes/views/advanced-tools.php:244
msgid "Order date paid"
msgstr ""
-#: includes/views/advanced-tools.php:157
+#: includes/views/advanced-tools.php:245
msgid "Document date"
msgstr ""
-#: includes/views/advanced-tools.php:163
+#: includes/views/advanced-tools.php:251
msgid "DANGER ZONE: Create a backup before using these tools, the actions they perform are irreversible!"
msgstr ""
-#: includes/views/advanced-tools.php:168
+#: includes/views/advanced-tools.php:256
msgid "Renumber existing documents"
msgstr ""
-#: includes/views/advanced-tools.php:169
+#: includes/views/advanced-tools.php:257
msgid "This tool will renumber existing documents within the selected order date range, while keeping the assigned document date."
msgstr ""
#. translators: step-by-step instructions
-#: includes/views/advanced-tools.php:174
+#: includes/views/advanced-tools.php:262
msgid "Set the next document number setting %s to the number you want to use for the first document. "
msgstr ""
-#: includes/views/advanced-tools.php:182
-#: includes/views/advanced-tools.php:230
+#: includes/views/advanced-tools.php:270
+#: includes/views/advanced-tools.php:318
msgid "Document type:"
msgstr ""
-#: includes/views/advanced-tools.php:185
-#: includes/views/advanced-tools.php:233
+#: includes/views/advanced-tools.php:273
+#: includes/views/advanced-tools.php:321
msgid "Select"
msgstr ""
-#: includes/views/advanced-tools.php:193
-#: includes/views/advanced-tools.php:242
+#: includes/views/advanced-tools.php:281
+#: includes/views/advanced-tools.php:330
msgid "Date type:"
msgstr ""
-#: includes/views/advanced-tools.php:205
-#: includes/views/advanced-tools.php:254
+#: includes/views/advanced-tools.php:293
+#: includes/views/advanced-tools.php:342
msgid "From:"
msgstr ""
-#: includes/views/advanced-tools.php:206
-#: includes/views/advanced-tools.php:210
-#: includes/views/advanced-tools.php:255
-#: includes/views/advanced-tools.php:259
+#: includes/views/advanced-tools.php:294
+#: includes/views/advanced-tools.php:298
+#: includes/views/advanced-tools.php:343
+#: includes/views/advanced-tools.php:347
msgid "(as: yyyy-mm-dd)"
msgstr ""
-#: includes/views/advanced-tools.php:209
-#: includes/views/advanced-tools.php:258
+#: includes/views/advanced-tools.php:297
+#: includes/views/advanced-tools.php:346
msgid "To:"
msgstr ""
-#: includes/views/advanced-tools.php:215
+#: includes/views/advanced-tools.php:303
msgid "Renumber documents"
msgstr ""
-#: includes/views/advanced-tools.php:225
+#: includes/views/advanced-tools.php:313
msgid "Delete existing documents"
msgstr ""
-#: includes/views/advanced-tools.php:226
+#: includes/views/advanced-tools.php:314
msgid "This tool will delete existing documents within the selected order date range."
msgstr ""
-#: includes/views/advanced-tools.php:237
+#: includes/views/advanced-tools.php:325
msgid "All"
msgstr ""
-#: includes/views/advanced-tools.php:264
+#: includes/views/advanced-tools.php:352
msgid "Delete documents"
msgstr ""
@@ -2253,47 +2398,72 @@ msgstr ""
msgid "Show action buttons"
msgstr ""
-#: includes/views/upgrade-table.php:12
+#: includes/views/upgrade-table.php:11
msgid "Wait, there is more..."
msgstr ""
-#: includes/views/upgrade-table.php:14
+#: includes/views/upgrade-table.php:13
msgid "A quick overview of the features our PDF Invoices & Packing Slips extensions have to offer."
msgstr ""
-#: includes/views/upgrade-table.php:15
+#: includes/views/upgrade-table.php:14
msgid "If you have any questions feel free to send us an email at"
msgstr ""
-#: includes/views/upgrade-table.php:22
+#: includes/views/upgrade-table.php:21
msgid "Professional"
msgstr ""
-#: includes/views/upgrade-table.php:23
-msgid "Premium Templates"
-msgstr ""
-
-#: includes/views/upgrade-table.php:24
+#: includes/views/upgrade-table.php:22
msgid "Bundle"
msgstr ""
-#: includes/views/upgrade-table.php:51
+#: includes/views/upgrade-table.php:49
+#: includes/views/upgrade-table.php:116
msgid "Currently installed"
msgstr ""
#. translators: learn more link
-#: includes/views/upgrade-table.php:55
+#: includes/views/upgrade-table.php:53
msgid "License not yet activated: %s"
msgstr ""
-#: includes/views/upgrade-table.php:77
+#: includes/views/upgrade-table.php:75
msgid "Upgrade now"
msgstr ""
+#: includes/views/upgrade-table.php:98
+msgid "You might also like these plugins..."
+msgstr ""
+
+#: includes/views/upgrade-table.php:101
+msgid "Wow! It looks like you own all of our recommendations. Check out our shop for even more plugins."
+msgstr ""
+
+#: includes/views/upgrade-table.php:102
+msgid "Visit shop"
+msgstr ""
+
+#: includes/views/upgrade-table.php:118
+msgid "Buy now"
+msgstr ""
+
#: includes/wcpdf-functions.php:353
msgid "Error creating PDF, please contact the site owner."
msgstr ""
+#: includes/wcpdf-functions.php:971
+msgid "Product"
+msgstr ""
+
+#: includes/wcpdf-functions.php:972
+msgid "Quantity"
+msgstr ""
+
+#: includes/wcpdf-functions.php:973
+msgid "Price"
+msgstr ""
+
#: languages/strings.php:3
msgid "VAT"
msgstr ""
@@ -2306,10 +2476,6 @@ msgstr ""
msgid "Payment date"
msgstr ""
-#: languages/strings.php:6
-msgid "Payment Date:"
-msgstr ""
-
#: languages/strings.php:7
msgid "Payment method"
msgstr ""
@@ -2330,84 +2496,6 @@ msgstr ""
msgid "SKU"
msgstr ""
-#: languages/strings.php:14
-#: templates/Simple/invoice.php:40
-#: templates/Simple/packing-slip.php:53
-msgid "Billing Address:"
-msgstr ""
-
-#: languages/strings.php:15
-#: templates/Simple/packing-slip.php:40
-msgid "Shipping Address:"
-msgstr ""
-
-#: languages/strings.php:16
-#: templates/Simple/invoice.php:53
-msgid "Ship To:"
-msgstr ""
-
-#: languages/strings.php:17
-#: templates/Simple/invoice.php:78
-#: templates/Simple/packing-slip.php:66
-msgid "Order Number:"
-msgstr ""
-
-#: languages/strings.php:18
-#: templates/Simple/invoice.php:82
-#: templates/Simple/packing-slip.php:70
-msgid "Order Date:"
-msgstr ""
-
-#: languages/strings.php:19
-#: templates/Simple/invoice.php:87
-msgid "Payment Method:"
-msgstr ""
-
-#: languages/strings.php:20
-#: templates/Simple/packing-slip.php:75
-msgid "Shipping Method:"
-msgstr ""
-
-#: languages/strings.php:21
-#: templates/Simple/invoice.php:102
-#: templates/Simple/packing-slip.php:90
-msgid "Product"
-msgstr ""
-
-#: languages/strings.php:22
-#: templates/Simple/invoice.php:103
-#: templates/Simple/packing-slip.php:91
-msgid "Quantity"
-msgstr ""
-
-#: languages/strings.php:23
-#: templates/Simple/invoice.php:104
-msgid "Price"
-msgstr ""
-
-#: languages/strings.php:24
-#: templates/Simple/invoice.php:115
-#: templates/Simple/packing-slip.php:102
-msgid "SKU:"
-msgstr ""
-
-#: languages/strings.php:25
-#: templates/Simple/invoice.php:116
-#: templates/Simple/packing-slip.php:103
-msgid "Weight:"
-msgstr ""
-
-#: languages/strings.php:26
-#: templates/Simple/invoice.php:131
-msgid "Notes"
-msgstr ""
-
-#: languages/strings.php:27
-#: templates/Simple/invoice.php:139
-#: templates/Simple/packing-slip.php:120
-msgid "Customer Notes"
-msgstr ""
-
#: ubl/Settings/TaxesSettings.php:54
msgid "Tax Scheme"
msgstr ""
@@ -2690,54 +2778,54 @@ msgid "Services outside scope of tax"
msgstr ""
#. translators: 1. open anchor tag, 2. close anchor tag, 3. Woo version
-#: woocommerce-pdf-invoices-packingslips.php:194
+#: woocommerce-pdf-invoices-packingslips.php:195
msgid "PDF Invoices & Packing Slips for WooCommerce requires %1$sWooCommerce%2$s version %3$s or higher to be installed & activated!"
msgstr ""
#. translators: PHP version
-#: woocommerce-pdf-invoices-packingslips.php:239
+#: woocommerce-pdf-invoices-packingslips.php:240
msgid "PDF Invoices & Packing Slips for WooCommerce requires PHP %s or higher."
msgstr ""
#. translators: tags
-#: woocommerce-pdf-invoices-packingslips.php:245
+#: woocommerce-pdf-invoices-packingslips.php:246
msgid "We strongly recommend to %1$supdate your PHP version%2$s."
msgstr ""
#. translators: directory path
-#: woocommerce-pdf-invoices-packingslips.php:337
+#: woocommerce-pdf-invoices-packingslips.php:338
msgid "The PDF files in %s are not currently protected due to your site running on NGINX."
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:338
+#: woocommerce-pdf-invoices-packingslips.php:339
msgid "To protect them, you must click the button below."
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:339
+#: woocommerce-pdf-invoices-packingslips.php:340
msgid "Generate random temporary folder name"
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:396
+#: woocommerce-pdf-invoices-packingslips.php:397
msgid "When sending emails with MailPoet 3 and the active sending method is MailPoet Sending Service or Your web host / web server, MailPoet does not include the PDF Invoices & Packing Slips for WooCommerce attachments in the emails."
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:397
+#: woocommerce-pdf-invoices-packingslips.php:398
msgid "To fix this you should select The default WordPress sending method (default) on the Advanced tab."
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:398
+#: woocommerce-pdf-invoices-packingslips.php:399
msgid "Change MailPoet sending method to WordPress (default)"
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:435
+#: woocommerce-pdf-invoices-packingslips.php:436
msgid "PDF Invoices & Packing Slips for WooCommerce detected that your current site locale is right-to-left (RTL) which the current PDF engine does not support it. Please consider installing our mPDF extension that is compatible."
msgstr ""
-#: woocommerce-pdf-invoices-packingslips.php:436
+#: woocommerce-pdf-invoices-packingslips.php:437
msgid "Download mPDF extension"
msgstr ""
#. translators: legacy addon name
-#: woocommerce-pdf-invoices-packingslips.php:522
+#: woocommerce-pdf-invoices-packingslips.php:523
msgid "While updating the PDF Invoices & Packing Slips for WooCommerce plugin we've noticed our legacy %s add-on was active on your site. This functionality is now incorporated into the core plugin. We've deactivated the add-on for you, and you are free to uninstall it."
msgstr ""
diff --git a/readme.txt b/readme.txt
index 037d99cd3..b6215053e 100644
--- a/readme.txt
+++ b/readme.txt
@@ -5,7 +5,7 @@ Tags: woocommerce, pdf, ubl, invoices, packing slips
Requires at least: 4.4
Tested up to: 6.6
Requires PHP: 7.2
-Stable tag: 3.8.6
+Stable tag: 3.9.0-beta-3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -102,6 +102,29 @@ There's a setting on the Advanced tab of the settings page that allows you to to
== Changelog ==
+= 3.8.8 (2024-10-08) =
+* Fix: adds missing deprecated filters to document title methods
+
+= 3.8.7 (2024-10-07) =
+* New: Add full compatibility with mPDF to the Simple Template.
+* New: Add refund reason and invoice number titles to the document methods abstract class.
+* New: Improve template titles registration.
+* New: Improve invoice due date setting.
+* New: Add "You might also like these plugins" section to the Upgrade tab.
+* New: Function to determine if checkout is using block: `wpo_wcpdf_checkout_is_block()`.
+* New: Clean legacy Semaphore locks tool.
+* New: Automatic cleanup of unlocked Semaphore locks and other improvements.
+* New: Tool to remove expired Semaphore locks.
+* New: Filter to modify PDF document data fields: `wpo_wcpdf_document_data_meta_box_fields`.
+* Tweak: Lower hook priority (200) for invoice columns in WooCommerce orders list.
+* Fix: Replace deprecated jQuery `change()` function usage.
+* Fix: Correct path to generic document icon.
+* Fix: Check user capabilities in the `enable_debug()` function.
+* Fix: Load plugin translations later on the `init` hook.
+* Fix: Unblock UI when a tool button is clicked.
+* Translations: Update translation template (POT).
+* Tested up to WooCommerce 9.4.
+
= 3.8.6 (2024-07-18) =
* Fix: function `add_yith_product_bundles_classes()` errors
* Fix: `get_header_logo_id()` return type fatal error
diff --git a/strauss.md b/strauss.md
new file mode 100644
index 000000000..26ade7a04
--- /dev/null
+++ b/strauss.md
@@ -0,0 +1,113 @@
+# Instructions to Install and Update Composer Libraries with Strauss for PDF Invoices & Packing Slips for WooCommerce
+
+This guide provides detailed steps to correctly install and update Composer libraries in the [PDF Invoices & Packing Slips for WooCommerce](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips) plugin using [Strauss](https://github.com/BrianHenryIE/strauss) for class prefixing.
+
+## Prerequisites
+
+- PHP installed on your system.
+- Composer installed on your system.
+- `strauss.phar` file located in the plugin root directory.
+
+## Steps to Install Composer Libraries
+
+1. **Install Composer Dependencies**
+
+ First, ensure all your dependencies are installed using Composer:
+
+ ```sh
+ composer install
+ ```
+
+2. **Run Strauss to Apply Class Prefixing**
+
+ Use the Strauss PHAR file to prefix the classes as configured in your `composer.json`:
+
+ ```sh
+ php strauss.phar
+ ```
+
+3. **Do Not Run `composer dump-autoload` After Strauss**
+
+ Avoid running `composer dump-autoload` after running Strauss, as it will regenerate the autoload files and potentially undo the prefixing work done by Strauss.
+
+## Steps to Update Composer Libraries
+
+1. **Update Composer Dependencies**
+
+ Use Composer to update your dependencies:
+
+ ```sh
+ composer update
+ ```
+
+2. **Run Strauss to Apply Class Prefixing**
+
+ After updating the dependencies, run Strauss again to apply the necessary class prefixing:
+
+ ```sh
+ php strauss.phar
+ ```
+
+3. **Do Not Run `composer dump-autoload` After Strauss**
+
+ Similar to the installation step, do not run `composer dump-autoload` after running Strauss.
+
+## Example `composer.json` Configuration
+
+Ensure your `composer.json` is configured correctly for Strauss. Below is an example configuration:
+
+```json
+{
+ "name": "wpovernight/woocommerce-pdf-invoices-packing-slips",
+ "description": "PDF Invoices & Packing Slips for WooCommerce",
+ "autoload": {
+ "psr-4": {
+ "WPO\\IPS\\": "includes/",
+ "WPO\\IPS\\UBL\\": "ubl/"
+ },
+ "classmap": [
+ "vendor/"
+ ]
+ },
+ "require": {
+ "dompdf/dompdf": "^3.0",
+ "symfony/polyfill-mbstring": "^1.27",
+ "symfony/polyfill-iconv": "^1.27",
+ "sabre/xml": "^2.2.5"
+ },
+ "extra": {
+ "strauss": {
+ "target_directory": "vendor",
+ "namespace_prefix": "WPO\\IPS\\Vendor\\",
+ "classmap_prefix": "WPO_IPS_Vendor_",
+ "constant_prefix": "WPO_IPS_VENDOR_",
+ "packages": [],
+ "update_call_sites": false,
+ "override_autoload": {},
+ "exclude_from_copy": {
+ "packages": [],
+ "namespaces": [],
+ "file_patterns": [
+ "/^psr.*$/"
+ ]
+ },
+ "exclude_from_prefix": {
+ "packages": [
+ "symfony/polyfill-mbstring",
+ "symfony/polyfill-iconv",
+ "masterminds/html5"
+ ],
+ "namespaces": [],
+ "file_patterns": []
+ },
+ "namespace_replacement_patterns": {},
+ "delete_vendor_packages": false,
+ "delete_vendor_files": false
+ }
+ },
+ "config": {
+ "platform-check": false
+ }
+}
+
+```
diff --git a/strauss.phar b/strauss.phar
new file mode 100644
index 000000000..16fd22b2d
Binary files /dev/null and b/strauss.phar differ
diff --git a/templates/Simple/invoice.php b/templates/Simple/invoice.php
index baa789f32..297342298 100644
--- a/templates/Simple/invoice.php
+++ b/templates/Simple/invoice.php
@@ -37,7 +37,6 @@
-
get_type(), $this->order ); ?>
billing_address(); ?> get_type(), $this->order ); ?> @@ -50,7 +49,7 @@ |
show_shipping_address() ) : ?>
-
+ shipping_address_title(); ?>get_type(), $this->order ); ?>shipping_address(); ?> get_type(), $this->order ); ?> @@ -74,17 +73,23 @@ | date( $this->get_type() ); ?> | ||
due_date_title(); ?> | +due_date(); ?> | +|||
---|---|---|---|---|
+ | order_number_title(); ?> | order_number(); ?> | ||
+ | order_date_title(); ?> | order_date(); ?> | ||
+ | payment_method_title(); ?> | payment_method(); ?> |
- | - | + $column_title ) { + printf( ' | %s | ', $column_class, $column_title ); + } + ?>
---|---|---|---|
- + get_type(), $item, $this->order ); ?> - - | + get_type(), $item, $this->order ); ?>@@ -122,27 +138,30 @@ |
+ |
get_type(), $this->order ); ?>
-
- get_document_notes() ) : ?>
-
+ get_document_notes() ) : ?>
+
+
get_type(), $this->order ); ?>
get_type(), $this->order ); ?>
-
+
+ notes_title(); ?>document_notes(); ?> - -
- get_shipping_notes() ) : ?>
-
+ get_shipping_notes() ) : ?>
+
+
get_type(), $this->order ); ?>
+
+ customer_notes_title(); ?>shipping_notes(); ?> - - |
- + |
|