Pice per kilo feature

I Have put a cart together for a food company. Is it possible to offer food for sale at a price per kilo rate that then gets calculated. For instance the client should be able to order a chicken at 4 kilos in weight and the price is then calculated. Can this be set up?

If you only need integers, you could just set your price per kilo and ask customers to enter how much kilo’s they want as a quantity.

Many thanks for this… I know I am going mad but how do I do this?