Hello,
please add a Hidden Input AttributeControlType.
I'm making some custom changes to support contact lenses. A contact lense can have 6 product attributes, each one with a lot of options (radius, diameter, power, etc.) However, there are subtle rules involved in the attributes that don't let me use the attribute combinations as they are: I can have up to 300.000 different combinations but not all of them are applicable so I had to implement a rule engine to evaluate what attribute values to show after selecting an attribute.
My implementation uses new classes for the rules and the attributes but fits nicely on the of NopCommerce so when a customer selects all attribute values for the contact lenses, I save the correct SKU in an ProductAttribute that I'm not showing, and the final attribute combination in another ProductAttribute that I'm not showing either (f.e. Radius=+8,60; Power=-08,25; Diameter=+14,20...). This way when a customer adds the product to the cart the SKU and Description attributes are popullated properly as my classes are just for showing nested dropdownlists with values based on rules. Currently I'm using ProductAttributes of type TextBox but I had to change ~/Views/Product/_ProductAttributes.cshtml to support hiding ProductAttributes. If you can add a Hidden Input control type for ProductAttributes I don't have to change anything in the core.
Thank you very much
please add a Hidden Input AttributeControlType.
I'm making some custom changes to support contact lenses. A contact lense can have 6 product attributes, each one with a lot of options (radius, diameter, power, etc.) However, there are subtle rules involved in the attributes that don't let me use the attribute combinations as they are: I can have up to 300.000 different combinations but not all of them are applicable so I had to implement a rule engine to evaluate what attribute values to show after selecting an attribute.
My implementation uses new classes for the rules and the attributes but fits nicely on the of NopCommerce so when a customer selects all attribute values for the contact lenses, I save the correct SKU in an ProductAttribute that I'm not showing, and the final attribute combination in another ProductAttribute that I'm not showing either (f.e. Radius=+8,60; Power=-08,25; Diameter=+14,20...). This way when a customer adds the product to the cart the SKU and Description attributes are popullated properly as my classes are just for showing nested dropdownlists with values based on rules. Currently I'm using ProductAttributes of type TextBox but I had to change ~/Views/Product/_ProductAttributes.cshtml to support hiding ProductAttributes. If you can add a Hidden Input control type for ProductAttributes I don't have to change anything in the core.
Thank you very much
Why not generate your SKU when adding the product to the cart?