Calling Developers!
We are reenergizing our code contribution process! Learn More

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

Options
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,018 ⚖️ - Guardians (admin)
    Answer ✓
    Options

    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,018 ⚖️ - Guardians (admin)
    Answer ✓
    Options

    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
    Options

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