• Hi. Is there a possibility to add a prefix to the order numbers that are added when the customer makes the order?

Viewing 1 replies (of 1 total)
  • Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hello @znxander,

    You should be able to modify the code to get it how you want. We’ve never tried to do it like that, so I wouldn’t be able to provide you with exact code. However, I can tell you that the file that contains the code that generates that order number is the “Prepare_Data_For_Insertion.php file” in the “Functions” folder.

    The line (111) that generates the order number is:

    $Order_Number = __('Order', 'order-tracking') . EWD_OTP_RandomString(5);

    And it makes use of the EWD_OTP_RandomString($CharLength = 10) function from line 753

Viewing 1 replies (of 1 total)
  • The topic ‘Custom order number’ is closed to new replies.