Hi there! Needing some help again! My cliente need to obligate the customer to inform what kind oh card he needs to pay with (its 3 options); It is already at the site, but is not working (the data are note being printed at the PRINT INVOICE) – I tried to adapt a function as bellow, knowing the name of the field, just like that. Also a print of the form and the PRINT INVOICE where I want to show the extra field: https://telecris.app/wp-content/uploads/2024/06/print-invoice.png
function example_custom_order_fields22( $fields, $order ) {
$new_fields = array();
if( get_post_meta( $order->id, 'billing_wooccm12', true ) ) {
$new_fields['billing_wooccm12'] = array(
'label' => 'ID:',
'value' => get_post_meta( $order->id, 'billing_wooccm12', true )
);
}
return array_merge( $fields, $new_fields );
}
add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields22', 10, 2 );
]]>on the order-received page, there’s a Print Invoice CTA which redirects to the My Account page if the user is not registered.
Can it be set to automatically download or open PDF with invoice regardless of the login status?
Thanks in advance.
]]>So we’re having repeated problems using your plugin.
Essentially clicking the “Print Invoice” button within the Order CMS is presenting the user with a print window showing a 502 Bad gateway error.
Our error logs are below:
2021/01/13 15:04:13 [error] 31480#31480: *4312826 FastCGI sent in stderr: “PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_print_order’), WP_Hook->do_action, WP_Hook->apply_filters, WCDN_Print->template_redirect_admin, WCDN_Print->generate_template, wc_get_template, include(‘/plugins/woocommerce-delivery-notes/templates/print-order/print-order.php’), do_action(‘wcdn_loop_content’), WP_Hook->do_action, WP_Hook->apply_filters, wcdn_content, wcdn_get_template_content, wc_get_template, include(‘/plugins/woocommerce-delivery-notes/templates/print-order/print-content.php’), apply_filters(‘wcdn_order_info_fields’), WP_Hook->apply_filters, add_custom_fields_to_invoice, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_print_order’), WP_Hook->do_action, WP_Hook->apply_filters, WCDN_Print->template_redirect_admin, WCDN_Print->generate_template, wc_get_template, include(‘/plugins/woocommerce-delivery-notes/templates/print-order/print-order.php’), do_action(‘wcdn_loop_content’), WP_Hook->do_action, WP_Hook->apply_filters, wcdn_content, wcdn_get_template_content, wc_get_template, include(‘/plugins/woocommerce-delivery-notes/templates/print-order/print-content.php’), apply_filters(‘wcdn_order_info_fields’), WP_Hook->apply_filters, add_custom_fields_to_invoice, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
PHP message: id was called incorrectly. Order properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_print_order’), WP_Hook->do_action, WP_Hook->apply_filters, WCDN_Print->template_redirect_admin, WCDN_Print->generate_template, wc_get_template, include(‘/plugins/woocommerce-delivery-notes/templates/print-order/print-order.php’), do_action(‘wcdn_loop_content’), WP_Hook->do_action, WP_Hook->apply_filters, wcdn_content, wcdn_get_templat
This seems to be an issue with the plugin files and using incorrect / deprecated methods.
We’re using the most recent version of the plugin available to us which is 4.6.2.
WordPress version 5.6.
Do you have any plans to resolve these issues? The plugin is currently unusable.
]]>Recently when I wanted to print my invoices, it shows the wrong product but the correct amount. How do I go about fixing this?
Is it because the product was removed after payment was made?
]]>I’m not sure when the issue started but the “Print invoice” and ‘Print packing slip” have disappeared from the “Bulk Actions” dropdown.
I enabled the debug mode of your plugin and the below error/warning showed:
Declaration of WPO\WC\PDF_Invoices\Documents\Pro_Document::get_settings() should be compatible with WPO\WC\PDF_Invoices\Documents\Order_Document::get_settings($latest = false) in /public_html/wppmu/wp-content/plugins/woocommerce-pdf-ips-pro/includes/documents/abstract-wcpdf-pro-document.php
Hope you can help or point me in the right direction.
Thanks Andre
]]>I want to hide the billing address on printed orders and invoices so that they only show the shipping address.
I can do this by modifying the following code in the plugin’s templates > print-order > style.css file by adding “visibility: hidden;” to line #165 directly:
.billing-address {
width: 50%;
float: left;
visibility: hidden;
}
That works perfectly. However I want to add this modification to my child theme to avoid any issues when the plugin is updated.
Would you be so kind as to let me know the best way to do this?
TIA!
]]>Is this because I’m using the free version?
]]>