piffpaffpuff
Forum Replies Created
-
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Compability with WP 4.0 ?i’ve tested the plugin with 4.0 beta and didn’t find any issues. let me check with the release version. could you check that there isn’t any js-error in your admin?
short: no. long: yes, but with heavy modifications on the template and woocommerce output.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Reset numbertype in a 0 and save the settings
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] View before Printingjust right-click on the print button and select “open link in new window/tab” (the menu-title depends on what browser you use).
This plugin displays the exact same data as WooCommerce. Sorry, there is no way to change that, but maybe WooCommerce offers something?! Please report back if you find a solution.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] IE11 unable to printshould be fixed in 3.2.2
The Plugin was never tested with qtranslate. But qtranslate modifies every URL. In your case it adds
?lang=ento any english URL. Try to switch to a SEO friendly scheme like/en. But even then qtranslate can generate massive issues with this plugin, WooCommerce and WordPress. Not to talk about the performance issues.I would recommend to not use qtranslate. And if you are looking for a good multilanguage Shop try to switch to Magento or OpenCart if it isn’t to late. WooCommerce is not worth the multilanguage hussle. Trust me, I’ve tested every possible WordPress/WooCommerce multilanguage combination out there. Of course there is WPML, but it feels so cumbersome and inappropriate to use.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Make Font biggerYou can change the font size with CSS. Use the wcdn_head hook and then write your own CSS code.
An example that changes the font size. Paste the code in the functions.php file of your theme. Use a larger font-size value to make the text even bigger:
function my_larger_font_example() { ?> <style> #page { font-size: 1.15em; } </style> <?php } add_action( 'wcdn_head', 'my_larger_font_example', 20 );Hi, thanks for your question. It is already answered in the FAQ!
http://wordpress.org/plugins/woocommerce-delivery-notes/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.
Important: 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 ‘Delivery Time’ field to the end of the list. Paste the code in the functions.php file of your theme. Don’t forget to replace your_meta_field_name with your field name:
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' => 'Delivery Time', '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 );Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] No More Print OptionThere is no fix, version 3.x plain and simply does not support WooCommerce versions prior to 2.1. The old 2.0.2 version that supports the old WooCommerce can be downloaded below (notice the ‘old’ in the sentence ;-)):
http://wordpress.org/plugins/woocommerce-delivery-notes/developers/
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] I can't translateThanks for your translation. The plugin already includes a french translation that is a little outdated. That’s why yours isn’t working. Could you please contribute your translation? Here is how you can do that:
https://github.com/piffpaffpuff/woocommerce-delivery-notes#translating
If you are not on GitHub or GlotPress you could upload the file and post the link. I will include it in the next update.
Updates do not install automatically! You may have a problem with your configuration. Please consider this before rating.
Make sure you have at least WooCommerce 2.1 installed. Lower versions aren’t supported.
oh thanks, those hook names aren’t really clever :-). they will be renamed in the next version.
the wcdn_order_info_fields and wcdn_address_invoice filter function have 2 arguments!
add_filter('wcdn_address_invoice','my_function', 10, 2); function my_function($address, $order){ var_dump($order->id); return $address; }