Top-flight sides Livingston, Ross County, Kilmarnock, Motherwell and St Mirren and Championship outfits Ayr, Partick Thistle and Airdrie all booked their places in the second round of the Viaplay Cup in a dramatic group-stage finale.
The eight group winners were all guaranteed to progress through to the knockout stages, along with the three best-placed runners-up.
Ayr were 6-0 winners over Alloa to win Group A on 11 points but cinch Premiership side St Johnstone, already out, suffered a stunning 4-0 home defeat to Stirling Albion, who claimed one of the three best runners-up slots.
Partick Thistle beat the Spartans 2-1 to win Group B with nine points, with Falkirk winning 4-1 at home to Peterhead.
Livingston’s 1-0 home win over Clyde left them top of Group C with 10 points.
Hamilton drew 2-2 with Cove Rangers, with the Aberdeenshire side winning the bonus point in the penalty shoot-out.
In Group D, Ross County lost the penalty shoot-out and bonus point to Kelty Hearts following a 3-3 draw, but the Staggies remained top of the section with 10 points with Morton finishing second on nine points following a 4-1 win over Edinburgh City – their goal difference of plus seven taking them through as a best runner-up.
Airdrie emerged from their trip to Bonnyrigg Rose with a 1-0 victory which gave them an impressive 12 points from 12 in Group E.
Kilmarnock battled to a 2-1 win over Albion Rovers to clinch Group F with 10 points, with Raith Rovers finishing on nine with a 3-2 success at Annan Athletic.
Motherwell’s 3-0 win over East Fife at Fir Park saw them win Group G with 11 points. Queen’s Park were beaten 2-1 at home by Queen of the South.
St Mirren beat Forfar 4-0 in Paisley to leapfrog the visitors to the top of Group H on goal difference, with both sides on nine points.
Arbroath beat Montrose 3-0 in the other tie.
The three group winners with the best records – Airdrie, Ayr and Motherwell – will join European qualifiers Celtic, Rangers, Aberdeen, Hearts and Hibernian as seeded teams for Sunday’s draw.
Dundee can go on to nine points with a Group E home win over Inverness on Sunday and if they overcome Raith Rovers’ goal difference of plus three – the Dens Park men are on plus two – they will take the third best runner-up spot.