While adding a product, i also add weight of the product. So there is a price of product lets say X, and according to weight product price will varry (weight will be defined while adding product). Lets say we if it is 100g the price Y should be added in product cost X. Now the total cost of the product will be X+Y. Customer can not choose the option of weight. They only can see the weight of the product.
I have option of weight like 100 grams: usd6.4; 200 grams:usd7.8; 300 grams:usd9.1; 400 grams:usd10.5; 500 grams:usd11.9; 600 grams: usd13.3; 700 grams: usd14.6; 800 grams:usd16; 900 grams:usd17.4; 1kg : usd18.8