I need to edit the code for my site to limit the amount available of a product to 1 per person
Hi Devon,
You could look into creating a cart validation function to achieve this: Create a server-side validation function
thank you Liam, would I be able to limit the single purchase to the email and phone number provided on check out? I’m selling an NFT styled digital download after this initial purchase
Hi again Devon,
You should be able to create a cart validation function that would record the email/phone number that a customer enters and then you’d be able to use network access to query an external system to check if it fulfils the criteria.
However - you’ll need to be on a Shopify Plus plan to create a custom app that has Shopify Functions. If you’re subscribed to a lower plan, you’ll need to use a public app from the Shopify App Store for this functionality.