Apply a Shopify discount code to the cart

Lisa Fockens Updated by Lisa Fockens

Your CTA should redirect to a specific URL on your Shopify store to apply the discount code. The format of the URL is:

You must replace by your shop domain, and YOUR_DISCOUNT_CODE by the discount code, you want to apply.

You can use the appropriate URL as the CTA destination:

When the CTA is clicked, Shopify will store the discount code internally and redirect the visitor to your store's homepage.

Choose a custom redirection.

If you want Shopify to redirect the visitor to another page, you can indicate the redirection path with the redirect parameter, as follows:

With this example, Shopify will redirect the visitor to after having memorized the discount code.

How did we do?

Use the wisepops() function on Shopify

Add a product to the cart when a CTA is clicked (Shopify)