Page 1 of 1

Custom fields for each item in basket

Posted: 24 Jan 2018, 08:58
by ntnsapre
I'm using Aimeos to sell online virtual courses, where each course is a product. In a scenario where a single customer is buying a course for multiple people (quantity 5 for example), how would I be able to get additional details on the people? Specifically, how can I add a few custom fields for name and email address attached to each of the 5 items?

Hope this question makes sense!

Re: Custom fields for each item in basket

Posted: 24 Jan 2018, 22:05
by aimeos
Yes, sure. You can use attributes of type "custom" like in the demo (text for print) multiple times:
http://laravel.demo.aimeos.org/default/ ... _article/0

There's also an Aimeos based site that did something very similar than you want to do:
https://www.skischule-mittelberg.at/buc ... d_pos%5D=5

Re: Custom fields for each item in basket

Posted: 09 Feb 2018, 12:13
by ntnsapre
Ok, I think I'm almost there!

Is there a way to add validation to the additional fields? For name and email, and make them required fields?

Re: Custom fields for each item in basket

Posted: 09 Feb 2018, 13:05
by aimeos
You have to do this via Javascript as there's currently no other way to do the validation.