News:

Looking for documentation? Take a look on our wiki

Main Menu

Specific Input Fields Per Product

Started by urzh12, October 09, 2016, 17:25:43 PM

Previous topic - Next topic

urzh12

I have several products I'm selling. When a customer checks out, I want them to fill out custom fields that are different for each product. So, I'd like to create these fields per product on the checkout page. Once the customer has checked out, both vendor and customer are emailed an invoice with the custom field text that was filled out.

I'm familiar with the "custom shopper fields" but I don't know how to make them specific per product?

If this can't be done, what is a good recommendation as it seems this might be something someone wants to do often in VirtueMart?

VirtueMart 3.0.18
Joomla 3.6.2


GJC Web Design

make the display of the cart shopper fields dependent on the product id being in the cart

the whole display is now a subtemplate so relatively easy to do
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Studio 42

I don't think that currently you have a solution.
All customfields need to be set before adding it to cart so you can check the validity.
But why not adding this fields in the product ?
Another solution is to write a module that display product already in cart ? So your customers can add same product with other settings

Jörgen

Hello

Why can´t You add this to the product as a custom field ?
What is the information You want to add and why does it have to be added at check out ?
Can this not be added already when putting the product into the cart ?

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

urzh12

Jorgen - actually that IS what I'd like to do.

So I create a custom field and add it to the product. When someone goes to add the product to cart they will need to fill out the fields before checkout and I will see these fields on the invoice?

PRO

text input plugin comes standard in vmart

Studio 42

So the question is: How to add text inputs to a product in the cart position.

YOu have a solution since 4 years now : The Text input plugin.
Add 1 new plugin declaration for each line in the custom fields so you can set your labels(and other settings)

Add all the text inputs declared in the order you need, on product edit and save it.

When your customers fill the text, all the information is displayed with the product, in the cart and in the order.

Jörgen

Hello

Pro and Patrick sais how it should be done. Making the field mandatory needs some coding though, but the text input custom field is what You need.

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

Hi Jorgen,
The "is mandatory" parameter is a prooblem since many year, i really find strange that noone in the VM team add this, because this can be added without backward compatibility problems.

urzh12

Thanks, this is getting me close after following this: https://dev.virtuemart.net/projects/virtuemart/wiki/Product_custom_fields_Plugin_Customer_Text_Input

How can I make it so the fields ONLY show up right before clicking checkout? I don't want the fields loading on the product page OR when they add the product to the cart.

GJC Web Design

well then your back to shopper fields

if u actually explained what your trying to achieve you might receive some more useful advice
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

urzh12

Customer adds product to cart. Checks out. At the point of check out, they will need to fill in custom fields for the product and any other products they added. Complete checkout - vendor gets emailed invoice with the captured input of users. Whats not clear about what I'm asking in my post? Explain.

GJC Web Design

why can't they add them at the product stage?  It is the obvious place to add product related info!
but as u wont tell us what this info that they must add is then who knows...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

PRO

what is the input for?

what data are you getting?

urzh12

I do not want any fields loading when just adding the product to cart....I guess if I can't achieve this then it will do.

I also have product listings by category published menu item - and i don't like the fields loading for all the products in this view. I would rather the customer click a product and then the fields loaded a suppose.