Code Required error when registering

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
onensensy
Posts: 2
Joined: 14 Dec 2022, 15:17

Code Required error when registering

Post by onensensy » 14 Dec 2022, 15:23

Hey, I'm experiencing an error when registering Users.

The error says:
Whoops! Something went wrong.
The code field is required.
Screenshot from 2022-12-14 18-20-34.png
Screenshot from 2022-12-14 18-20-34.png (68.03 KiB) Viewed 2099 times

Laravel 9, PHP: 8.1.12, Linux Ubuntu

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 15 Dec 2022, 09:04

Any answer on this? Stuck here for days

User avatar
VirtualSpy
Advanced
Posts: 122
Joined: 05 Jul 2022, 07:55

Re: Code Required error when registering

Post by VirtualSpy » 15 Dec 2022, 09:28

sica-d wrote: 15 Dec 2022, 09:04 Any answer on this? Stuck here for days
check your .env there is shop registration is enable else something is wrong in RegisteredUserController class

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 15 Dec 2022, 10:40

Thank you for you reply, however I have no clue where or what to look for?
Sorry, have to learn sometime :D

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

Re: Code Required error when registering

Post by aimeos » 15 Dec 2022, 18:05

When you enable SHOP_REGISTRATION, user registration is for merchants, is used along with SHOP_MULTISHOP and requires an unique code for the new shop site that will be created. If you only want to offer upfront registration for customers, don't enable SHOP_REGISTRATION.

Also, user accounts for customers will be automatically created at the end of the checkout process so upfront registration is only necessary if only logged in customers should be able to order.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
onensensy
Posts: 2
Joined: 14 Dec 2022, 15:17

Re: Code Required error when registering

Post by onensensy » 16 Dec 2022, 17:32

How do i Supply the code?

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 05:19

aimeos wrote: 15 Dec 2022, 18:05 When you enable SHOP_REGISTRATION, user registration is for merchants, is used along with SHOP_MULTISHOP and requires an unique code for the new shop site that will be created. If you only want to offer upfront registration for customers, don't enable SHOP_REGISTRATION.

Also, user accounts for customers will be automatically created at the end of the checkout process so upfront registration is only necessary if only logged in customers should be able to order.
Thanks again, but that part I fully understand. I just do not know how to enable the registration process to generate the unique shop code for merchants?

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 09:22

If you enable SHOP_REGISTRATION, registering merchants can enter a custom code of their own. There will be a field displayed in the registration form and checked for uniqueness.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
sica-d
Posts: 10
Joined: 15 Dec 2022, 09:00

Re: Code Required error when registering

Post by sica-d » 19 Dec 2022, 09:37

aimeos wrote: 19 Dec 2022, 09:22 If you enable SHOP_REGISTRATION, registering merchants can enter a custom code of their own. There will be a field displayed in the registration form and checked for uniqueness.
Thanks again, finally I am getting on. There is no other field displayed as per the screenshot above, even with Shop_Registration enabled?

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

Re: Code Required error when registering

Post by aimeos » 19 Dec 2022, 09:39

Only if you enabled SHOP_MULTISHOP too. If you don't want a multi-vendor setup with merchant registration, disable SHOP_MULTISHOP and SHOP_REGISTRATION. Then, /register will be available too but only for customers.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply