TycheSoftwares / custom-order-numbers-for-woocommerce

This repository is for the Custom Order Numbers for WooCommerce- Lite
2 stars 2 forks source link

New Custom Order Email has WooCommerce Order number if the order is created from backend. #125

Closed Chetna1510 closed 7 months ago

Chetna1510 commented 9 months ago

Describe the bug I am encountering an issue with Custom Order Numbers for WooCommerce. When manually adding an order through WooCommerce by navigating to "Add Order" and inputting the necessary details including products and customer information, the custom order number is not updated immediately upon order creation. Instead, the new desired order number is generated after publishing the order.

This poses a problem because the email notification sent to the customer contains the old order number rather than the updated one.

To Reproduce Steps to reproduce the behavior:

  1. Go to WooCommerce backend.
  2. Go to Orders and select "Add Order."
  3. Input necessary order details including products and customer information.
  4. Publish the order.
  5. Observe that the new desired custom order number is generated after publishing.
  6. Check the email. Email gets sent to the customer with the WooCommerce number instead of Custom Order Number

Expected behavior The custom order number should be updated immediately upon manual order creation through WooCommerce backend. This ensures that the correct order number is included in email notifications sent to customers.

Screenshots image

  1. Order number after creating the order: image

  2. New Custom Order Email has WooCommerce Order Email: image

Additional context https://support.tychesoftwares.com/conversation/658?folder_id=9

Chetna1510 commented 8 months ago

One more client has reported this: https://support.tychesoftwares.com/conversation/939?folder_id=9