This depends on the bus operator. In general, you can reckon that infants below 2-3 years of age travel for free if they can share a seat with an adult.
If children's discounts are available, an age field will be available on checkout, and the discount will apply automatically.