VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dolomats on March 10, 2016, 00:43:02 AM

Title: E-Learning Change quantity to persons and add name and email fields
Post by: dolomats on March 10, 2016, 00:43:02 AM
Hello,

I'm here bugging for your help  ??? :o.

I'm making a small E-learning website and using VirtueMart for that I'm just stuck editing the shopping-cart form.

Since I'm selling courses I don't need quantity but need persons when a teacher is ordering a course he need to specify how many students and depending of the student number I need to show field name and email for each before processing the order. But I wasn't able to do that.

Joomla! 3.4.8

See picture below for more information.

Is there any help please!

Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Studio 42 on March 10, 2016, 09:31:28 AM
YOu can change label quantity to persons, if this are always persons.
Another solution is to develop a plugin for this and dont use quantity, but a secondary field (calculated for eg. of number of mail or user entered.) to calculate the total quantity.
Eg. displayed in cart
NAME
E-learning course
students list:
Charlie,Sam,Luke,Diana
Total 4x 40.83€ = 204,17€
PRICE 
204,17€
QUANTITY
1
....
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Jörgen on March 10, 2016, 09:49:33 AM
Hello

Would not a custom string for the students name and one for e-mail work ?
Buying one Product per student ?
Each item in the ínvoice would be data for one student.

regards

Jörgen @ Kreativ Fotografi
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Studio 42 on March 10, 2016, 09:52:15 AM
Yes, using Jörgen approach is another working solution.
And you don't need to use a specific plugin
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: dolomats on March 10, 2016, 14:49:09 PM
Thanks guy's for the quick support

So the question is how can i add the custom field on the cart form please

Thanks
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Studio 42 on March 10, 2016, 23:25:50 PM
This are not to add in cart, but in product.
After you see the entered value in cart and in order
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: dolomats on March 11, 2016, 00:15:23 AM
Ok this solution is also good for me but how can i make the fields of email change depending the quantity of product ?

  Thanks
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Studio 42 on March 11, 2016, 00:32:35 AM
With Jörgen solution,
the customer have to enter a name+ an email in the product  then click add to cart.
Then change the name+email and click add to cart
Then change the name+email and click add to cart
....
At checkout, you see then for each entered student
the product name + student name+email (and price, quantity ..) for each student
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: dolomats on March 11, 2016, 00:57:37 AM
hmmmm me i wanted that he will be able to choose the quantity (persons) and depending of the quantity number he will have text fields to add names ad email no need to do same think many time !
Title: Re: E-Learning Change quantity to persons and add name and email fields
Post by: Jörgen on March 11, 2016, 06:17:42 AM
Hello

You could find someone that would make some kind of custom work.
But You have to decide if it is worth saving only ONE click for each student.

Regards

Jörgen @ Kreativ Fotografi