User registration without {site}
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!
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 registration without {site}
Hello,
I want users to be able to register, however, it seems it requires the site to be passed on all front-end URLs. Is it possible to set it up so the default site is used (multishop is not going to be used)? Since it will become a hassle in the long term to manage URLs with the site included.
I want users to be able to register, however, it seems it requires the site to be passed on all front-end URLs. Is it possible to set it up so the default site is used (multishop is not going to be used)? Since it will become a hassle in the long term to manage URLs with the site included.
Re: User registration without {site}
If you use the Aimeos Laravel distribution and don't enable SHOP_MULTISHOP in your .env file, the {site} placeholder shouldn't be required in any URL. You should have a look into the ./routes/web.php file:
https://github.com/aimeos/aimeos/blob/m ... hp#L30-L45
https://github.com/aimeos/aimeos/blob/m ... hp#L30-L45
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: User registration without {site}
My routes/web.php is like that and is unchanged from the core package. I am not using multishop, my .env is as follows:aimeos wrote: ↑06 Nov 2022, 19:11 If you use the Aimeos Laravel distribution and don't enable SHOP_MULTISHOP in your .env file, the {site} placeholder shouldn't be required in any URL. You should have a look into the ./routes/web.php file:
https://github.com/aimeos/aimeos/blob/m ... hp#L30-L45
Code: Select all
SHOP_MULTILOCALE=1
SHOP_MULTISHOP=0
SHOP_REGISTRATION=1
Code: Select all
Missing required parameter for [Route: aimeos_home] [URI: {locale}/{site}] [Missing parameter: site].
https://github.com/aimeos/aimeos/blob/6 ... php#L6-L19
It triggers the requirement for {site}, removing the "config( 'app.shop_registration' )" does make everything work, however, registration cannot be completed and throws an error that it does not know what code/site the user is associated with.
Re: User registration without {site}
SHOP_REGISTRATION=1 is only for merchant registration in multi-site environments so if you activate this, multi-site is enabled too.
The Aimeos distribution has no user registration enabled because users can opt in to create an account automatically at the end of the checkout process.
The Aimeos distribution has no user registration enabled because users can opt in to create an account automatically at the end of the checkout process.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: User registration without {site}
Is there a way to enable user registration, so people can register before they make a purchase?
Re: User registration without {site}
You have to change the Laravel register controller in your installation accordingly:
https://github.com/aimeos/aimeos/blob/m ... roller.php
https://github.com/aimeos/aimeos/blob/m ... roller.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- VirtualSpy
- Advanced
- Posts: 122
- Joined: 05 Jul 2022, 07:55
Re: User registration without {site}
just use this route
Code: Select all
@if (Route::has('register'))
<a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ airoute('register') }}">
{{ __('Create Account') }}
</a>
@endif
- AhmadHelali
- Posts: 7
- Joined: 22 Feb 2023, 15:25
Re: User registration without {site}
just use this routeon your login blade fileCode: Select all
@if (Route::has('register')) <a class="underline text-sm text-gray-600 hover:text-gray-900" href="{{ airoute('register') }}"> {{ __('Create Account') }} </a> @endif
I got error at registration :
Swift_TransportException
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "
Re: User registration without {site}
You don't have the mail server configured in your .env file.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star