Altering how the basket looks
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!
Altering how the basket looks
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!
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!
Re: Altering how the basket looks
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
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, give us a star
If you like Aimeos, give us a star
Re: Altering how the basket looks
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?
Re: Altering how the basket looks
That's correct. The templates for the e-mails are available here:
https://github.com/aimeos/ai-controller ... rder/email
https://github.com/aimeos/ai-controller ... rder/email
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