- Posts: 3
- Home
- Forum
- Community Forum
- General discussions
- _sr_media_roomtype_xref - Primary Key missing ?
reservation code - decimal instead of hex
- d2msro
- Topic Author
- Offline
Less
More
9 years 9 months ago #6083
by d2msro
reservation code - decimal instead of hex was created 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
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.
- vietvh
-
- Offline
Less
More
- Posts: 1553
9 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,
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.
- d2msro
- Topic Author
- Offline
Less
More
- Posts: 3
9 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
David
Please Log in or Create an account to join the conversation.
Moderators: solidres