Page 1 of 1

Add my account and order histroy pages

Posted: 19 May 2017, 15:54
by bill
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

Re: Add my account and order histroy pages

Posted: 19 May 2017, 18:54
by aimeos
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>'
         ],
      ],
    ],
  ],
],

Re: Add my account and order histroy pages

Posted: 26 May 2017, 19:24
by bill
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?

Re: Add my account and order histroy pages

Posted: 29 May 2017, 09:58
by aimeos
Then you need to reconfigure the checkout route but only in the basket controller:
https://aimeos.org/docs/Configuration/C ... url/target