First time posting!> > Hey y’all, so I’m trying to figure out what/how to create a page or something that will show our customers the secret gift they received based on a code they were given. So, our customers would go to our site, enter their code and the screen would show them a predetermined gift. They have the capability to see this without being in a “cart”. Thanks for any input!
Hi Thevaultshoppe,
Shopify provides a Gift Card API that you could use to retrieve information related to gift cards and then you could also use Liquid to display the secret gift. Here’s a basic outline of how you could do it:
-
Create unique gift card codes: In your Shopify admin, you can create gift cards and assign them specific values (which could represent different gifts). You can then distribute these codes to your customers.
-
Develop a gift card checking page: You would need to create a separate page where customers can enter their gift card codes - you can use Liquid and HTML for this.
-
Gift card verification: When a customer enters a code, you can use Shopify’s Gift Card API to verify the code and retrieve the value associated with it.
-
Display the gift: Depending on the value retrieved, you can then display the corresponding gift to the customer based on logic set up with Liquid.
This is just a general approach, but it should be possible for this use case. Hope this helps!