Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#5242 by Travin
18 Dec 2017, 03:18
Hello!
I set one page checkout like at the documentation
https://aimeos.org/docs/Configuration/C ... kout_steps
Code: Select all'client' => [
      'html' => [
         ...
            'checkout' => [
                'standard' => [
                    'onepage' =>[
                        array( 'address', 'delivery', 'payment', 'summary' )
                    ]
                ]

            ]
      ],
   ],

But i don't see any changes at domen.com/checkout page. What am i doing wrong?
#5247 by antonlinderer
18 Dec 2017, 09:59
try to use:

Code: Select all'client' => [
      'html' => [
            'checkout' => [
                'standard' => [
                   'onepage' => ['address','delivery','payment','summary']
                ]
            ]
      ],
   ],

instead of:

Code: Select all'client' => [
      'html' => [
            'checkout' => [
                'standard' => [
                    'onepage' =>[
                        array( 'address', 'delivery', 'payment', 'summary' )
                    ]
                ]
            ]
      ],
   ],
#5248 by Travin
18 Dec 2017, 10:15
antonlinderer, thanks for the answer!
I think it's just php syntax option. Anyway, i tried your suggestion. It does not work for me

I also tried to do so:
Code: Select all'checkout' => [
                'standard' => [
                    'standard'=>[
                        //'subparts' => ['address', 'delivery', 'payment', 'summary', 'process' ] // By default
                        'subparts' => ['process']
                    ],
                    'onepage' =>[
                        ['address','delivery','payment','summary',]
                    ]
                ]
            ]
#5250 by aimeos
18 Dec 2017, 21:34
Anton is right, the "[ array( ... ) ]" is one array too much because it creates an array in an array and this is wrong.
#5254 by Travin
19 Dec 2017, 04:21
OMG... My bad. Too much work last days, i'm going crazy. Thanks a lot guys!