How do change the Order ID format i.e., DE--1 to some unique like DE-231017-1?

jsinha
jsinha Sr. Software Engineer Posts: 16 🧑🏻‍🚀 - Cadet

Hello Team!
I need to change the order id format i.e. DE—1 to some unique particular format like DE-231017-1
Could you please help me how to accomplish it?

Thanks,
Jitesh Sinha

Best Answer

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
    Answer ✓

    Heyhey @jsinha ,

    have a look at vendor/spryker/sales/src/Spryker/Zed/Sales/SalesConfig.php - getOrderReferenceDefaults()

    Hope this helps :)

    All the best,

    Florian

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
    Answer ✓

    Heyhey @jsinha ,

    have a look at vendor/spryker/sales/src/Spryker/Zed/Sales/SalesConfig.php - getOrderReferenceDefaults()

    Hope this helps :)

    All the best,

    Florian

  • jsinha
    jsinha Sr. Software Engineer Posts: 16 🧑🏻‍🚀 - Cadet

    @fsmeier
    Thanks!
    It helped me,
    Thanks,
    Jitesh Sinha