You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no check on the existence of properties when the product with the properties is added to the basket. As a result, a field named as property-{{property.id}} can contain any non-existent value. And will create an instance CartItemPropertyValue with that value.
The text was updated successfully, but these errors were encountered:
Can you please provide a description how to reproduce this issue? How to define properties (what type of property) etc. and what exaclty to do to expose this incorrect behaviour.
Example: you have product with property (select field). at product page using special tools (such as the browser chrome :) ), you can add any additional options to property field.
Let we have property color:
< select name=color >
< option value="1">Red< /option >
< option value="2" >Green< /option >
< option value="3" >Blue< /option >
< /select >
If we open inspector and add Black and added it product to cart, in file lfs.cart.view (line 298) product will be added to cart, and in file lfs.cart.models (line 86) will be created CartItemPropertyValue with value "4".
I think, in function add_to_cart must be some validation for select fields and their values.
There is no check on the existence of properties when the product with the properties is added to the basket. As a result, a field named as property-{{property.id}} can contain any non-existent value. And will create an instance CartItemPropertyValue with that value.
The text was updated successfully, but these errors were encountered: