Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4212 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
#4215 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/Core/client/html/basket/standard/url/target) in ./config/shop.php is:
Code: Select all'client' => [
  'html' => [
    'basket' => [
      'standard' => [
        'url' => [
          'target' => '<new page route name>'
         ],
      ],
    ],
  ],
],
#4237 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?