Using shampoo in a washing machine is not recommended as it can cause a lot of suds and may lead to an overflowing or leaking washer. If you have decided to use shampoo in the washer, make sure to use it in a minimal amount or use a shampoo that produces less lather.