Author Topic: mandatory custom fields  (Read 190 times)

melsonmarketing

  • Beginner
  • *
  • Posts: 28
mandatory custom fields
« on: November 22, 2017, 15:55:25 pm »
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

  • Jr. Member
  • **
  • Posts: 156
    • sO couture
  • VirtueMart Version: 3.2.4
Re: mandatory custom fields
« Reply #1 on: November 22, 2017, 22:48:23 pm »
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...
Webmaster for my wife (link in my profile ;)
Extensions / plugins : POSForWebshops, TemplatecreatorCK ,MaximenuCK, and PageBuilderCK, VM BatchEdit Pro, VM CustomFilters Pro, Awocoupon Pro, slogin, supersaas,  among other things...
Joomla! 3.8.2//VM 3.2.4//PHP7.0.18 & mariadb 10.1.22 on Debian
big up to notepad++!!!!

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2413
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: mandatory custom fields
« Reply #2 on: December 04, 2017, 17:21:32 pm »
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

  • Beginner
  • *
  • Posts: 28
Re: mandatory custom fields
« Reply #3 on: December 07, 2017, 10:47:37 am »
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

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2413
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: mandatory custom fields
« Reply #4 on: December 07, 2017, 12:20:07 pm »
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.