We are trying to adjust the product quantity display functionality to be inclusive of non-integer values. Also toggle functionality to respect values other than one (1) when performing increment and decrement operations. For eg. our's is a grocery store where we can buy half a pound of butter.
Tried to extend AddToCarParams.java to change "long" qunatity to "double" but couldn't. Also tried adding a new "double" attribute instead of modifying the existing "quantity", which in turn results in rewriting the whole OOB code from populator, DefaultCommerceAddToCartStrategy and there by validateAddToCnd goes on.
Could anyone please suggest me which one is better approach. or Do we have something better than these.