Post by worcesterwebstudio » Sun Jul 12, 2020 11:45 pm

Hello,

We have a multi-store OpenCart 2.3.0.2 website with two store fronts. Currently, all customers are assigned the default customer group when they signed up, but what we would like to do is automatically assign their group based on which of the two stores they sign up on. For example, if someone registers on Store A, they will be assigned to 'Store A Customer Group', but if they sign up on Store B they will be assigned to 'Store B Customer Group'. Is this possible?

We wouldn't need to apply this retrospectively, but if we were also able to do this then that would be a bonus, though we should be able to do this via a database query if there isn't an existing solution available.


Posts

Joined
Mon Feb 13, 2017 11:15 pm

Post by rjcalifornia » Mon Jul 13, 2020 12:38 pm

worcesterwebstudio wrote:
Sun Jul 12, 2020 11:45 pm
Hello,

We have a multi-store OpenCart 2.3.0.2 website with two store fronts. Currently, all customers are assigned the default customer group when they signed up, but what we would like to do is automatically assign their group based on which of the two stores they sign up on. For example, if someone registers on Store A, they will be assigned to 'Store A Customer Group', but if they sign up on Store B they will be assigned to 'Store B Customer Group'. Is this possible?

We wouldn't need to apply this retrospectively, but if we were also able to do this then that would be a bonus, though we should be able to do this via a database query if there isn't an existing solution available.
It is possible with this extension:

https://www.opencart.com/index.php?rout ... n_id=22848

There's also a free extension to let users choose the customer group, which you could change according to your needs (if you cannot get the extension linked above):

https://www.opencart.com/index.php?rout ... n_id=11112

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by worcesterwebstudio » Mon Jul 13, 2020 11:09 pm

Thank you!


Posts

Joined
Mon Feb 13, 2017 11:15 pm

Post by worcesterwebstudio » Thu Jul 23, 2020 6:11 pm

rjcalifornia wrote:
Mon Jul 13, 2020 12:38 pm
worcesterwebstudio wrote:
Sun Jul 12, 2020 11:45 pm
Hello,

We have a multi-store OpenCart 2.3.0.2 website with two store fronts. Currently, all customers are assigned the default customer group when they signed up, but what we would like to do is automatically assign their group based on which of the two stores they sign up on. For example, if someone registers on Store A, they will be assigned to 'Store A Customer Group', but if they sign up on Store B they will be assigned to 'Store B Customer Group'. Is this possible?

We wouldn't need to apply this retrospectively, but if we were also able to do this then that would be a bonus, though we should be able to do this via a database query if there isn't an existing solution available.
It is possible with this extension:

https://www.opencart.com/index.php?rout ... n_id=22848
It turns out that this extension doesn't do what we want - it doesn't change the groups at all, it just restricts users to specific stores. What I would like us to set a user group based on the store they register. Do you know of any other way to achieve this?


Posts

Joined
Mon Feb 13, 2017 11:15 pm

Post by rjcalifornia » Tue Jul 28, 2020 5:57 am

worcesterwebstudio wrote:
Thu Jul 23, 2020 6:11 pm
rjcalifornia wrote:
Mon Jul 13, 2020 12:38 pm
worcesterwebstudio wrote:
Sun Jul 12, 2020 11:45 pm
Hello,

We have a multi-store OpenCart 2.3.0.2 website with two store fronts. Currently, all customers are assigned the default customer group when they signed up, but what we would like to do is automatically assign their group based on which of the two stores they sign up on. For example, if someone registers on Store A, they will be assigned to 'Store A Customer Group', but if they sign up on Store B they will be assigned to 'Store B Customer Group'. Is this possible?

We wouldn't need to apply this retrospectively, but if we were also able to do this then that would be a bonus, though we should be able to do this via a database query if there isn't an existing solution available.
It is possible with this extension:

https://www.opencart.com/index.php?rout ... n_id=22848
It turns out that this extension doesn't do what we want - it doesn't change the groups at all, it just restricts users to specific stores. What I would like us to set a user group based on the store they register. Do you know of any other way to achieve this?
Not really. You will have to code it yourself or hire someone to do it.

Image


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by worcesterwebstudio » Tue Jul 28, 2020 4:04 pm

rjcalifornia wrote:
Tue Jul 28, 2020 5:57 am
worcesterwebstudio wrote:
Thu Jul 23, 2020 6:11 pm
rjcalifornia wrote:
Mon Jul 13, 2020 12:38 pm


It is possible with this extension:

https://www.opencart.com/index.php?rout ... n_id=22848
It turns out that this extension doesn't do what we want - it doesn't change the groups at all, it just restricts users to specific stores. What I would like us to set a user group based on the store they register. Do you know of any other way to achieve this?
Not really. You will have to code it yourself or hire someone to do it.
OK, thanks for the update.


Posts

Joined
Mon Feb 13, 2017 11:15 pm

Post by IP_CAM » Tue Jul 28, 2020 5:27 pm

how about this one ? It would only have to be rewritten, to match OC-2.x, I assume ...
https://www.opencart.com/index.php?rout ... n_id=37428

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'450+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by worcesterwebstudio » Tue Jul 28, 2020 10:39 pm

IP_CAM wrote:
Tue Jul 28, 2020 5:27 pm
how about this one ? It would only have to be rewritten, to match OC-2.x, I assume ...
https://www.opencart.com/index.php?rout ... n_id=37428
We'll take a look, thanks!


Posts

Joined
Mon Feb 13, 2017 11:15 pm
Who is online

Users browsing this forum: No registered users and 49 guests