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

#   How to add items numbering in cart

##

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

Less More

- Posts: 198
- Thank you received: 4
-
-

8 years 8 months ago [\#289120](#289120) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  *[How to add items numbering in cart](/forum/27-checkout/894018-how-to-add-items-numbering-in-cart#289120 "How can i add numbering of items in cart? 1,2,3,4... as much items And i need to show these numbers in emails and order detail page.  Actually i need some number/code which identifies the order and item, for example i have 4 items in order. So if i get code A4C2B3-3, i will know the order number and which item.  i also thought about adding custom item field which will automatically generate some code after each item is added to cart, but haven't found such field type.  If it can't be done without coding, which versions will be the easiest for programmer?")* was created by *[arnask](/forum/user/6752-arnask "View arnask's Profile")*

How can i add numbering of items in cart? 1,2,3,4... as much items
And i need to show these numbers in emails and order detail page.

Actually i need some number/code which identifies the order and item, for example i have 4 items in order. So if i get code A4C2B3-3, i will know the order number and which item.

i also thought about adding custom item field which will automatically generate some code after each item is added to cart, but haven't found such field type.

If it can't be done without coding, which versions will be the easiest for programmer?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 8 months ago [\#289121](#289121) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add items numbering in cart](/forum/27-checkout/894018-how-to-add-items-numbering-in-cart#289121 "How can i add numbering of items in cart? 1,2,3,4... as much items And i need to show these numbers in emails and order detail page.  Actually i need some number/code which identifies the order and item, for example i have 4 items in order. So if i get code A4C2B3-3, i will know the order number and which item.  i also thought about adding custom item field which will automatically generate some code after each item is added to cart, but haven't found such field type.  If it can't be done without coding, which versions will be the easiest for programmer?")*

Hi,

That will indeed require custom coding.
If you want to rely on a custom item field to store the code for each product in the cart/order, you'll need the Business edition.

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

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

Less More

- Posts: 198
- Thank you received: 4
-
-

8 years 8 months ago [\#289159](#289159) by [arnask](/forum/user/6752-arnask "View arnask's Profile")  Replied by *[arnask](/forum/user/6752-arnask "View arnask's Profile")* on topic *[How to add items numbering in cart](/forum/27-checkout/894018-how-to-add-items-numbering-in-cart#289159 "How can i add numbering of items in cart? 1,2,3,4... as much items And i need to show these numbers in emails and order detail page.  Actually i need some number/code which identifies the order and item, for example i have 4 items in order. So if i get code A4C2B3-3, i will know the order number and which item.  i also thought about adding custom item field which will automatically generate some code after each item is added to cart, but haven't found such field type.  If it can't be done without coding, which versions will be the easiest for programmer?")*

as you can see on left side of this forum - i have Business edition, long long time now.
So you recommend as easiest way to do that is to code some plugin which will add new custom field type?

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 8 months ago [\#289178](#289178) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to add items numbering in cart](/forum/27-checkout/894018-how-to-add-items-numbering-in-cart#289178 "How can i add numbering of items in cart? 1,2,3,4... as much items And i need to show these numbers in emails and order detail page.  Actually i need some number/code which identifies the order and item, for example i have 4 items in order. So if i get code A4C2B3-3, i will know the order number and which item.  i also thought about adding custom item field which will automatically generate some code after each item is added to cart, but haven't found such field type.  If it can't be done without coding, which versions will be the easiest for programmer?")*

Hi,

No, I would create a normal custom item field of the type text in the interface.
But I would add a plugin implementing the onAfterOrderCreate trigger to update the value of the custom field in the hikashop_order_product table using the order_number of the order and the id you'll generate to store that for each product when the order is created.
Then, you can just activate the display settings of the custom item field to have the value display for each product in the different areas.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NDAxOC1ob3ctdG8tYWRkLWl0ZW1zLW51bWJlcmluZy1pbi1jYXJ0P3RtcGw9bWFya2Rvd24=) 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?

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

Time to create page: 0.087 seconds

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