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

#   update customer group when order confirmed

##

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

Less More

- Posts: 105
- Thank you received: 2
-
-

12 years 9 months ago [\#142771](#142771) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  *[update customer group when order confirmed](/forum/35-orders-management/865636-update-customer-group-when-order-confirmed#142771 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- Business -- Joomla version -- :2.5.9 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello, depending on the type of product my clients buy, I would like to assign them to specific user&#95;groups that I created. (I use then the user&#95;groups to let them access to different part of the site). I am looking for the functions/files where, when the order is confirmed, we write in the sql table hikashop&#95;order. Then I could add a few lines to write also in the user&#95;usergroup table of joomla (hopefully in this function/file I have access to the user&#95;id). Could you please tell me where I can find these functions/files or/and if I am looking at the right method to do that (and if there is a better alternative).")* was created by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- Business
-- Joomla version -- :2.5.9
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hello,
depending on the type of product my clients buy, I would like to assign them to specific user_groups that I created. (I use then the user_groups to let them access to different part of the site).
I am looking for the functions/files where, when the order is confirmed, we write in the sql table hikashop_order. Then I could add a few lines to write also in the user_usergroup table of joomla (hopefully in this function/file I have access to the user_id).
Could you please tell me where I can find these functions/files or/and if I am looking at the right method to do that (and if there is a better alternative).

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#142806](#142806) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[update customer group when order confirmed](/forum/35-orders-management/865636-update-customer-group-when-order-confirmed#142806 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- Business -- Joomla version -- :2.5.9 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello, depending on the type of product my clients buy, I would like to assign them to specific user&#95;groups that I created. (I use then the user&#95;groups to let them access to different part of the site). I am looking for the functions/files where, when the order is confirmed, we write in the sql table hikashop&#95;order. Then I could add a few lines to write also in the user&#95;usergroup table of joomla (hopefully in this function/file I have access to the user&#95;id). Could you please tell me where I can find these functions/files or/and if I am looking at the right method to do that (and if there is a better alternative).")*

Hi,
Note that the solution will probably be to use the "User group after purchase" option through your product configuration page.

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

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

Less More

- Posts: 105
- Thank you received: 2
-
-

12 years 9 months ago [\#142808](#142808) by [rfonta](/forum/user/30933-rfonta "View rfonta's Profile")  Replied by *[rfonta](/forum/user/30933-rfonta "View rfonta's Profile")* on topic *[update customer group when order confirmed](/forum/35-orders-management/865636-update-customer-group-when-order-confirmed#142808 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- Business -- Joomla version -- :2.5.9 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hello, depending on the type of product my clients buy, I would like to assign them to specific user&#95;groups that I created. (I use then the user&#95;groups to let them access to different part of the site). I am looking for the functions/files where, when the order is confirmed, we write in the sql table hikashop&#95;order. Then I could add a few lines to write also in the user&#95;usergroup table of joomla (hopefully in this function/file I have access to the user&#95;id). Could you please tell me where I can find these functions/files or/and if I am looking at the right method to do that (and if there is a better alternative).")*

fantastic, so smart and simple!!!!
thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg2NTYzNi11cGRhdGUtY3VzdG9tZXItZ3JvdXAtd2hlbi1vcmRlci1jb25maXJtZWQ/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.049 seconds

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