Page 1 of 1

One page checkout problem

Posted: 18 Dec 2017, 03:18
by Travin
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?

Re: One page checkout problem

Posted: 18 Dec 2017, 09:59
by antonlinderer
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' )
                    ]
                ]
            ]
      ],
   ],

Re: One page checkout problem

Posted: 18 Dec 2017, 10:15
by Travin
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',]
                    ]
                ]
            ]

Re: One page checkout problem

Posted: 18 Dec 2017, 21:34
by aimeos
Anton is right, the "[ array( ... ) ]" is one array too much because it creates an array in an array and this is wrong.

Re: One page checkout problem

Posted: 19 Dec 2017, 04:21
by Travin
OMG... My bad. Too much work last days, i'm going crazy. Thanks a lot guys!