Jump to content
muynck

[Free Module] Order Reference | Change order reference to a custom number with variables

Recommended Posts

Hi PrestaShop-merchants,

I have created a module for solving a age old problem: changing the order reference into something meaning full. The random string of characters is not a preferred order reference for most merchants.

You can use variables to fill the order reference with, like $cart->id, $order->id, $shop->name, or a combination of those. You can use any variable from several PrestaShop Objects (main classes). For a more detailed explanation checkout: https://github.com/blauwfruit/orderreference

See the latest releases: https://github.com/blauwfruit/orderreference/releases

Give me your opinion! Thanks!

 

  • Like 1

Share this post


Link to post
Share on other sites

Thanks :)

Works great but what if I want permanent string or digit in the begining and order nummer with 4 preceding zeroes? For example 2020  or  ABC. This doesnt work:

2020{order->id:%04d} - 20200001,20200002,20200003,..

ABC{order->id:%04d}  - ABC0001,ABC0002,ABC0003,..

 

Thanks for answer.

Share this post


Link to post
Share on other sites

Hello! Could you advice, how get this kind of format?

[order date}_[random unique number of 3 digits]

for example:

2020-07-10_678

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More