reservation code - decimal instead of hex

More
8 years 9 months ago #6083 by d2msro
Hi, one question:
Is there a way to change the type of reservation code from hexadecimal to only decimal random number?
For example: from 9dea7294 to 2649387668 or generate shorter number - 10digits?

Thanks, David

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #6086 by vietvh
Replied by vietvh on topic reservation code - decimal instead of hex
Hi,

It is easy to replace the current method to generate reservation with your own one. The file you need to edit is /libraries/solidres/reservation/reservation.php, then you will see method getCode($srcString) which you need to modify.

Regards,

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #6089 by d2msro
Replied by d2msro on topic reservation code - decimal instead of hex
Thank you, it was easy with hexdec().
David

Please Log in or Create an account to join the conversation.

Moderators: solidres
Powered by Kunena Forum

All the things you need to make your work easier. Did you like Solidres?