• Resolved tinokla

    (@tinokla)


    Hello and many thanks for this great plugin.

    If i generate a label the plugin wrote the tracking number in the notice fields, that is really great. But it generate a costumer notice and send this notice information via email to the customer. Is there a way to generate this notice as private notice? We use our shop for ebay,too. so an ebay customer get a shop notice if i generate a label.

    I hope you understand my bad english.

    Many thanks,
    tino

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Shadi Manna

    (@shadim)

    Tino,

    There is no setting to make the note private currently, however you can disable the “note email” all together if you would like using this plugin – https://wordpress.org/plugins/woo-disable-email-notifications/.

    Let us know if that works.

    Best,
    Shadi.

    Thread Starter tinokla

    (@tinokla)

    Hello Shadi,

    many thanks for your answer. My Problem, i need very often the note email. Please can you say me in which file i must look to change this manually for me. I know i must change this every update but this woudln´t be the problem.

    Many thanks for your support.

    Best,
    tino

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    I see, in that case you can make this change to fix the issue:

    1. Go to file ‘/assests/js/pr-dhl.js’
    2. Go to line 108, where it says “note_type: ‘customer'”
    3. Delete ‘customer’ and leave the single quotes ”.

    That should create the note as a private note instead of a customer note. Let me know if that works.

    Best,
    Shadi.

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    I am going to close this ticket since it seems the issue has been resolved.

    If you are satisfied with the plugin, it would be great it you could review it so other potential users get a sense of your experience – https://wordpress.org/support/plugin/dhl-for-woocommerce/reviews/.

    Best,
    Shadi.

    Thread Starter tinokla

    (@tinokla)

    Hello Shadi,

    sorry but there was no chance to test it actually. January is regular very weak for our kind of business. As fast as possible i will inform you.

    Many thanks for your great and fast support!

    Best regards,
    tino

    Thread Starter tinokla

    (@tinokla)

    Hello Shadi,

    the email is still sending to customer. I have testet note_type: ‘private’ ,too. But this send a email to customer, too.

    Have you an other idea?

    I have found a other problem. If a Customer filled in Woocommerce the Adress Line 2 the info in this field is in the Geschäftskundenportal in the number field from the street.
    For better understand: A customer wrote in woocommerce in the adressline 2 “floor 4”, this “floor 4” stands in Geschäftskundenportal in the numberfield for the street and i get a info – the street is not known- .

    Can you change this to save some codier charges?

    Many Thanks,

    Tino

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    The JavaScript file might be cached so even after you make the change in the file, you receive the old file. You need to ensure the new file is being loaded by flushing your server cache and browser cache.

    Regarding the “address 2”, you can only place 5 characters I believe so either place something like “fl 4” or just the number “4” and try again.

    Thanks,
    Shadi.

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    Can you confirm these issues are now fixed?

    Best.

    Thread Starter tinokla

    (@tinokla)

    Hello Shadi,

    A generated label always creates a customer note and a customer e-mail. I disabled the cache, but the problem still exists. In the order notes it is also light blue deposited, which means that it is a customer message.

    The Adress 2 Problem:

    The Adress insert by customer in Woocommerce | Adressfields in DHL Geschäftskundenportal

    Firma | Name 2 / Postnummer
    First name Last name | Name 1
    Adressline 1 (Street + Nr.) | Straße
    Adressline 2 | Nr.
    99999 | PLZ
    Town | Ort

    If a customer enters an info in the address line 2 in the shop (for example, which floor), this is entered in the field for the house number in the DHL business customer portal.
    I hope you understand me.

    Thank you for your patience.

    best regards,

    tino

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    I will have to investigate the note issue at a later stage.

    Regarding the address 2 issue, I am not clear on what it is. Can you try to explain again?

    Thanks,
    Shadi.

    Plugin Author Shadi Manna

    (@shadim)

    Tino,

    For the sent email you could remove “Note” emails all together and avoid this issue by adding, see https://docs.woocommerce.com/document/unhookremove-woocommerce-emails/. You would need to add to functions.php, the hook:

    add_action( 'woocommerce_email', 'unhook_those_pesky_emails' );

    and then add the function:

    function unhook_those_pesky_emails( $email_class ) {
    		// Note emails
    		remove_action( 'woocommerce_new_customer_note_notification', array( $email_class->emails['WC_Email_Customer_Note'], 'trigger' ) );
    }

    I hope that helps.

    gerd.neumann

    (@gerdneumann)

    Just fwiw, changing the code as suggested from

    
    						var data = {
    							action:                   'woocommerce_add_order_note',
    							post_id:                  woocommerce_admin_meta_boxes.post_id,
    							note_type: 				  'customer',
    							note:					  response.tracking_note,
    							security:                 woocommerce_admin_meta_boxes.add_order_note_nonce
    						};
    

    to

    
    						var data = {
    							action:                   'woocommerce_add_order_note',
    							post_id:                  woocommerce_admin_meta_boxes.post_id,
    							note_type: 				  '',
    							note:					  response.tracking_note,
    							security:                 woocommerce_admin_meta_boxes.add_order_note_nonce
    						};
    

    does the trick on our side. The note is now private and not a customer note anymore.

    Though, I whished this was an option or filter hook, as I do not want to override JS scripts after each plugin update.

    Plugin Author Shadi Manna

    (@shadim)

    This will be a feature in future versions of the plugin.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘“Generate Label” sends mail to customer’ is closed to new replies.