A shopkeeper who sold illegal cigarettes and vapes in a number of stores has been jailed for three years and eight months.