Skip to main content

Serial format sintax not working

8 years 4 weeks ago - 8 years 4 weeks ago #299322 by oloccina
Hello,
I have set the random number generator sintax to
MED-[0-9]{7}

I would expect it to print
MED-7randomnumbers

but when I create a test subscription from backed it just keeps printing 15 random letters and numbers
exyt8W4qBftTqAR

is this because I am creating these subscriptions form backend, and the sintax will work only for those created from frontend directly?

Thank you
Last edit: 8 years 4 weeks ago by oloccina.

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

8 years 4 weeks ago #299344 by oloccina
I just tried creating a new item in "Plugin: randomgen"
Hikaserial > Plugins > Random generator > new

this works,

MED-[0-9]{size}
MED-45655
MED-12270
MED-88560
MED-13875
MED-54763

but I am not sure how to attach this new plugin item I created it to a certain plan, I am probably missing something here in how the component works... will have to study the documentation a bit more, in the meantime any suggestion is appreciated

Thanks

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

8 years 3 weeks ago #299323 by Jerome
Hello,

Serial generators are only for generation of serials ; not for subscriptions.
You have a setting in the plan configuration for the format of the subscriptions keys.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

8 years 3 weeks ago - 8 years 3 weeks ago #299363 by oloccina
Yes, I know.
At first I tried using the sintax generator inside the plan settings, I set it like this
MED-[0-9]{size}
serial size: 5
see nimb.ws/59ZPxu

but when I create a subscription from backend it create just 5 random letters, like:
WkmPf

I have also tried to set it to something like
[0-9]{5}
or
[A-Z]{5}
it always generates 5 random letters when creating a subscription form backend

Thanks
Last edit: 8 years 3 weeks ago by oloccina.

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

8 years 3 weeks ago #299412 by Jerome
Hello,

Thanks for the report. I'm working on a patch which should be integrated in the package during the afternoon.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Moderators: Obsidev
Time to create page: 0.050 seconds
Powered by Kunena Forum