Customer group by address

  • Posts: 121
  • Thank you received: 1
8 years 10 months ago #226970

-- HikaShop version -- : 2.4
-- Joomla version -- : 3.4.8

Hi,
how can I do for assign automatically a different customer group when my customer registered on my site?
My ecommerce have different price for customer group, this is based by address expecially on ZIP and district, so when people do the registration form based on what they write they will be assigned to a customer group; example:
- one customer write 30022 on CAP and VE on district, so its customer group is Venezia
- one customer write 31010 on CAP and TV on district, so its customer group is Treviso

I hope that I explain myself
Thanks so much
Matteo

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 10 months ago #226975

Hi,

You need a custom plugin to do so.
The idea is to use an HikaShop (or a Joomla) trigger to be notified when a user is created and then, to change is user groups depending his values.
If you want to base the algorithm on the HikaShop values, the best would be to use the HikaShop trigger.
www.hikashop.com/support/support/documen...ml#onAfterUserCreate

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: m.fontana

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum