piffpaffpuff
Forum Replies Created
-
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Error on Functiongood to hear.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Invoice numeryes, you can, if you have a plugin installed that generates invoice numbers for you. woocommerce and woocommerce delivery notes has no concept of invoice numbering, so you need another plugin that can do that (but not this one).
otherwise, in the faq you can learn how to add custom fields to the print template:
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. 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 );@kruisko yeah the answer is for the old version. good you found a solution.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updatei’m glad that you all try to fix the issue. i’m working on it, but it needs more time. would you people help me testing when it is ready?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Error on Functiondo you use any template hooks? have you copied the template? if so, please remove them and try again.
i have another idea what could be the problem but let me test that first.
@robertfarkle thanks a lot for your help. i’m aware of the problem. there is another thread with users that have the same issue.
i try to work on the problem theses next days but i can’t test it, because i do not have ssl.
do you have a github account and could help with the testing?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Missing detailsDo you see the company name instead of the logo? Have you tried uploading another file?
I can’t reproduce your issue, which makes it quite difficult to fix it.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updateDo you use ssl (https)?
@blb078 save your permalink settings after you disabled ssl and try again. What happens?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Missing detailsWhat file format has your logo? Did it print correctly on the old plugin version?
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updatedo you use https?
ok, the next version (3.0.5) will use the invoice. for people who want something else, there will be a filter hook for it. use ‘invoice’, ‘delivery-note’ or ‘order’ as return value:
function my_theme_print_button_type( $type ) { return 'order'; } add_filter( 'wcdn_theme_print_button_template_type', 'my_theme_print_button_type' );Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Missing details@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.
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Missing detailsah 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);Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Wont print after updateoh! my bad, sorry. well that’s great! it means that it is a js issue, which is not that great.
on chrome 33 it works perfect. what version do you use? click on the 3-bars icon on the right and the on “About Chrome”. otherwise try to update chrome to the latest version and try again.