Custom fields for each item in basket

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
ntnsapre
Posts: 21
Joined: 16 Jan 2018, 20:31

Custom fields for each item in basket

Post by ntnsapre » 24 Jan 2018, 08:58

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!

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

Re: Custom fields for each item in basket

Post by aimeos » 24 Jan 2018, 22:05

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

ntnsapre
Posts: 21
Joined: 16 Jan 2018, 20:31

Re: Custom fields for each item in basket

Post by ntnsapre » 09 Feb 2018, 12:13

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?

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

Re: Custom fields for each item in basket

Post by aimeos » 09 Feb 2018, 13:05

You have to do this via Javascript as there's currently no other way to do the validation.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply