As the title suggests, is it possible to automatically add a customer to a group called "company" if they enter their company name when they register a new account?
Yes, it is possible it just need some customization.
Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt
Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company
Yes, you just need to put a condition in your register controller.
For example - if customer submitted(POST) the company name then you just need to set customer_group_id manually in code.
Thanks
For example - if customer submitted(POST) the company name then you just need to set customer_group_id manually in code.
Thanks
Hi Synaps,synapseindia wrote: ↑Mon Sep 10, 2018 8:02 pmYes, you just need to put a condition in your register controller.
For example - if customer submitted(POST) the company name then you just need to set customer_group_id manually in code.
Thanks
Thank you for your reply

I will see if I can find the register controller and see what I can do, will share my results here with the community
An alternative way would be by creating an event module which would be called whenever you require based on its route location from the registration page. This methodology would also prevent on targeting core files.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Majestic-12 [Bot], Semrush [Bot] and 65 guests