kluver
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Missing LogoHi @celadormedia,
Could you upload your logo file without the
@symbol, and then select the newly uploaded file as your logo in the PDF Invoices settings? And make sure the “Always use most current settings” option is enabled.If this is still not working, would you be so kind to redirect this question to our premium support channel (support@wpovernight.com)? We will need temporary backend access to further troubleshoot what might be going wrong. You can easily provide temporary access with a plugin like: https://wordpress.org/plugins/temporary-login-without-password/
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Invoice dateHi @roberto22,
Test mode should only be enabled when reloading old invoices to see changes appearing. After that it is best to switch this off. Leaving this enabled will mean that if you change your company name or address in the future, previously generated documents will also be affected.
Unfortunately it is not possible to hide the billing address but only leave the email and phone fields with just CSS. Your best option here is to change the billing address format so it only displays email and phone: Changing the address format
Hi @himself,
That is strange. Have you installed any third party plugins in the last couple of days or added some custom code that would filter the product name?
If you haven’t added any code yourself you can check if another plugin is the culprit. First disable all plugins except for WooCommerce and our PDF Invoices plugin. If the issue is then gone you’ll know one of the deactivated plugins was to blame.
Then activate them one-by-one and run a test in between. When the ‘(Copy)’ text shows up again you know which plugin is at fault here.- This reply was modified 5 years ago by kluver.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] CPF na FaturaHi @thiagopereira,
That depends on if that information is saved in the order. You can check if you see this anywhere in the order meta by installing the WooCommerce Store Toolkit. If this data is present in the order you can add it to your invoice by following this guide: Displaying a custom field
Hi @zenimot,
Please change that line into:
$order_note = get_field( 'packing_slip_text', $order->get_id() );Additionally can you tell us if you are using a custom template? As this a template related issue which was fixed for our default ‘Simple’ template.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Meta not created by the pluginI think you might be using a plugin that is not ours. Our plugin and its premium extensions currently have the following versions:
- WooCommerce PDF Invoices & Packing Slips (Free): 2.9.0
- WooCommerce PDF Invoices & Packing Slips Professional: 2.8.0
- WooCommerce PDF Invoices & Packing Slips Premium Templates: 2.12.0
Also we do not have a setting called ‘Réinitialiser le compteur de factures’. If you like to upload screenshots on this forum you can do so via a service like Imgur or ImgBB.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Meta not created by the pluginHi @ataelectronics,
That is quite strange. Can you tell me which version of our plugin you are currently running?
With the option to ‘reset the counter systematically’ do you mean our ‘Reset invoice number yearly’ option? This can be triggered when you are creating invoices for older orders (with a date before the current year) and then get back to creating invoices for new orders (with a date within the current year).
Hi @dyluck,
We’ve encountered this issue before but it should be fixed in our latest release. Are you by any chance using an outdated version of the plugin? Current version is 2.9.0.
Hi @rupalu,
I think we’ll have to take a look at the backend of your site as it is quite hard to determine what might be going wrong here without seeing the actual setup. You can contact us via support@wpovernight.com. If you would be so kind to redirect your question there that would be great.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Hide tax amountHi @heshamsaad,
Please replace the code snippet my colleague sent with the following:
add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) { ?> .invoice small.includes_tax > .woocommerce-Price-amount { display: none; } <?php }, 10, 2 );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 functions.php or code snippets before please read this guide: How to use filters
Hi @myfitbody,
Version 2.7.4 was the last version in which we supported PHP 7.0 or older. Could it be you are running an outdated version of PHP? We recommend to update to PHP 7.4 or higher.
If the PHP version is the culprit and you are unable to upgrade to a higher version due to the setup of your specific site we do offer a separate addon for backwards compatibility. But keep in mind that PHP 7.0 was end of life on januari 2019.
Hi @psodfj,
The following filter will only allow invoice creation (automatic or manually) when the ‘Do you want a company invoice?’ option is checked:
add_filter( 'wpo_wcpdf_document_is_allowed', 'wpo_wcpdf_only_allow_invoice_when_explicitly_requested', 10, 2 ); function wpo_wcpdf_only_allow_invoice_when_explicitly_requested ( $condition, $document ) { if ( $document->type == 'invoice' ) { $condition = empty( $document->order->get_meta( '_billing_to_company' ) ) ? false : $condition; } return $condition; }Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Add barcode to the headerHi @mariodts,
There are no hooks in our template that will let you add this at exactly that location. You will need to create a custom PDF template. This will prevent your custom invoice.php file from being overwritten when the plugin updates.
Hi @bitfenix,
The code you’ve sent is actually working although it isn’t formatted correctly. The
wpo_wcpdf_after_order_datahook lets you add an extra row to the order data table. So you will have to set it up like a table row:add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_custom_text_on_cancelled_status', 10, 2 ); function wpo_wcpdf_custom_text_on_cancelled_status( $template_type, $order ) { if ( $order->get_status() == 'cancelled' && $template_type == 'invoice' ) { ?> <tr class="custom-order-data"> <th><?php _e( 'Your label:', 'wpo_wcpdf_custom' ); ?></th> <td><?php _e( 'Your value:', 'wpo_wcpdf_custom' ); ?></td> </tr> <?php } }