Adapt standard basket template in the checkout process
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Adapt standard basket template in the checkout process
Hi!
My goal is essentially to change up the HTML and the design of the basket in the checkout process where it appears (1. Basket and 5. Summary section) without changing the basket look in the catalog/detail part when you add a product to your basket, which opens up a modal.
So the basket which appears in catalog/detail should remain the same, unchanged. The problem is that ext/esa/client/html/templates/basket/standard/body-standard.php (my extension is named esa, and I've copied
ext/ai-client-html/client/html/templates into the ext/esa/client/html/templates directory) is the same file and it opens up when you add a product to your basket, and when you go to the checkout basket section and the summary section.
I've stumbled upon this in your documentation but I'm not sure is it the right place to be according to my wishes.
https://aimeos.org/docs/Configuration/C ... t_standard
https://aimeos.org/docs/Configuration/C ... ary/detail
I've honestly got no clue how to continue, my idea was to add a new file containing the same basket content and somehow to include that new basket in the checkout process by redirecting it from the BasketController.
Any help is appreciated!
Laravel 5.6, PHP 7.1.17, aimeos ~2018.04
Ubuntu 16.04.4
My goal is essentially to change up the HTML and the design of the basket in the checkout process where it appears (1. Basket and 5. Summary section) without changing the basket look in the catalog/detail part when you add a product to your basket, which opens up a modal.
So the basket which appears in catalog/detail should remain the same, unchanged. The problem is that ext/esa/client/html/templates/basket/standard/body-standard.php (my extension is named esa, and I've copied
ext/ai-client-html/client/html/templates into the ext/esa/client/html/templates directory) is the same file and it opens up when you add a product to your basket, and when you go to the checkout basket section and the summary section.
I've stumbled upon this in your documentation but I'm not sure is it the right place to be according to my wishes.
https://aimeos.org/docs/Configuration/C ... t_standard
https://aimeos.org/docs/Configuration/C ... ary/detail
I've honestly got no clue how to continue, my idea was to add a new file containing the same basket content and somehow to include that new basket in the checkout process by redirecting it from the BasketController.
Any help is appreciated!
Laravel 5.6, PHP 7.1.17, aimeos ~2018.04
Ubuntu 16.04.4
Re: Adapt standard basket template in the checkout process
The basket in the dialog that's shown at the catalog detail page is the same as in the basket page. The page is loaded by AJAX and the non-basket content is stripped away so it's difficult to create two totally different designs. Maybe you can use different CSS files included at each page:
- Catalog detail: https://github.com/aimeos/aimeos-larave ... .blade.php
- Basket: https://github.com/aimeos/aimeos-larave ... .blade.php
Copy the blade templates to your resources/views/vendor/shop/.../ directory so they are used instead of the standard ones by Laravel.
- Catalog detail: https://github.com/aimeos/aimeos-larave ... .blade.php
- Basket: https://github.com/aimeos/aimeos-larave ... .blade.php
Copy the blade templates to your resources/views/vendor/shop/.../ directory so they are used instead of the standard ones by Laravel.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Adapt standard basket template in the checkout process
Yeah, I ended up creating different CSS files for each page.
Thanks for the help!
Thanks for the help!