FROM CACHE - de_header
Diese Community hat auf Peer-to-Peer-Support umgestellt. Der Shopify Support wird diese Community nicht mehr betreuen. Wir empfehlen dir, dich mit anderen Händler:innen und Partner:innen in Verbindung zu setzen, um Unterstützung zu erhalten und Erfahrungen auszutauschen. Bitte melde weiterhin alles, was gegen unseren Verhaltenskodex verstößt, oder Inhalte, die deiner Meinung nach entfernt werden sollten.

Re: Gift code redeem page

Gift code redeem page

gesam
Neues Mitglied
4 0 1

HI everyone, 

 

I would like to create a separate page so the customer can redeem their code easily without having to select a product and go to checkout. The discount code would be generated for 1 product in particular. Only this product can be redeemed. 

 

I would like that my customer enters his code like bellow: 

gesam_0-1678879788758.png

then he would be automatically redirected to the checkout of the product without having to pay any fees only enters his personal information that's it. 

 

I want to make it super easy, not product searching, selection, chekout- A direct code activation that sends the costumer directly to his card with his gifted product. 

 

Best, 

 

Gesa 

 

3 ANTWORTEN 3

Gabe
Shopify Staff (Retired)
19233 3006 4433

Hey @gesam 

 

Thanks for your question and you have reached the German Community here but we can chat in English that's no problem!

 

To create a separate page and form in your Shopify store where customers can redeem their code easily and be redirected to the checkout of the designated product, you could try something like the following steps:

  • Create a new page in your Shopify store by going to "Online Store" > "Pages" > "Add page".
  • Give the page a title such as "Redeem Your Code" and add a message explaining how the code works and which product it is valid for.
  • Create a new form on the page where customers can enter their code. To do this, you can use an app such as Form Builder or create a custom form using HTML and Liquid.
  • Add a code validation script to the form that checks whether the code entered by the customer is valid for the designated product. You can use an app like Coupon Validator to accomplish this.
  • Once the customer enters a valid code, use a redirect script to send them directly to the checkout page for the designated product. You can use an app like Easy Redirects to accomplish this.

Modify the checkout page to remove any unnecessary fields or steps to make the process as simple as possible for the customer. Test the code redemption process to ensure that it works smoothly for customers.

 

Hope that can bring you closer to finding a solution for your specific needs and requirements! With any further questions I highly recommend our experts and programmers and I can suggest a few for you if you like! 😉

Gabe | Social Care @ Shopify
 - War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen! 
 - Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung 
 - Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog

fel2023
Besucher
1 0 0

Thanks Gabe for the thorough explanation.

Do you have any shopify app for coupon validation that you would recommend? 
Couldn't find "Coupon Validator" on shopify apps.

Appreciated,
Best
Frederico

Gabe
Shopify Staff (Retired)
19233 3006 4433

Hey @fel2023 

 

Oh not really sure. Maybe this app?

 

There isn't really a direct endpoint for that Especially if the discount code is limited to one use per customer, but you could use an AWS lambda function that hits the discount lookup (/admin/api/2019-10/discount_codes/lookup.json?code=)

 

Then check the content type returned e.g. If it's html or json and see if there's a not-found error. Just have a form setup to hit the AWS endpoint and it should return a True or False.

 

Here's a "how-to" on checking if a Shopify discount code is valid from the storefront or Script Tag.

Gabe | Social Care @ Shopify
 - War meine Antwort hilfreich? Klicke Like um es mich wissen zu lassen! 
 - Wurde deine Frage beantwortet? Markiere es als Akzeptierte Lösung 
 - Um mehr zu erfahren, besuche das Shopify Help Center oder den Shopify Blog