On the product form, tick Sold by weight, choose the Unit the price is for (kg, g, lb or oz), and type the price for one unit. Give it a PLU (scale code) or a quick key so the cashier can call it up without a barcode.
Type the Price for one unit, for example the price per kg.
Optional: a PLU (scale code), the short number of the product on your labelling scale, and a Quick key for the till.
Optional: Usual container weight (tare, grams) when the product is always weighed in the same container. The till then takes that weight off every time: see How do I take off the weight of a container (tare)?.
Save.
At the till the weight comes from the scale, from a typed weight, or from a label printed by a labelling scale: see How do I sell a product by weight?.