The sentence describes a past decision and a subsequent event. The verb 'have' should be in the past tense to match the context of the decision made in the past. Therefore, the correct form is 'had'.
The corrected sentence is: My classmates decided to arrange a party. They had a nice time.