Hi Nicolas,
thanks, this seems to go in the right direction.
I believe I may have now to know if i can "restrict" the values of custom field, rather than the custom field itself.
example:
my customer is using a "Product A" (which is a on-line service, such as a questionnaire to fill) with a given option (see example below)
- I want that when he clicks to a "upgrade" option button he is redirect to the product A page (I now know how to do this)
- when in the product page, he can see the different variants but he can only "select" the variants that are higher than his current option
- the new price will be calcutated according to the choice he makes (i understood i will change the price calculation plugin, so I should be ok, using the initial "option" status thanks to passing the variable as you explained in you prior answer)
MY QUESTION IS : how to disable the values of the custom field "option" (i intend to use custom fields rather than characteristics t oselec the option; I hope this is the best way) ? also, if you believe there is a better way of achieving my results I am welcoming other suggestion.
MY EXAMPLE :
the customer is using "product A", with option "category analysis" among the following options :
- "basic" : user can see the results of the questionnaire only in a synthetic way
- "category analysis" : user can see the results of the questionnaire detailed by subcategory of questions
- "full analysis" : user can see full details, up to individual answers
what i want is that the customer can only select the "full analysis" level, not the other ones (he already has them). Actually, the real case is a bit more complicated because I may want him to be able to also "add" more questionnaire answers keeping the same level of analysis (so there will be a second custom field for that.
I actually have a SECOND question, so I am editing my own post to add it.
I realised that i need to change the values and the text of a"Dropdown list" custom field. You explained me before that i can pass variables to change a custom field, but how can I do that for a "Dropdown list" custom field? isn't there a better way then (refer to a specific data base, or a session array, or else?