Upendra Kapse
Forum Replies Created
-
Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Print buttons not workingHello,
When you click on the Print Invoice button it should display the invoice in a popup like this: https://prnt.sc/1vnnqh0
For some reason, the popup might not be working on your end and hence you don’t see the Invoice. Can you check if there is any javascript conflict error in the browser when you try to print the Invoice?
Kind Reagrds,
Upendra.Hello,
I am happy to know that you were able to find a solution for this and thank you so much for posting it here.
Kind Regards,
Upendra.Forum: Plugins
In reply to: [WP Content Copy Protection] Blocking Source CodeHello,
I am afraid the free version or even the pro version of the plugin does not block the source ccode via the developer tools right now.
Kind Regards,
Upendra.Glad I could help ??
Hello,
I understand your concern but the thing is we use a WooCommerce function to display the order summary in the Invoice and it returns the full individual product prices and calculates the discount for the whole order. The Email Invoice/order details to the customer is a default WooCommerce feature and that also displays the discounts for the whole order together as you also confirmed.
But I understand your concern and will ask our development team if we can add a filter to display the discounted prices for individual products to like how it appears on the edit order page on the admin side and will update you here if we can do it.
Kind Regards,
Upendra.Hello,
The easiest way to change this string Print and maintain this change after the plugin update will be to change it through the translation .po file. You can use a plugin like Loco Translate and translate this string according to your requirement by adding a translation for your language.
The string can also be changed directly from the class-wcdn-theme.php(line number 154) file which is there under \wp-content\plugins\woocommerce-delivery-notes\includes\ folder.
Kind Regards,
Upendra.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Shop logoHello,
To center your logo inside the Invoice please try adding the following code snippet either in the functions.php file of your active theme or as a snippet using the Code Snippets plugin:
function example_customize_invoice() { ?> <style> .order-branding .company-logo { margin-left: 250px; } </style> <?php } add_action( 'wcdn_head', 'example_customize_invoice', 20 );
You can adjust the margin according to your requirement here in the above code snippet.
Kind Regards,
Upendra.Hi @grinbin, I am glad to know that worked well ??
@qtfish Glad to know that worked well ??
Hello,
I just tested the partial refund on my end and it worked well. When I printed the Invoice again from the order page it did show me the updated Invoice with the refund as you can see in this screenshot: https://prnt.sc/1tas9b3
Can you tell me how exactly you are processing the partial refund?
Kind Regards,
UpendraForum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Print button not workingHello,
I am guessing you are referring to the Print button on the My Account page. I just tested this on our end and it worked well for me. So, this could be a compatibility issue on your site. Can you please check this by temporarily disabling other plugins so that we can know which plugin could be causing a conflict? I also recommend you make sure that you have updated the plugins on your site to the latest versions.
If the problem persists please check if you are getting any errors in the browser console when you click on the Print button. Please share the error message with us if you are getting any errors.
Kind Regards,
Upendra.Hello,
Yes, we do have a function using which you can display an additional field in the Invoice. Here’s an example field that adds the VAT field, you can make changes in this function by changing the field label to your own field label and also by changing the meta key to the meta key of your field that you want to add to the Invoice:
* Add this code snippet in functions.php file of your currently active theme. * An example that adds a 'VAT' field to the end of the list. function example_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 ) ); } return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields', 10, 2 );
I hope this helps.
Kind Regards,
Upendra.Hello,
Is that information appear on your product page along with the product title or price? It is possible that this is added as a product meta information by some other discount plugin you may be using and that product meta information is appearing there.
Does it appear when you edit this order under the WooCommerce>> Orders section too?
Kind Regards,
Upendra.Hello,
You can use the following code snippet to remove the payment method field:
/** * Add this code snippet in functions.php file of your currently active theme. * An example that removes the 'Payment Method' field. */ function example_removed_payment_method( $fields ) { unset( $fields['payment_method'] ); return $fields; } add_filter( 'wcdn_order_info_fields', 'example_removed_payment_method' );
I hope this helps.
Kind Regards,
Upendra.Hi Henrik,
I am afraid there is no direct way to do this. But you can do it by making code changes in the template file of the Invoice which is print-content.php under \wp-content\plugins\woocommerce-delivery-notes\templates\print-order\ directory.
Kind Regards,
Upendra.