Add my account and order histroy pages

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!
bill
Posts: 51
Joined: 24 Apr 2017, 17:51

Add my account and order histroy pages

Post by bill » 19 May 2017, 15:54

Hello

I am trying to use aimeo but I have couple iof questions:

1).How can I add my account and order history pages ?

2) and also where do I find the logout page?

3) plus how could have an option for creating an account / login before checkout proccess?

Thanks

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

Re: Add my account and order histroy pages

Post by aimeos » 19 May 2017, 18:54

bill wrote:1).How can I add my account and order history pages ?
There's already a MyAccount page that contains the order history. You only have to add the link to the navigation bar in resources/views/app.blade.php
bill wrote:2) and also where do I find the logout page?
That depends on your Laravel version. In 5.4 the "artisan make:auth" command creates the authentication related routes.
bill wrote:3) plus how could have an option for creating an account / login before checkout proccess?
Yes, you should create a new page for that using the standard Laravel infrastructure and reconfigure the route to the checkout page to your new page. There you can decide to if you want to show the the login / create account form or forward directly to the checkout page. The configuration for the named basket route (https://aimeos.org/docs/Configuration/C ... url/target) in ./config/shop.php is:

Code: Select all

'client' => [
  'html' => [
    'basket' => [
      'standard' => [
        'url' => [
          'target' => '<new page route name>'
         ],
      ],
    ],
  ],
],
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

bill
Posts: 51
Joined: 24 Apr 2017, 17:51

Re: Add my account and order histroy pages

Post by bill » 26 May 2017, 19:24

Hello

Thank you for the replay

for # 3 , I don't want to change the basket page route, it seems when I do this when I try to go to /basket it redirect to the other page I have created?

what I want when i add a product to the cart , and I click on "check" I want it to first got to the /login page if users are not logined , if they are loged in then it will go to the checkout page

can we do that?

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

Re: Add my account and order histroy pages

Post by aimeos » 29 May 2017, 09:58

Then you need to reconfigure the checkout route but only in the basket controller:
https://aimeos.org/docs/Configuration/C ... url/target
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply