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

#   Unique order prefix for specific customer

##

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

Less More

- Posts: 237
- Thank you received: 5
-
-

3 years 10 months ago [\#348016](#348016) by [ltempest](/forum/user/1784-ltempest "View ltempest's Profile")  *[Unique order prefix for specific customer](/forum/33-customers/905650-unique-order-prefix-for-specific-customer#348016 "-- HikaShop version -- : 4.7.0  Hello, I'm developing a site for a client that has an online store an also a physical 'bricks and mortar' store that sells the same products as online.  In order to streamline the stock control, the store manager is going to use the online store to order products for sale in the store. I have setup a specific user for the store so they see the products without pricing and can order with zero price.  I have now had a question asking if this store 'customer' can have a different order / invoice prefix so it can be more easily identified when they collate and manage the orders?  I cannot see anywhere 'obvious' in the backend how to set a different prefix.  Any ideas? and if not possible can this be a feature request for future releases?  Thanks")* was created by *[ltempest](/forum/user/1784-ltempest "View ltempest's Profile")*

-- HikaShop version -- : 4.7.0

Hello,
I'm developing a site for a client that has an online store an also a physical 'bricks and mortar' store that sells the same products as online.

In order to streamline the stock control, the store manager is going to use the online store to order products for sale in the store. I have setup a specific user for the store so they see the products without pricing and can order with zero price.

I have now had a question asking if this store 'customer' can have a different order / invoice prefix so it can be more easily identified when they collate and manage the orders?

I cannot see anywhere 'obvious' in the backend how to set a different prefix.

Any ideas? and if not possible can this be a feature request for future releases?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDU2NTAtdW5pcXVlLW9yZGVyLXByZWZpeC1mb3Itc3BlY2lmaWMtY3VzdG9tZXI/dG1wbD1tYXJrZG93bg==) 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: 86584
- Thank you received: 14325
-
-

3 years 10 months ago [\#348017](#348017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unique order prefix for specific customer](/forum/33-customers/905650-unique-order-prefix-for-specific-customer#348017 "-- HikaShop version -- : 4.7.0  Hello, I'm developing a site for a client that has an online store an also a physical 'bricks and mortar' store that sells the same products as online.  In order to streamline the stock control, the store manager is going to use the online store to order products for sale in the store. I have setup a specific user for the store so they see the products without pricing and can order with zero price.  I have now had a question asking if this store 'customer' can have a different order / invoice prefix so it can be more easily identified when they collate and manage the orders?  I cannot see anywhere 'obvious' in the backend how to set a different prefix.  Any ideas? and if not possible can this be a feature request for future releases?  Thanks")*

Hi,

You will need to create a custom field of the table "user" and of the type "text" with the columna name "user_prefix". Don't display it on the frontend.
Then, you can create a custom field of the table "order" and of the type "text" with the column name "order_prefix". Just don't display it on the frontend and the emails, etc with the settings of the custom field.
In your special user settings, in HikaShop, you can enter the prefix you want in that custom field.
Then, you can use a mass action with:
- a trigger "after an order is created"
- an action "update the values" on the column order_prefix with the mode "operation" and the value: user.user_prefix

Then, in the "invoice number format" setting of the HikaShop configuration, you can use the tag {order_prefix} so that it will use the prefix when generating the number.

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

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

Time to create page: 0.044 seconds

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