Adapt standard basket template in the checkout process

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!
toni
Posts: 2
Joined: 04 Jul 2018, 15:12

Adapt standard basket template in the checkout process

Post by toni » 04 Jul 2018, 15:23

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

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

Re: Adapt standard basket template in the checkout process

Post by aimeos » 05 Jul 2018, 16:08

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

toni
Posts: 2
Joined: 04 Jul 2018, 15:12

Re: Adapt standard basket template in the checkout process

Post by toni » 06 Jul 2018, 09:23

Yeah, I ended up creating different CSS files for each page.

Thanks for the help! :D

Post Reply