Merge basket and 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)
Spam and unrelated posts will be removed immediately!
Gagik
Posts: 38
Joined: 05 Dec 2023, 06:58

Merge basket and checkout

Post by Gagik » 19 Dec 2023, 07:56

Hello,

PHP version: 8.1
Laravel version: 10
Aimeos version: 2023.10
Environment: Linux

I changed in my 'config/shop.php' file checkout to 'onepage'
- 'html/checkout/standard/onepage' => ['address', 'delivery', 'payment', 'summary']

But I have one problem. After of that I have 2 steps, first is 'basket' step, second is 'checkout' which includes 'address', 'delivery', 'payment', 'summary' steps.

I want to merge 'basket' and 'checkout' into one page. Like this - on the top of page is basket below address, delivery, payment and summary.

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

Re: Merge basket and checkout

Post by aimeos » 22 Dec 2023, 09:32

You need to add "basket/standard" to the checkout page here:
https://github.com/aimeos/aimeos-larave ... op.php#L44

Then, you need to overwrite the the checkout/standard Blade template and add the "basket/standard" header and body:
https://github.com/aimeos/aimeos-larave ... .blade.php
See: https://aimeos.org/docs/latest/laravel/ ... -templates

Finally, you have to change the basket target to the checkout target ("aimeos_shop_checkout"):
https://github.com/aimeos/aimeos-larave ... t.php#L204
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply