Altering how the basket looks

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!
jafo66
Posts: 65
Joined: 06 Mar 2024, 04:42

Altering how the basket looks

Post by jafo66 » 06 Jul 2024, 21:10

Background:
Our current project is to sell entries into a sports tournament. A user will be enrolling one or more of their teams into a tournament. Each team must meet the proper age and gender requirements of the tournament. What I'm looking to figure out is how to list each of the teams and the respective tournament in the basket.

Right now it looks like they registered for the same tournament 2 times, but I would like to show it like this:
Team 1 - Tournament 10 - Qty: 1 Price $X.XX
Team 2 - Tournament 10 - Qty: 1 Price $X.XX
Team5 - Tournament 12 - Qty: 1 Price $X.XX
etc...

This would be formatted nicely in a table (similar to what is already in the basket display now). It could also be handled with a master / detail type layout (note: as of now, the team is an attribute added to the product in the basket):
Tournament 10:
- Team 1
- Team 2
Tournament 12:
- Team 5

My Question:
Should I build a whole new basket detail to be able to do this OR is there a way to make a decorator / subpart that will let me list out the basket like above?

Thanks!

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

Re: Altering how the basket looks

Post by aimeos » 08 Jul 2024, 09:03

You may just need to adatpt the template if you have the data already available:
https://github.com/aimeos/ai-client-htm ... detail.php

If you need more information, try to hand them over from the detail view into the basket by storing them as custom or configurable attributes:
- https://aimeos.org/docs/latest/manual/p ... cteristics
- https://aimeos.org/docs/latest/frontend ... es/#basket
- https://github.com/aimeos/aimeos-core/b ... p#L99-L174
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

jafo66
Posts: 65
Joined: 06 Mar 2024, 04:42

Re: Altering how the basket looks

Post by jafo66 » 09 Jul 2024, 14:08

Can I assume that the common/basket detail file will also be used during the check out process? Also, I'm assuming I need to make similar changes for the email receipt and the admin side?

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

Re: Altering how the basket looks

Post by aimeos » 11 Jul 2024, 07:27

That's correct. The templates for the e-mails are available here:
https://github.com/aimeos/ai-controller ... rder/email
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply