You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My objective is to create a promotion where the customer automatically get for example 10% OFF in a product if they buy 3 or more of that particular product.
While I don't see any option for this in the Admin UI, I read the docs and also asked KapaAI in the discord and I tried creating the promotion through the Admin API using the following payload
After hitting the endpoint, this is what I see in the Admin UI. Small note here, initially what is in the purple rectangle was empty, but neither empty or adding the things manually there seems to work.
Here is the whole JSON I see when I click on it in case it is useful for you. I collapsed it here because it is too long.
Please do not hesitate to contact me if you need further information or help on this one.
Thank you very much.
Expected behavior
The expected behavior here is, when the customer selects 3 or more quantity of that particular product, they should see that item with a 10% OFF.
To clarify here, that 10% OFF will be applied over the whole 3 quantity, not just the "last one".
Actual behavior
The actual behavior here is that I don't see any promotion being applied. I can't even see any promotion in the cart body response:
Here's the full cart JSON response in case it is useful for you
Package.json file
Node.js version
v22
Database and its version
16.2
Operating system name and version
Mac OS Sequoia
Browser name
Chrome
What happended?
Context first
My objective is to create a promotion where the customer automatically get for example 10% OFF in a product if they buy 3 or more of that particular product.
While I don't see any option for this in the Admin UI, I read the docs and also asked KapaAI in the discord and I tried creating the promotion through the Admin API using the following payload
After hitting the endpoint, this is what I see in the Admin UI. Small note here, initially what is in the purple rectangle was empty, but neither empty or adding the things manually there seems to work.
Here is the whole JSON I see when I click on it in case it is useful for you. I collapsed it here because it is too long.
Here's the product as I see it in the Admin UI:
Please do not hesitate to contact me if you need further information or help on this one.
Thank you very much.
Expected behavior
The expected behavior here is, when the customer selects 3 or more quantity of that particular product, they should see that item with a 10% OFF.
To clarify here, that 10% OFF will be applied over the whole 3 quantity, not just the "last one".
Actual behavior
The actual behavior here is that I don't see any promotion being applied. I can't even see any promotion in the cart body response:
Here's the full cart JSON response in case it is useful for you
Link to reproduction repo
https://github.com/medusajs/nextjs-starter-medusa
The text was updated successfully, but these errors were encountered: