Missing details
-
Hi
I use Print Invoices & Delivery Notes for WooCommerce Orders.
Version 3.0.3I make the update today morning. After the update the company logo is no more show and printing.
An other failure ist that the SKU is no mor visible on the invoice. That is a big problem vor me!
Cheers
Jean-Pierre
-
The product numbers are missing as well! (very important for a delivery note).
@mathysjp check you print settings in the woocommerce menu.
besides that, the structure for additional product fields has changed in the template. use the new
wcdn_order_item_fieldshook to add your own additional product fields (like sku).function my_custom_product_fields($fields, $product, $order) { if( isset( $product->get_sku() ) ) { $fields[] = array( 'label' => 'SKU:', 'value' => $product->get_sku() ); } return $fields; } add_filter( 'wcdn_order_item_fields', 'my_custom_product_fields', 10, 3);look at the woocommerce docs to learn what info you can get from your product:
but i can also include some standard fields by default. what would be important fo you?
Hi
I think SKU is the most important for the moment.I use your code from top but it doesn’t work.
I put the code in the function.php from my theme. –> error 404please update to the latest version. there was an issue with the endpoint: http://wordpress.org/support/topic/wont-print-after-update?replies=11
Use: Print Invoices & Delivery Notes for WooCommerce Orders.
Version 3.0.4If I put the Code (top) to my function.php (from theme) I have this –>
Fatal error: Can’t use method return value in write context in /home/httpd/vhosts/blog.swiss-paracord.ch/httpdocs/wp-content/themes/***/functions.php on line 285
before (old version) only the print preview give a 404 failure.
ah i see. try it like that:
function my_custom_product_fields($fields, $product, $order) { $fields[] = array( 'label' => 'SKU:', 'value' => $product->get_sku() ); return $fields; } add_filter( 'wcdn_order_item_fields', 'my_custom_product_fields', 10, 3);Hi
Ok, that works. The SKU ist dispayedTwo other question
– Why is the company Logo not displayed?
How can I solve the problem http://abload.de/img/07.04e1u9f.jpg
Want the prices more on the right side or what can I do if I doesn´t want a linebreak in the sku?Thanks – that last one fixed it for me…was in a panic about the sku not showing up!
@mathysjp try to chose your logo again, and the save the settings. does that work?
for the other changes, this can be done with some css. it would be a chance for you to learn it ;-). but if you like it the easy way, here’s the code:
function my_custom_style() { ?> <style> .order-items .total-heading, .order-items .product-price, .order-items .total-price { text-align: right; } </style> <?php } add_action( 'wcdn_head', 'my_custom_style', 20 );btw: there are examples in the faq that show you how to modify the look of the template.
Hi
Thank you for your last update –> Print Invoices & Delivery Notes for WooCommerce Orders. Version 3.0.5I remove the “sku code” from my function.php file and it works. All Sku’s are displayed.
Also your CSS Code works fine, now I have a clean print out. Thank you for that.
But the company logo is allways not show.
I remove them -> save -> and add new -> save –> no displayed logoAnd an other question to the print out design.
How can I set the SKU to a new line under the product text. I have in some special cases a long SKU with a line break. Thank you.If these two problems are fixed the plugin is perfect!
What file format has your logo? Did it print correctly on the old plugin version?
It is a .png file
The topic ‘Missing details’ is closed to new replies.