Skip to main content

Support Policy

We only provide official support for Solidres's subscribers, all subscribers can request support by using forum or support ticket system. For more information please check our Support Policy at www.solidres.com/support-policy

reservation code - decimal instead of hex

More
11 years 3 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
11 years 3 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
11 years 3 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

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