News:

Looking for documentation? Take a look on our wiki

Main Menu

mandatory custom fields

Started by melsonmarketing, November 22, 2017, 15:55:25 PM

Previous topic - Next topic

melsonmarketing

Hi
I'm reopening this question as I didn't find any solution after reading her for hours.

Joomla! 3.8.2
VM 3.2.4

Example: https://www.foerst-class.de/berufsbekleidung-damen/blazer/eva-2335-detail

Colours (Farben) in this shop are child-variants (as each color is represented by a category).
Sizes (Wählen Sie Ihre Größe) are handled by a custom field (string), with an empty option added.

If the customer doesn't select a size, the product is added to the cart without warning. In many cases the shopowner has to contact the customer and ask for the correct size(es). That can be awful when teamclothing for 15 or more people is ordered...

Is there still possibility to mark the field as mandatory?

I've seen a plugin at www.virtuemart-required-custom-fields.com/ that should do the trick but also reviews about it, that don't sound so good...

Also "Custom Field for all" offers this option - but that would mean, that we'll have to rewrite the sizefield for hundreds of products  :o

Does anyone have another solution to fix this?

Regards
Michael

aftertaf

With VM BE Pro you could add the custom field + value to multiple parent products... i think.

Otherwise I wouldn't be sure to manage it myself, but a template override could maybe grab the value and condition the display of the add to Cart button...
doesn't fix for you but couple of pointers...

Studio 42

You can now use https://shop.st42.fr/en/products/shortcodes.htm.
If a feature is missing, you can contact me in the product.
See doc https://shop.st42.fr/en/shorcodes-english-doc#cart_input screenshot are in french for now, but the back-end have english translation of course.
And a sample http://pro.st42.fr/fr/shortcodes/test-product-no4.html the field Email is a text input with E-mail validation for eg., of course all the 17 plugins are included in the shortcode plugin(more to come each month).
You have color inputs and option with mandatory validation. So a customer can never forget an attribute needed in the order.

melsonmarketing

Nice Plugin - just bought it :-)

But it doesn't solve my actual problem.

There are some hundred existing products and variants in the shop.

Due to several migrations and updates we still use the "string" customfield to pick the size of a product.

So my problem is to make the EXISTING fields mandatory.


Studio 42

Hi, only a core hack can help you currently.
But as aftertaf explained, you can mass update your shop with vm be pro.
You can mass remove the old field and add shortcode plugin in vm be pro to show the new field in same product.
The only condition is that you know the product having this field.
If you have any problem to add it with vm be pro, contact me.