Developer forum

Forum » Ecommerce - Standard features » Custom product field defined by the user

Custom product field defined by the user

Kasper Legarth
Reply

Hello.

I have a case where a coffee brand has a white-label solution where a customer can make their own coffee. There are variants for each flavour. But there is also an option for defining the desired strength of caffeine. This can be any number between 5 and 100. Instead of making nearly 100 of each flavour. So in this case, about 1200 variants. (13 possible flavours and 95 possible strengths)

Is it possible to have a prop on the product where we can render a number field and let the user input a number between 5 and 100? Or what would the best setup be?

Kind regards
Kasper


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
This post has been marked as an answer

Hello Kasper,
You should use an OrderlineField for this purpose.
DW will keep separate orderlines if the combination of product and value for the orderline field is different.

Adrian

Votes for this answer: 1
 
Kasper Legarth
Reply

Hi Adrian.

Of course. Should have thought of that.

Thank you :) 

 

You must be logged in to post in the forum