Can Shopify Scripts stop current customers buying NEW customers discounts?

We are a German based fitness studio. Our marketing leads people to a website where they purchase credits (passes) to attend our HiiT workouts, and Cryotherapy sessions. Using Instagram and Facebook we often advertise special offers to attract new customers. Many of our current customers also learn of these special offers and then we lose money as they buy them also.

It seems that Shopify Scripts could be a solution. However, if our database of customers is kept in a separate Tech platform can the script then still block the full list of our current customers?

What we want to achieve is that when someone goes to purchase the new customer special offer the Shopify form captures the First, Last name, Email and Phone. These four pieces of information are then used to look through the full list of our current customers. If the name, email or phone number matches a current customer then the Shopify checkout will notify them that they cannot make this purchase as it is only available to new customers.

Is this possible? Can Scripts do it? How do we get the Shopify side to have access to our full current customer list on the other platform?

Hi there, the easiest way to do this is by creating an automatic discount in Shopify that is only available to new customers.

You would have the full price showing on the product page and add a disclaimer message that new customers can access XX Price at checkout.

Think this will be more cost-effective then getting a script written and also make it easier for your team to maintain and update.

Edit You can use an app like matrixify or even just the customer import feature within Shopify to add the existing customers details into Shopify so the automatic discount can figure out who the new customers are.