#neha_docs

1 messages ¡ Page 1 of 1 (latest)

nimble thicketBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215665615961071656

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

azure moatBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lofty ingot
#

i've tried to make a code but i only see one discount possible
What do you mean by this? Why do you need to apply multiple? Your example made it seem like you only need to apply 1 discount (either 5 or 10, not both)

languid horizon
#

so i make a code WELCOME

#

if the user spends < $50 i want it to be $5 off

#

if the user spends > $50 i want it to be $10 off

#

i happen to have 6 products, 3 under $50 and 3 over $50, so specifying the discount per product could work too

#

does that make sense? the use case is for a customer rewards program

#

customer referrs a friend, friend gets $X off, they get $X credit in return
but i want the credit to be proportional to the product
but i don't want to use a %

lofty ingot
#

Yeah so why can't you just pick the correct discount to use in your code based on the price they select?

languid horizon
#

ok so i just fake the discount at the time of checkout?

#

like when doing the checkout session, i check the price ID and maybe swap the code?

#

but if the user applies the code at checkout itself, this won't work

lofty ingot
#

There's not a way to customize the discount logic in checkout to what you want to do

#

So you need to have them select price ahead of time and apply the proper discount

#

Or do as you said and have a discount code per price id

languid horizon
#

ok i think i understand. one other question

#

for a subscription

#

is there a way to grandfather people into an old price for a fixed amt. of time?

lofty ingot
#

If you want it automated, you could use a subscription schedule

languid horizon
#

oooh smart

#

ok thanks