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

#   Generating Series Serials

##

- **[saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")**
- [![saejangracer's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41055-saejangracer "View saejangracer's Profile") Topic Author
- [ Offline](/forum/user/41055-saejangracer)

Less More

- Posts: 25
- Thank you received: 2
-
-

10 years 8 months ago [\#232740](#232740) by [saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")  *[Generating Series Serials](/forum/17-serial-how-to/882947-generating-series-serials#232740 "-- HikaShop version -- : 2.6.1 -- HikaSerial version -- : 1.10.2 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 48.0.2564.116  Hi,  I would like to generate serials such that:  &#91;A-Z&#93;{4}&#91;0-9&#93;{3}&#91;0-9&#93;{x}  where for every Hikashop item under my Vouchers category, there would be a unique pack attached, and for every pack there would be a unique series generator with  1. The first 4 letters &quot;&#91;A-Z&#93;{4}&quot; fixed by me (so I know which supplier is offering this voucher) 2. The next 3 numerals &quot;&#91;0-9&#93;{3}&quot; also fixed by me (so I know which type of voucher is offered by the particular supplier) 3. The next x numerals &quot;&#91;0-9&#93;{x}&quot; to be generated in series format, with upper limit set according to the amount of stock I have, and all serials within the same pack to be of uniform string length  eg. if I have 350 vouchers of type 1 from supplier MGFT, the series should run fromMGFT001001 to MGFT001350  How do I achieve this using the series generator?  Tried some combinations but they didn't work. What should I key in in the fields &quot;Min.value&quot;, &quot;Max.value&quot; and &quot;Serial Format&quot;?  Thank you =)")* was created by *[saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")*

-- HikaShop version -- : 2.6.1
-- HikaSerial version -- : 1.10.2
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome 48.0.2564.116

Hi,

I would like to generate serials such that:

[A-Z]{4}[0-9]{3}[0-9]{x}

where for every Hikashop item under my Vouchers category, there would be a unique pack attached, and for every pack there would be a unique series generator with

1. The first 4 letters "[A-Z]{4}" fixed by me (so I know which supplier is offering this voucher)
2. The next 3 numerals "[0-9]{3}" also fixed by me (so I know which type of voucher is offered by the particular supplier)
3. The next x numerals "[0-9]{x}" to be generated in series format, with upper limit set according to the amount of stock I have, and all serials within the same pack to be of uniform string length

eg. if I have 350 vouchers of type 1 from supplier MGFT, the series should run fromMGFT001001 to MGFT001350

How do I achieve this using the series generator?

Tried some combinations but they didn't work. What should I key in in the fields "Min.value", "Max.value" and "Serial Format"?

Thank you ![=)](/smile.gif "=)")

---

Site building and troubleshooting
[ www.hikashop.com/forum/product-category-...product-display.html](https://www.hikashop.com/forum/product-category-display/886962-editing-view-for-custom-front-end-product-display.html) (open)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODgyOTQ3LWdlbmVyYXRpbmctc2VyaWVzLXNlcmlhbHM/dG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#232745](#232745) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Generating Series Serials](/forum/17-serial-how-to/882947-generating-series-serials#232745 "-- HikaShop version -- : 2.6.1 -- HikaSerial version -- : 1.10.2 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 48.0.2564.116  Hi,  I would like to generate serials such that:  &#91;A-Z&#93;{4}&#91;0-9&#93;{3}&#91;0-9&#93;{x}  where for every Hikashop item under my Vouchers category, there would be a unique pack attached, and for every pack there would be a unique series generator with  1. The first 4 letters &quot;&#91;A-Z&#93;{4}&quot; fixed by me (so I know which supplier is offering this voucher) 2. The next 3 numerals &quot;&#91;0-9&#93;{3}&quot; also fixed by me (so I know which type of voucher is offered by the particular supplier) 3. The next x numerals &quot;&#91;0-9&#93;{x}&quot; to be generated in series format, with upper limit set according to the amount of stock I have, and all serials within the same pack to be of uniform string length  eg. if I have 350 vouchers of type 1 from supplier MGFT, the series should run fromMGFT001001 to MGFT001350  How do I achieve this using the series generator?  Tried some combinations but they didn't work. What should I key in in the fields &quot;Min.value&quot;, &quot;Max.value&quot; and &quot;Serial Format&quot;?  Thank you =)")*

Hi,

We have updated the "series generator" documentation page in order to describe more the setting "serial format".
[ www.hikashop.com/support/documentation/1...ugins-seriesgen.html](http://www.hikashop.com/support/documentation/127-hikaserial-plugins-seriesgen.html)
Please let us know if you have further question of if some points in the page are not clear enough.

Regards,

---

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

The following user(s) said Thank You: [saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")

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

- **[saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")**
- [![saejangracer's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/41055-saejangracer "View saejangracer's Profile") Topic Author
- [ Offline](/forum/user/41055-saejangracer)

Less More

- Posts: 25
- Thank you received: 2
-
-

10 years 8 months ago [\#233180](#233180) by [saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")  Replied by *[saejangracer](/forum/user/41055-saejangracer "View saejangracer's Profile")* on topic *[Generating Series Serials](/forum/17-serial-how-to/882947-generating-series-serials#233180 "-- HikaShop version -- : 2.6.1 -- HikaSerial version -- : 1.10.2 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 48.0.2564.116  Hi,  I would like to generate serials such that:  &#91;A-Z&#93;{4}&#91;0-9&#93;{3}&#91;0-9&#93;{x}  where for every Hikashop item under my Vouchers category, there would be a unique pack attached, and for every pack there would be a unique series generator with  1. The first 4 letters &quot;&#91;A-Z&#93;{4}&quot; fixed by me (so I know which supplier is offering this voucher) 2. The next 3 numerals &quot;&#91;0-9&#93;{3}&quot; also fixed by me (so I know which type of voucher is offered by the particular supplier) 3. The next x numerals &quot;&#91;0-9&#93;{x}&quot; to be generated in series format, with upper limit set according to the amount of stock I have, and all serials within the same pack to be of uniform string length  eg. if I have 350 vouchers of type 1 from supplier MGFT, the series should run fromMGFT001001 to MGFT001350  How do I achieve this using the series generator?  Tried some combinations but they didn't work. What should I key in in the fields &quot;Min.value&quot;, &quot;Max.value&quot; and &quot;Serial Format&quot;?  Thank you =)")*

Hi Jerome,

Thank you for your reply, managed to get serial to work ![=)](/smile.gif "=)")

---

Site building and troubleshooting
[ www.hikashop.com/forum/product-category-...product-display.html](https://www.hikashop.com/forum/product-category-display/886962-editing-view-for-custom-front-end-product-display.html) (open)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE3LXNlcmlhbC1ob3ctdG8vODgyOTQ3LWdlbmVyYXRpbmctc2VyaWVzLXNlcmlhbHM/dG1wbD1tYXJrZG93bg==) 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.067 seconds

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