nick1122
Forum Replies Created
-
Hi,
add_action('wcdn_after_branding','add_extra_image', 10, 2); function add_extra_image(){ if (wcdn_get_template_type() === 'receipt') { ?> <div class="extra-image"> <img src="http://addyourimageurlinsec.jpg" class="extra-image-desktop" width="100" height="100" alt="Stamp"> </div> <?php } }Use this code for adding the extra image to the receipt invoice, Please replace the URL of src in the code with your stamp image URL.
Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Critical ErrorHi,
We have fixed this issue, & I am sending you a patch file to resolve this issue.- You can download the code patch from this link – https://www.dropbox.com/scl/fi/qbx14ukjrzo2dx2mrsimi/class-wcdn-settings.php?rlkey=tptq1elrn4cxhi21za3kbwsup&dl=0
- After downloading the file, you can replace it with the original file in the \wp-content\plugins\woocommerce-delivery-notes\includes.
Please let me know if the provided solution resolves your issue. If it doesn’t work, please create the ticket here on our support tool so that we can communicate in detail.
Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Order Date incorrectHi Radial,
I have checked the issue in our site, and the plugin appears to be working fine with order date.
Please create the ticket here on our support tool so that we can communicate in detail. Additionally, please provide more information about the error and in which order template you are getting the date error.
Regards,
Nikhil.Hi,
Could you please create the ticket here on our support tool so that we can communicate in detail?Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Fatal ErrorHi mollyk,
Re-downloading the plugin would not resolve this issue.
Create the ticket here on our support tool so that we can communicate in detail.
Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Fatal ErrorHi Mollyk,
We have fixed this issue, & I am sending you a patch file to resolve this issue.
- You can download the code patch from this link – https://www.dropbox.com/scl/fi/6souiyk7wfsbmxm6upru2/class-wcdn-writepanel.php?rlkey=4cuvq1ljberniea33jl9uy4bx&dl=0
- After downloading the file, you can replace it with the original file in the \wp-content\plugins\woocommerce-delivery-notes\includes.
- The patch makes the necessary changes to fix the bug and has been tested thoroughly.
Please let me know if the provided solution was helpful for you.
Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] Remove Shipping DescriptionHi,
First of all, I apologize for the delay in getting back to you on this.
Here’s a filter that can hide the shipping method in the invoice print. Add this code snippet in functions.php file of your currently active theme./** * Add this code snippet in the functions.php file of your currently active theme. * Removing the shipping Via method in WC. */ function custom_shipping_to_display_shipped_via( $shipping, $order ) { // Modify the $shipping string to remove 'via' and the shipping method. $shipping_method = $order->get_shipping_method(); $via_position = strpos( $shipping, 'via ' . $shipping_method ); if ( $via_position !== false ) { $shipping_without_via = substr( $shipping, 0, $via_position ); $shipping_without_method = rtrim( $shipping_without_via, ' ' ); $shipping = $shipping_without_method; } return $shipping; } add_filter( 'woocommerce_order_shipping_to_display_shipped_via', 'custom_shipping_to_display_shipped_via', 10, 2 );Note: This filter is from Woocmmerece, so it will also hide the shipping method title in your order table. We have specially modified this code for you to hide the shipping method in the value.
Please close this thread if the given solution works for you.
Regards,
Nikhil.Hi,
Yes you can modify customers notes title. i am giving you the code snippet Please add this code to your function.php
Please replace your modified title name in the given code./** * Add this code snippet in the functions.php file of your currently active theme. * Modified your Customer Note title. */ function modify_customer_note_title( $translated_text, $text, $domain ) { if ( 'woocommerce-delivery-notes' === $domain ) { if ( 'Customer Note' === $text ) { // Replace with your desired title. $translated_text = 'New Customer Note Title'; } } return $translated_text; } add_filter( 'gettext', 'modify_customer_note_title', 20, 3 );
Please let us know if you need any other help.
Regards,
Nikhil.Hi Kender,
Could you please create the ticket here on our support tool so that we can communicate in detail?
Regards,
Nikhil.Hi @taniaboamba,
It is possible that the issue may be related to an older WooCommerce version. Therefore, we strongly recommend updating your WC to the latest version and see if the issue still persists or not. Before proceeding with the update, please make sure to create a backup of your website, especially since it’s running on a very outdated version.
After updating WooCommerce, please verify if the issue still exists. If the problem persists, kindly create the support ticket here on our system so that we can communicate the issue in detail.
Regards,
Nikhil.Hi @taniaboamba,
Could you please tell us which WooCommerce version is currently used in our site?
Regards,
Nikhil.Hi Gabor,
We are sending you the modified file and filter.
We kindly request that you update our latest plugin. Once that is done, please replace the below file with the given path.
File: https://www.dropbox.com/scl/fi/16xgjbra1e5ih17xi2q2k/print-content.php?rlkey=zhk8zlmed096l1z1sle90ou4m&dl=0
Path: woocommerce-delivery-notes\templates\print-order.
Also, please add the below-modified code to your active theme’s functions.php file or use a plugin like Code Snippets:function shipping_title_filter_function( $title_content, $order ) { foreach ( $order->get_shipping_methods() as $item_id => $item ) { $shipping_method_id = $item->get_method_id(); if ( 'local_pickup' === $shipping_method_id ) { $title_content = esc_attr__( 'Pickup Informations', 'woocommerce-delivery-notes' ); } else { $title_content = esc_attr__( 'Shipping Address', 'woocommerce-delivery-notes' ); } } return $title_content; } add_filter( 'wcdn_address_shipping_title', 'shipping_title_filter_function', 10, 2 );If the given solution doesn’t work, please create a support ticket here on our system so that we can communicate the issue in detail.
Regards,
Nikhil.Hi @getzeninfo ,
We have discussed this issue through our ticket system. Let’s close this thread here and continue our communication through the ticket system.
Regards,
Nikhil.Forum: Plugins
In reply to: [Print Invoice & Delivery Notes for WooCommerce] problem with the new updateHi @antonic93
Could you please create the ticket here on our support tool so that we can communicate in detail?
Regards,
Nikhil.