Create a Hidden Discount Code

Create a Hidden Discount Code

RedFern
Visitor
1 0 0

Hello,
With all of the "Discount Code" Sniffers out there I want to offer a discount that is undiscoverable by those BOTs, extensions, or apps, be it Capitol one or whatever. I sell custom pet items. I would like to offer breeders I have worked with in the past a significant discount for them to offer their customers, the issue I run into is that I have already had a discount applied to an item purchased that I never published anywhere. Direct email discount code. Somehow one of these what I call "Sniffers" smelled out this code and applied it to a recent purchase. It wasn't a significant loss but that made me rethink how I want to offer those discounts to breeders? How can I tweak the code so that these codes are undiscoverable or create a "Secret" area for each breeder to access and create a one time code for each new visitor to their assigned area? I do have some coding experience and access to some really ground breaking programmers. Any advise or suggestions would be greatly appreciated.
Thank you for your time and troubles.

 

Replies 2 (2)

PaulNewton
Shopify Partner
7722 678 1626

https://xyproblem.info/ Is the actual goal  reduced prices for certain customers, but trying to force that through the idea of discount-codes.

Two can keep a secret...

It doesn't matter what gymnastics you pull if you give someone a reusable discount-code useable by anyone that code will get shared either by them just forwarding, messaging or a browser extension reading it for them.

 

 

Restrict discounts to specific customers on Shopify, create a discount code for a customer segment. Here's how:

  1. Go to Customers in your Shopify admin.
  2. Click Segments.
  3. Choose a segment and click Use segment.
  4. Select Discount and create your code.

 https://help.shopify.com/en/manual/discounts/discount-types/percentage-fixed-amount#:~:text=Customer... 

 

Really you may need

A) an app to give discounts in checkout for specifics customers(tags,metafields,etc).

This should be simpler with the newer shopify-functions features apps can use.

See this thread for customer based automatic discounts feature comments:

https://community.shopify.com/c/shopify-discussions/apply-automatic-discount-to-tagged-customers/m-p... 

And make a formal feature request to shopify support not just a forum thread.

 

Or B) do backend validation and cancel orders using discount-codes from ineligible customers

A scriptable automation app like mechanic can handle custom scenarios though they don't have this exact task.

https://tasks.mechanic.dev/?q=cancel 

 

However,


@RedFern wrote:

How can I tweak the code so that these codes are undiscoverable or create a "Secret" area for each breeder to access and create a one time code for each new visitor to their assigned area?

If you want to gate content areas of the website see apps like locksmith(from lightward also makers of mechanic) 

Though that cannot prevent human to human information sharing once they know a discount-code.

 

If the real goal is reduced prices for certain customers

Use separate products only they can access(locksmith) along with backend order validation(shopify flow, mechanic, etc).

mechanic can make custom draft orders from carts https://tasks.mechanic.dev/create-a-draft-order-from-the-cart 

Or use separate store available only to those customers, similar to wholesale customizations or setups.

 

Also see token gating

https://help.shopify.com/en/manual/products/digital-service-product/nfts#tokengated-commerce 

 

Good Hunting.

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


tobebuilds
Shopify Partner
557 42 151

Hi RedFern,

 

It sounds like you have a specific list of people who you want to receive discounts on your products.

 

If so, then you can try our app, Regios Automatic Discounts (4.8 stars, Built for Shopify), which allows you to automatically discount orders for specific customers, based on tags/metafields/etc.

 

However, if you don't already know in advance who exactly you want to be eligible for the discount, then there's not much you can do to make a manual discount code undiscoverable.

 

Even if you were to offer unique manual discount codes to each person, it wouldn't fully solve the problem. It would only make it so that you could track the source of a discount leak.

 

Best,

Tobe

Founder, Regios Discounts app (4.8 stars, 83 reviews, Built for Shopify)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer
- Often imitated, never duplicated