Hello,
I have a hidden (display: none) select box in the addtocart section, which I enable ondemand via JS, when another field is set to a specific option.
The hidden select box is set to "disabled", like so:
<select name="customProductData[234432][432]" class="vm-chzn-select" disabled>
<option value="19794484">Hidden option 1</option>
<option value="19794485">Hidden option 2</option>
</select>
However, when Ι add the product to cart, the disabled select field, along with all its options, are added to the product info in the checkout!
Any idea how to avoid that?
EDIT: The select box is initially set to disabled by JS
You need customfield plugin, instead of this hidden thing. Then you can filter it out with a trigger
Thank you Milbo.
I am not sure I understand.
I need a 3rd party plugin? Or make a plugin myself?
I use native VM custom fields for this case. Can you point me to an example/source on how to "filter it out with a trigger"?
e.g. A VM code file I can study would be great!
Thank you!