Mahgoop wrote:My customers ordered quantity can be (1.5,0.5,1.25,10.5,........) they can only buy Int Quantity
how i can handle it
i'm using NopCommerce 2.7
Here are two ideas of how you could address it.
Option 1 Edit the source code. I have not done what you are talking about here but I would guess that you would need to change the order quantity variable from "int" to "double". You might also need to manually change that field from int to double in your database as well. I am not sure how or where all you would need to edit the code to get it to work. Also you would want to make sure this did not mess up any of the shipping plugins etc. Also, you would have to come up with some way to keep someone from entering something like 1.1635.
Option 2Use product variants on your products to define the quantity amount. This is the option I used on my store. Depending on the products you are selling this might work out just fine.
Here is an example:
Imagine you are selling corn flour in different size bags. You could set up the products as follows
variant 1 - 1 pound bag
variant 2 - 2.5 pound bag
variant 3 - 4.5 pound bag
variant 4 - 10.25 pound bag
Someone could order a quantity of one of variant 2 or they could order two. Thus, getting two 2.5 pound bags of corn flour.
What kind of products are you selling? If you could break them up this way or by using product attributes it might be an easy solution to the problem.