dwpriv
Forum Replies Created
-
Have you tried using the setting at PDF Invoices > Status >”Reinstall fonts”?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Set due date on invoicesI was asking if you were using a plugin to generate your due dates
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Set due date on invoices@emcadesign the snippet shows the due date as a normal date but with 30 days added to it. You can adjust the days in the snippet.
However, could you try using the snippet with the Code Snippets plugin and see if that works?
If that doesn’t work, could you share a screenshot of what you pasted?
Additionally, are you using a plugin for your due dates?
Best regards
So long as the plugin you used to alter the regular price saves the altered price in the order data, then you should have access to the discount. If you don’t see the discount, you may need to find the meta key / custom field the plugin uses to store it’s altered discount/prices. You can then use this meta key to display the discount/prices.
You can go here to see here how to find custom fields. Once you have the custom field you can display it in your PDFs by creating a custom template and writing the code snippet to show the custom field data. This process to display custom fields is also easier with our Premium Templates add-on.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Set due date on invoicesThat guide relates to using custom fields in the Customizer. You would need a license for our Premium Templates add-on to have access to the Customizer. However, you can try this code snippet to add a due date to the invoices:
/** * Show the due date on the invoice */ add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_due_date', 10, 2 ); function wpo_wcpdf_due_date ($document_type, $order) { if ($document_type == 'invoice') { // put due date only on invoice $invoice = wcpdf_get_invoice( $order ); if ( $invoice_date = $invoice->get_date() ) { $due_date = date_i18n( get_option( 'date_format' ), strtotime( $invoice_date->date_i18n('Y-m-d H:i:s') . ' + 30 days') ); ?> <tr class="due-date"> <th>Due Date:</th> <td><?php echo $due_date; ?></td> </tr> <?php } } }If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
Best regards
You use our hooks documentation to output your code in specific places in your invoice https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/pdf-template-action-hooks/. You can use these hooks in your functions.php file or with a tool like Code Snippets
Hey @mmhgloba,
You can go to the Status tab and enable ‘Output to HTML’. This will open the PDF in a browser tab. From there you can right click and inspect the PDF to view the CSS variables that you can target with your CSS code.
For the fonts, you can use the Custom Fonts guide here. You can then apply this font to the variables you want.
Best
Hey Eric,
Could you send us an email at support@wpovernight.com regarding this issue, please? We have to do this since WordPress does not allow support for premium plugins on this forum.
Best regards
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Address block movedHey @supajiggi
Since you mentioned that you’re using a custom template, editing the delivery address area might be tricky. Howeve, you can try moving the address back up with this CSS:
.packing-slip .address .shipping-address { position: absolute; top: 20px; }Adjust the values however you like.
Let us know how this fares for you.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Сurrency symbol as a blockI think this issuing may be happening because you have the Keep PDF on server setting enabled. This setting is included in our Professional plugin, which is why we’re wondering if you maybe are using the Professional extension.
In any case, you can try with a new test order to check if the currency symbol appears. This is because in previous orders, the PDF invoice stored in their server will not change, but in a new test order, the new settings will be applied.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Сurrency symbol as a blockAre you using the free version of the plugin or the paid version? if you’re using the paid version, you should email us at support@wpovernight.com.\
Best
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Plugin not creating invoicesCould you confirm that you have selected which email notification to attach the invoice to (this action creates the invoice automatically when it’s sent)? . This can be set up under WooCommerce > PDF Invoices > Documents > Invoice > Attach to
Example:

Best regards
We suspect it’s the
font-weight300that you apply. We only includenormal=400andbold=700to define our font sizes. You can try setting yourfont-weighttonormaland see how it goes.Best regards
Hi
Try using this code snippet:
<?php /** * Hide chained products on the invoice */ add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) { if ( $document_type == 'invoice' ) { ?> .chained-product { display: none; } <?php } }, 10, 2 );You can download the Code Snippets plugin to add this snippet, if you haven’t already.
Best regards