This really drove me mad. What I found out is that when I create 2 different fields of type custom_text_plugin and add them to a product, it works.
When I for example add other things like cart variant and fill them with some options, it doesn't work anymore. Then it only stores the values that I select from the cart variant dropdowns.
So I decided to complete change my productset. All the options that I had on my products are now different articles. Not the way I wanted it, but if that's the only thing that works...
Now I have a set of products that have two fields based on the custom_text_plugin and a bunch of other products.
They do save to the database now and are shown everywhere.
It even looks like as if since version 2.0.7 (no suffix) it doesn't show the field names twice anymore.EDIT Just installed 2.0.7d this morning and now it's double again.
What is left for me is:
- A - The order of fields/values shown is wrong. What it shows now:
- . 1. Name of the first field + user value of the first field
- . 2. Name of the first field + user value of the second field
- . 3. Name of the second field + user value of the first field
- . 4. Name of the second field + user value of the second field
- B - There is no check whether the fields are filled by the user or not
- C - There is no possibility to create conditions on the field. The user inserts an integer value and I want to give it a maximum value
I checked the values written to product_attribute in tblsr_virtuemart_order_items and it says {"29":{"textinput":{"comment":"1234"}},"28":{"textinput":{"comment":"4567"}}}
That means it contains just the values of both custom_text_plugins, which is good. So, it's somewhere in the code that shows the contents....