kluver
Forum Replies Created
-
Can you tell us which plugin was the culprit, and how you managed to solve this? So we can inform other users that are running into the same issue. Or inform users that view this thread looking for a solution.
Our plugin does not make any adjustments to the email itself. It simply attaches the invoice to it.
We’ve received another notice about this issue, and it seems what both cases have in common is that they make use of the YayMail plugin. Would it be possible for you to run a test with only WooCommerce and our PDF Invoices plugin enabled? If this solves the issue we know there is a third party plugin conflict.
You can then enable all other plugins one-by-one, running a test in between, to see when the issue arrises again. This way we can find the culprit.
As mentioned I suspect this might be related to the YayMail plugin. But we can only know for sure after such a test is performed.
Yes, you can for instance use JPEG. But beware that this will only solve your problem for new invoices. We follow GAAP (Generally Accepted Accounting Principles) which states an invoice should be immutable after issuing. Therefore we store data from the invoice in the order meta. This data is then used to generate the PDF file whenever the invoice is requested again.
One of the things that is stored, is the path to the logo image that was set when the invoice was created for the first time. So if you switch the logo on your invoice to a JPEG file, the already generated invoices will still point to the PNG file.
However you can regenerate invoices with the latest settings if you wish. More information on how to do that can be found here: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/
Hi @carazo,
I’m sorry to hear you are experiencing this issue. In our latest release we’ve updated the PDF library we use to convert HTML to PDF (called DomPDF) to the latest version. It seems that doing this creates issues on some setups when loading PNG files. We suspect it has something to do with the ImageMagick version the server is running.
The developers of DomPDF are also helping us troubleshoot this issue, so hopefully we can find the culprit soon. In the mean time we’ve released a beta version of the plugin that has a temporary workaround. Could you redirect your question to [email protected] so we can provide you with this beta version and some additional instructions? Thank you in advance!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Spaced and disordered lettersHi @acatalan2. I’m sorry to hear you are experiencing this issue. Have you followed all the steps in our guide on fixing font issues?
https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/fixing-fonts-issues/As the problem you are describing sounds like a missing font.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] No such file or directory@erwin1974 As a follow-up: Make sure that test mode is disabled after creating the invoice, as it will generate each document with the latest settings. Which is not something you want to have enabled on a live site, as the invoice should be immutable after issuing.
You can also choose the regenerate the invoice on a per order basis by clicking on the ‘Regenerate’ icon in the ‘PDF Document Data’ meta box on the order edit page. More information can be found here: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/
Hi @mashour06, although it is possible to create something like this based on our plugin, it is not something that it can do out of the box. It would involve custom development. Could you please redirect your question to [email protected]? Thank you in advance.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Invoice number progressionHi @emanuelemn,
The ‘Date’ column displays the invoice date and therefore reflects your ‘Display invoice date’ setting (WooCommerce > PDF Invoices > Documents > Invoice). In this case it looks like you’ve chosen to use the order date as your invoice date.
Which means the invoices for the canceled orders were created (probably manually) some time after the orders were placed. And between the creation of these cancelled orders and the creation of their invoices, new orders came in that automatically generated an invoice number.
A quick example below where the order date is set to display as the invoice date and invoices are automatically generated when the order is set to Completed.
Orders:
- Order #1, Order date:
01-07-2022
, set toCancelled
- Order #2, Order date:
10-07-2022
, set toCompleted
- Order #3, Order date:
20-07-2022
, set toCompleted
Invoices:
- Invoice #1, Order #2, Invoice date:
10-07-2022
(automatically generated) - Invoice #2, Order #3, Invoice date:
20-07-2022
(automatically generated) - Invoice #3, Order #1, Invoice date:
01-07-2022
(manually generated)
- This reply was modified 2 years, 7 months ago by kluver.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] StückpreisHi @lordfrank,
Yes, you can certainly setup your columns like that. ??
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Invoice number progressionHi @emanuelemn,
Judging by your screenshot of the Number Tools plugin there are no skipped invoice numbers. Invoice number 0376, 0377, 0378 and 0379 are assigned to canceled orders.
Perhaps that is causing the confusion?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Custom order status in pdfs?Hi @diegpl,
I’m assuming you want the order status to show on the packing slip. You can achieve that with the following code snippet, which should also work for custom order statuses.
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_add_order_status_to_packing_slip', 10, 2 ); function wpo_wcpdf_add_order_status_to_packing_slip( $document_type, $order ) { if ( $document_type == 'packing-slip' ) { foreach ( wc_get_order_statuses() as $id => $name ) { if ( strpos( $id, $order->get_status() ) !== false ) { ?> <tr class="order-status"> <th>Order status:</th> <td><?php echo $name; ?></td> </tr> <?php } } } }
This code snippet should be added to the functions.php of your child theme or via a plugin like Code Snippets. If you haven’t worked with code snippets before please read the following: How to use filters
Hi @haarbollen,
Our plugin only attaches the PDF Invoice to one (or more) of the WooCommerce emails. So the plugin is not responsible for the subject line of the email itself. That is a string coming from WooCommerce. You can change the subject lines of your WooCommerce emails via: WooCommerce > Settings > Emails
The easiest way to change your document title is via our Professional extension. You can change it right in the plugin settings (WooCommerce > PDF Invoices > Documents > Invoice).
Another way to achieve this is with a code snippet: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/change-the-document-title/
In addition to sending us the system report you can also download a small plugin we’ve created, called Number Tools, to troubleshoot invoice number issues. You can download the latest release here.
After installing and activating the Number Tools plugin you will have an additional tab in the PDF Invoices settings (WooCommerce > PDF Invoices > Number Tools). You can select ‘Invoice’ in the ‘Choose a number store’ option to retrieve a list of all invoice numbers since the last reset.
It will show when they were created and to which order number they are connected. Hopefully this will shed some light on the situation. You can share a screenshot of the list with us via a service like Imgur or ImgBB.Also could you tell us if the ‘Calculate document numbers’ option is enabled? You can check this option via: WooCommerce > PDF Invoices > Status > Calculate document numbers
- This reply was modified 3 years, 3 months ago by kluver.
Hi @vandermeerjp,
Glad to hear everything works as expected again. If you are experiencing any issues in the future please let us know.
To insert images in your documents you can follow this guide: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/insert-images/
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Booking details in invoiceHi @tvahvela,
Thank you for sending that. Could you try the following code snippet:
add_action( 'wpo_wcpdf_after_item_meta', 'wpo_wcpdf_add_yith_booking_data_to_item_meta', 10, 3 ); function wpo_wcpdf_add_yith_booking_data_to_item_meta ( $document_type, $item, $order ) { if ( !empty( $booking_data = wc_get_order_item_meta( $item['item_id'], 'yith_booking_data' ) ) ) { $from = isset( $booking_data['from'] ) ? date_i18n( 'l j F, Y - h:i A', $booking_data['from'] ) : ''; $to = isset( $booking_data['to'] ) ? date_i18n( 'l j F, Y - h:i A', $booking_data['to'] ) : ''; if ( !empty( $to ) && !empty( $from ) ) { printf( '<div class="booking-data"><strong>Booking data:</strong><br><small>From: %s<br>To: %s</small></div>', $from, $to ); } } }
- Order #1, Order date: