How to allow to my customer to register om my site

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
tekgroup
Posts: 7
Joined: 03 Oct 2023, 11:02

How to allow to my customer to register om my site

Post by tekgroup » 03 Oct 2023, 11:13

I need to allow to our customer to register in my site!!

when I use the default registration option it is add new site user (as site admin or editor).

and I need to add option for anonymous user

option 1: continue as anonymous ...
option 2: register as customer

best regards

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: How to allow to my customer to register om my site

Post by aimeos » 04 Oct 2023, 07:06

Users are registerd at the end of the checkout automatically if they don't tick off the checkbox in the checkout summary page for creating a new account. If you want to force them to register manually, you have to remove these lines:
https://github.com/aimeos/aimeos/blob/m ... p#L93-L109
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

hadoo
Posts: 7
Joined: 03 Oct 2023, 11:09

Re: How to allow to my customer to register om my site

Post by hadoo » 04 Oct 2023, 13:22

I made it and its works :D
but i have question how to know this user is customer vendor both what diffrence betwwen them both of them in users table ?

tekgroup
Posts: 7
Joined: 03 Oct 2023, 11:02

Re: How to allow to my customer to register om my site

Post by tekgroup » 04 Oct 2023, 14:17

Thank you that helpful!

My scenario depend on vendor request to open a store then from dashboard the admin can review the request and approved it or decalin.

how can I do that!

And how can I distinguish between a customer account and a vendor account?

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: How to allow to my customer to register om my site

Post by aimeos » 05 Oct 2023, 09:43

tekgroup wrote: 04 Oct 2023, 14:17 My scenario depend on vendor request to open a store then from dashboard the admin can review the request and approved it or decalin.
Set the status of the customer accounts to -1 (review) here:
https://github.com/aimeos/aimeos/blob/m ... hp#L86-L91

For approval, set the status to enabled (or disabled to decline) in the admin backend afterwards.
tekgroup wrote: 04 Oct 2023, 14:17 And how can I distinguish between a customer account and a vendor account?
Vendors have the "admin" or "editor" group assigned to their accounts (user -> user_list -> mshop_customer_group table relation).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply