Consumers bought less clothing and footwear in April than they did in the same month last year but opened their wallets for electronics, major appliances and status goods, purchase data released Wednesday show.

The month’s rainy weather contributed to mixed results, including a sharp increase in online sales, according to the latest numbers from MasterCard Advisors’ SpendingPulse.