piffpaffpuff
Forum Replies Created
-
Right, i think i know what causes the problem. Unfortunately i can’t fix it before tomorrow. I will keep you updated.
Do you have a screenshot?
This seems an issue with the URL when you bulk printed some orders and then afterwards try to delete an order. Try to click on the ‘Orders’ menu after a bulk print and then delete the order. Does that fix the issue?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Cron ErrorThanks @ shawaj, could you please test something? Could you remove the plugin and reinstall the latest version? Does this fix your issue?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Cron Errorit seems like the $plain_text variable from woocommerce is empty.
how do you send your emails, text, html or multipart?
which woocommerce version do you use?there is a wonderful question in the faq that will help you: https://wordpress.org/plugins/woocommerce-delivery-notes/faq/
Can I hide the prices on the delivery note?
Sure, the easiest way is to hide them with some CSS that is hooked in with wcdn_head.An example that hides the whole price column and the totals. Paste the code in the functions.php file of your theme:
function example_price_free_delivery_note() { ?> <style> .delivery-note .head-item-price, .delivery-note .head-price, .delivery-note .product-item-price, .delivery-note .product-price, .delivery-note .order-items tfoot { display: none; } .delivery-note .head-name, .delivery-note .product-name { width: 50%; } .delivery-note .head-quantity, .delivery-note .product-quantity { width: 50%; } .delivery-note .order-items tbody tr:last-child { border-bottom: 0.24em solid black; } </style> <?php } add_action( 'wcdn_head', 'example_price_free_delivery_note', 20 );if your customers only need to print the delivery note and nothing else, you could just change the default type that customers can print on their order details page. put the following code in your functions.php:
function example_change_print_button_template_type($type) { return 'delivery-note'; } add_filter('wcdn_theme_print_button_template_type_complete_status', 'example_change_print_button_template_type'); add_filter('wcdn_theme_print_button_template_type', 'example_change_print_button_template_type');Sorry, I can’t support plugins that cost. But if you managed to solve your issue, I can integrate your code in a future version.
i see. but i can’t really reproduce your issue. how many orders do you bulk print? does it always happen for the same order? and are you sure those notes were added by the customer during the checkout (notes by made in the admin aren’t supported)?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Invoice Datause the wcdn_get_template_type() to check the type of template.
function print_order_add_invoice_date( $fields, $order ) { $new_fields = array(); if( wcdn_get_template_type() == 'invoice' ) { $order_invoice_date = wcdn_get_order_invoice_date( $order->id ); if( $order_invoice_date ) { $new_fields['order_invoice_date'] = array( 'label' => __( 'Invoice Date' ), 'value' => $order_invoice_date ); } } return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'print_order_add_invoice_date', 10, 2 );version 4.1.1 is out now
hi there, i’m very sorry for that issue. version 4.1.1 should fix it. please read this thread for a solution:
https://wordpress.org/support/topic/version-41-break-my-website?replies=3
hi ther all, i’m very sorry for that issue. it’s something that should not happen normally. version 4.1.1 is out, please read this post to reinstall the plugin:
https://wordpress.org/support/topic/version-41-break-my-website?replies=3
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Version 4.1 break my websiteI’m very sorry for that and I understand the frustration. The issue was caused by an incomplete commit that resulted in buggy code.
Version 4.1.1 is released and will fix the issue. But you first need to remove the pevious version. Follow this solution:
- Use a FTP client to go to the directory ‘/wp-content/plugins/’
- Select the ‘woocommerce-delivery-notes’ directory and delete it
- Reinstall the WooCommerce Print Invoice & Delivery Note 4.1.1 plugin through your WordPress plugin installer.
yeah sure. you just need to target the receipt specific changes with the ‘.receipt’ css class.