Two men have been sentenced to lengthy prison terms for their roles in a brutal 2023 attack on a Glasgow shopkeeper.