Set a onepage Checkout

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Set a onepage Checkout

Post by BlewSquare » 07 Dec 2019, 17:58

Hey everyone , i'm making an e-commerce website and i would like to know how to make a onepage Checkout ( With adress , payment , delivery and summary ) .

I looked to the documentation ( https://aimeos.org/docs/Configuration/C ... kout_steps ) But i didn't understand well . Where must i place the ' client/html/checkout/standard/onepage = array( 'address', 'delivery', 'payment', 'summary' ) ' ?

And i also don't find the ' client/html/checkout/standard/onepage '

Could someone help me please ? ^^

Edit : i made modifications :
- Added:

Code: Select all

	'client' => [
		'html' => [
			'checkout' => [
				'standard' => [
					'onepage' => ['adress','delivery','payment','summary']
					]
				],
                               //
                        ]
             ],
To shop.php

- Added :

Code: Select all

 $onepage = $view->config( 'client/html/checkout/standard/onepage',['adress','delivery','payment','summary'] );
To client/html/checkout/standard/standard.php ( l . 460 )

But still not working , there is only the basket and the adress page ....[/i]



( Sorry if i'm posting many posts but i'm new and i need help ^^)

Thanks you all and waiting for answers . Blew :)

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

Re: Set a onepage Checkout

Post by aimeos » 08 Dec 2019, 10:13

Can you post your full ./config/shop.php (without the resource credentials)?
One error is a misspelling: It must be "address", not "adress"
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Re: Set a onepage Checkout

Post by BlewSquare » 08 Dec 2019, 11:36

Sure , here is the shop.php file :

Code: Select all

	
	
		
	'page' => [
		// Docs: https://aimeos.org/docs/Laravel/Adapt_pages
		// Hint: catalog/filter is also available as single 'catalog/tree', 'catalog/search', 'catalog/attribute'
		'account-index' => [ 'account/profile','account/subscription','account/history','account/favorite','account/watch','basket/mini','catalog/session' ],
		'basket-index' => [ 'basket/bulk', 'basket/standard','basket/related' ],
		'catalog-count' => [ 'catalog/count' ],
		'catalog-detail' => [ 'basket/mini','catalog/stage','catalog/detail','catalog/session' ],
		'catalog-list' => [ 'basket/mini','catalog/filter','catalog/lists','catalog/search','catalog/tree','catalog/attribute' ],
		'catalog-stock' => [ 'catalog/stock' ],
		'catalog-suggest' => [ 'catalog/suggest' ],
		'catalog-tree' => [ 'basket/mini','catalog/filter','catalog/stage','catalog/lists' ],
		'checkout-confirm' => [ 'checkout/confirm' ],
		'checkout-index' => [ 'checkout/standard' ],
		'checkout-update' => [ 'checkout/update' ],
	],
	
	// Ressource Part //
	
	'admin' => [],

	'client' => [
		'html' => [
			'checkout' => [
				'standard' => [
					'onepage' => ['address','delivery','payment','summary']
					]
				],
			'basket' => [
				'cache' => [
					 //'enable' => false, // Disable basket content caching for development
				],
			],
			'common' => [
				'template' => [
					// 'baseurl' => public_path( 'packages/aimeos/shop/themes/elegance' ),
				],
			],
			'catalog' => [
				'lists' => [
				  'decorators' => [
					'global' =>array('CategoryListsDecorator'),
					],
				  ],
			  ]
		],
	],

	'controller' => [
	],

	'i18n' => [
	],

	'madmin' => [
		'cache' => [
			'manager' => [
				'name' => 'None', // Disable caching for development
			],
		],
		'log' => [
			'manager' => [
				'standard' => [
					// 'loglevel' => 7, // Enable debug logging into madmin_log table
				],
			],
		],
	],

	'mshop' => [
	],


	'command' => [
	],

	'frontend' => [
	],

	'backend' => [
	],

];
And i also changed ' adress ' to ' address ' ( didn't see that but still not working ^^ )

BlewSquare
Posts: 13
Joined: 06 Dec 2019, 10:51

Re: Set a onepage Checkout

Post by BlewSquare » 08 Dec 2019, 16:42

Well , i tried to delete and write it again and i don't know why but it's working now :lol: :lol:

Thanks a lot for yours answers again ! !

Post Reply