piffpaffpuff
Forum Replies Created
-
hmm, there is a better way:
– both filters return the
$orderobject. which means you can read the order id with$order->id.– you can add new items to the info part with
wcdn_order_info_fields. here the text from the faq:How can I add some more fields to the order info section?
Use the wcdn_order_info_fields filter hook. It returns all the fields as array. Read the WooCommerce documentation to learn how you get custom checkout and order fields. Tip: To get custom meta field values you will most probably need the get_post_meta( $order->id, ‘your_meta_field_name’, true); function and of course the your_meta_field_name.
An example that adds a ‘VAT’ and ‘Customer Number’ field to the end of the list. Paste the code in the functions.php file of your theme:
function my_custom_order_fields( $fields, $order ) { $new_fields = array(); if( get_post_meta( $order->id, 'your_meta_field_name', true ) ) { $new_fields['your_meta_field_name'] = array( 'label' => 'VAT', 'value' => get_post_meta( $order->id, 'your_meta_field_name', true ) ); } if( get_post_meta( $order->id, 'your_meta_field_name', true ) ) { $new_fields['your_meta_field_name'] = array( 'label' => 'Customer Number', 'value' => get_post_meta( $order->id, 'your_meta_field_name', true ) ); } return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'my_custom_order_fields', 10, 2 );add how? which features do you mean?
thanks, it will be corrected in the next update.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Send Invoicebtw: you can send the woocommerce invoice email with the email actions on the admin “order edit” page.
Thanks for your review. I understand your point, let me explain this:
* WooCommerce 2.1 introduced a lot of changes. I (there is no ‘they’) have only limited time to work on the plugin and to drop WC 2.0 support was the only solution to release a new version for WC 2.1.
* Some features wouldn’t be possible in the way they are now without WC 2.1.
* I’m clearly supporting the concept of keeping software up to date. With the auto-update mechanism WordPress took this also a step further.
* It is clearly indicated that the plugin works only with WooCommerce 2.1.x.
* You can still use the old plugin version that works perfectly fine with WC 2.0.I would be great if you could revise your review. Thanks.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Send Invoice1. no, and this feature will also never come. sorry.
2. you would first need to merge the orders in woocommerce by hand (cancel one and add the items to the other). then you can print the order.fixed in 3.2
in 3.2 the invoice is only printed for completed orders. in all other cases it displays a receipt.
this can be changed with the
wcdn_theme_print_button_template_typefilter hook. an example to print the invoice for all order states:function my_theme_print_button_template_type( $type ) { return 'invoice'; } add_filter( 'wcdn_theme_print_button_template_type', 'my_theme_print_button_template_type' )Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Print Actions link classesadded in 3.2
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Single qty product price?yeah you can do that. you need to change the template html and php for it.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Kind Notificationthanks!
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] No More Print OptionI can’t help that much. Make really sure you have WooCommerce 2.1 (or later) installed.
Look, there are some unfixed issues with wp_get_attachment_image_src not checking for ssl (this is the function responsible for the logo). of course there are hacks to correct this, but I think it’s better to wait and let WordPress fix the issue:
https://core.trac.wordpress.org/ticket/25172
https://core.trac.wordpress.org/ticket/15928
https://core.trac.wordpress.org/ticket/19722on the invoice the shipping address is displayed on the left and the billing address on the right side. the delivery note is exactly the opposite. if you don’t see both addresses you have disabled it in your woocommerce settings.
well, the problem is this: there is already a dutch translation included in the plugin. but unfortunately all translations except german are out of date for version 3.
also your solution with copying the translation won’t work because the plugin folder has priority over the
languages/pluginsfolder (default wordpress behavior).so, for now it would be best to create a fork on github and send a pull request to have your translation included in the next version. https://github.com/piffpaffpuff/woocommerce-delivery-notes