News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

E-Learning Change quantity to persons and add name and email fields

Started by dolomats, March 10, 2016, 00:43:02 AM

Previous topic - Next topic

dolomats

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!


Studio 42

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
....

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

Yes, using Jörgen approach is another working solution.
And you don't need to use a specific plugin

dolomats

Thanks guy's for the quick support

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

Thanks

Studio 42

This are not to add in cart, but in product.
After you see the entered value in cart and in order

dolomats

Ok this solution is also good for me but how can i make the fields of email change depending the quantity of product ?

  Thanks

Studio 42

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

dolomats

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 !

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.