One page checkout problem

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!
Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

One page checkout problem

Post 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?
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

antonlinderer
Posts: 42
Joined: 14 Sep 2017, 09:59

Re: One page checkout problem

Post 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' )
                    ]
                ]
            ]
      ],
   ],

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: One page checkout problem

Post 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',]
                    ]
                ]
            ]
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

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

Re: One page checkout problem

Post 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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Travin
Posts: 70
Joined: 18 Dec 2017, 03:12

Re: One page checkout problem

Post by Travin » 19 Dec 2017, 04:21

OMG... My bad. Too much work last days, i'm going crazy. Thanks a lot guys!
Laravel 6.18.19 | php 7.4.7 | Xubuntu | Aimeos Laravel 2019.10.5

Post Reply