Skip to main content

Exclude gift cards from discount codes

You may not want customers to use discount codes on gift card products. This article describes strategies for limiting discount code usage.

Most Shopify stores use discount codes to incentivize customers to make purchases. Some customers may take advantage of this by purchasing gift cards with a discount code, then spending that gift card on discounted products on your store.

Because Givy uses regular products to represent gift cards (not the Shopify gift card product), customers may be able to use discount codes on our gift card products.

Some merchants want to use discount codes with gift cards. For those merchants, we recommend turning off our fraud detection for discount codes in Givy > Settings > Fraud Protection (uncheck flag for discount codes).

Update Discount Codes

The best way to prevent discount codes from being used on gift card products is to use product discounts that do not apply to gift card products.

Note: this method does not work with order discounts, only product discounts

Step 1 - Create a new collection

The first step is to create a new collection (or update one you already use) which includes products you do want to be eligible for discount codes.

In this example, we will create a smart collection (Products > Collections > Add collection). Name it anything you'd like, set the Collection type to be Smart, then add a condition which will include only those products you want eligible for a discount.

In our example above, we're saying only products where Vendor != Givy. By default, gift card products created in Givy will have a vendor name of Givy.

You can set your own condition - add a specific tag to products you want to exclude, or group them some other way.

Step 2 - Create / update discount codes

Now, when creating or editing product discount codes, you can specify which collections the discount will be eligible for.

The collection you just created will be listed when searching for collections. Now, this discount code will only work for the products you specified.

Things to consider

Some themes automatically list all collections on your store on the /collections page. If your theme does this, it will also show this new collection, so you'll need to decide how best to handle this.

Did this answer your question?