Upendra Kapse
Forum Replies Created
-
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.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Correct Way to style printHello,
Yes, doing the styling changes using the above example function by adding it to your functions.php file of the child theme is the correct way to customizing this.
Alternatively, you can also add it as a snippet using the Code Snippets plugin.
Kind Regards,
Upendra.Forum: Reviews
In reply to: [Call for Price for WooCommerce] works greatHi @twies,
Can I please request you to mention what exact issue you faced with categories after updating to WP 5.8?
We have tested this on our end with the latest version of WP and it worked well so we will really appreciate it if you could explain the issue in a bit more detail and I assure you that we will get it resolved if we can replicate it on our end as well.
Also, was the customization that you have done in the functions.php file of your theme related to our plugin as well that stopped working? You can share detail about that as well.
Kind Regards,
Upendra.Hi Chirag,
Can you please confirm if you have added the below code snippet for adding the product image to the Invoice?
function example_product_image( $product ) { if( isset( $product->id ) && has_post_thumbnail( $product->id ) ) { echo get_the_post_thumbnail( $product->id, array( 40, 40 ), array( 'loading' => false ) ); } } add_action( 'wcdn_order_item_before', 'example_product_image' );It should have worked just fine. Please make sure that you add it at the end of the functions.php file of your active theme or you can also add it as a snippet using the Code Snippets plugin.
Kind Regards,
Upendra.Okay, thank you for confirming that.
We will be checking with that plugin by adding the code you suggested and will recommend our team to include it in the core plugin in future updates.
Kind Regards,
UpendraHi @nlnieuw7,
Thank you for bringing this to our attention.
I am escalating this to our development team so that they can look into this solution and see if we can include this change in the next update of the plugin. Can you just confirm once if this is the same plugin with which we should test this?
https://wordpress.org/plugins/woocommerce-dymo-print/Kind Regards,
Upendra.Hello,
I am afraid there is no direct way right now to display the total number of orders by the same customer. It will require custom code changes in the plugin to do this.
Kind Regards,
Upendra.Hi @webz1lla,
Yes, you can move the text area to the left by adding the below mentioned CSS code under your Appearace>> Customize>> Additional CSS section:
textarea#alg_wc_pif_global_1 { margin-right: 72px; }Kind Regards,
Upendra.Hello,
I am afraid the shipping method is not added separately, it comes as part of the whole order info so right now there is no direct way to remove it with the filters we have for removing certain rows from the Invoice.
We will have to make further changes in the plugin for this but I will escalate this to our team so we will have a way to remove the shipping method with a filter in the future.
Kind Regards,
Upendra.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Remove SKU from invoiceHello,
Apologies for the delay in getting back on this.
To hide the SKU from the Invoice, please add the following code snippet in either the functions.php file of your active theme or as a snippet using the Code Snippets plugin:
add_filter( 'wcdn_order_item_fields', 'wcdn_remove_sku', PHP_INT_MAX, 3 ); function wcdn_remove_sku( $fields, $product, $order ) { unset( $fields['sku'] ); return $fields; }Kind Regards,
Upendra