Author Topic: Three custom fields which are mandatory before the customer can press add to car  (Read 507 times)

nkamp

  • Jr. Member
  • **
  • Posts: 64
Hello,

I saw the vm demo and I thought that's were I'm looking for the multi variant. But maybe I don't understand I hope that don't need to create child products because I have three options for the custormer.
first one: is a lenght of a dog leash from 31, 32, 33 .... 78 cm.
second: color of the leash: red, black, green.
Third: pins 12mm, 15mm, 21 mm.

If understand it well with a multivariant than I have to create 47 * 3 * 3 = 423 child products? that is not to maintain. for the price it make no difference and the stock information for these different combination is not important.

The important thing is that the customer has to decide all the three options, before he press the add to cart button.

I hope that it is possible to create one product with these three options. And let say all three starts with Select length, Select color, Select pin.
Step 1: If the customer select a length, than he can choose the color and the pin length.
Step 2 the customer select these a color and the pin length.
Step 3: after he has selected all three a value, the add to cart button becomes available.

Is that possible?

Nico

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3241
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Do you need to manage the stock for all this options or not?

nkamp

  • Jr. Member
  • **
  • Posts: 64
No it is not necessary to manage stock for all this options.

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3241
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
You need to show/hide by step the options and add to cart using javascript.

nkamp

  • Jr. Member
  • **
  • Posts: 64
You need to show/hide by step the options and add to cart using javascript.

Maybe it is stupid from me, but I don't know exactly what you mean by that. Must I configure this at the custom fields or the product itself? If custom field what kind of type do you mean?

I have used string before but with this the cliƫnt can order without selecting a custom field value.
I have been trying/studying with the multi variant.

Or do you have a screenshot?

Nico

anantmaks

  • Beginner
  • *
  • Posts: 43
  • Indian Software Engineer
Until you require the stock to be managed based on each variant, simply custom fields can be used to achieve this. If you want to use them, you can check this:
https://forum.virtuemart.net/index.php?topic=140344

Moreover, if you want the stock to be managed based on custom field(s), there is an add-on extension available for that i.e., Stockable custom field
Anant Garg
Ghaziabad, India

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3241
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
You can use my plugin https://shop.st42.fr/en/products/shortcodes.htm
See demo for your case http://pro.st42.fr/en/shortcodes/dog-leash.html
And it suppport Cart colors and percentage price calculation

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1331