Skip to Content
Former Member
Aug 29, 2018 at 07:52 PM

Can we have the product quantity to be added inclusive of non-integer values while add to cart.


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 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.