[Skip to main content](#vessel-content)

#   Serial format sintax not working

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 4 weeks ago -  8 years 4 weeks ago [\#299322](#299322) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[Serial format sintax not working](/forum/14-hikaserial/895994-serial-format-sintax-not-working#299322 "Hello, I have set the random number generator sintax to MED-&#91;0-9&#93;{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")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

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](/forum/user/23273-oloccina "View oloccina's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1OTk0LXNlcmlhbC1mb3JtYXQtc2ludGF4LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 4 weeks ago [\#299344](#299344) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[Serial format sintax not working](/forum/14-hikaserial/895994-serial-format-sintax-not-working#299344 "Hello, I have set the random number generator sintax to MED-&#91;0-9&#93;{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")*

I just tried creating a new item in "Plugin: randomgen"
Hikaserial &gt; Plugins &gt; Random generator &gt; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1OTk0LXNlcmlhbC1mb3JtYXQtc2ludGF4LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

8 years 3 weeks ago [\#299323](#299323) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serial format sintax not working](/forum/14-hikaserial/895994-serial-format-sintax-not-working#299323 "Hello, I have set the random number generator sintax to MED-&#91;0-9&#93;{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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1OTk0LXNlcmlhbC1mb3JtYXQtc2ludGF4LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 3 weeks ago -  8 years 3 weeks ago [\#299363](#299363) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[Serial format sintax not working](/forum/14-hikaserial/895994-serial-format-sintax-not-working#299363 "Hello, I have set the random number generator sintax to MED-&#91;0-9&#93;{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")*

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](http://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](/forum/user/23273-oloccina "View oloccina's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1OTk0LXNlcmlhbC1mb3JtYXQtc2ludGF4LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

8 years 3 weeks ago [\#299412](#299412) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serial format sintax not working](/forum/14-hikaserial/895994-serial-format-sintax-not-working#299412 "Hello, I have set the random number generator sintax to MED-&#91;0-9&#93;{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")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvODk1OTk0LXNlcmlhbC1mb3JtYXQtc2ludGF4LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
