Yes, it all makes sense and I get your point.
But with this new instruction, just simple coding won’t work. At this point, you’d need a custom Shopify app of yours to perform this function and I can help you develop one.
Can I have your store URL for starters?