Currency discount#1274
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
| keywords: ['dynamic discounts', 'currency', 'metadata', 'discounts', 'campaigns'] | ||
| --- | ||
|
|
||
| When you sell in multiple currencies, a fixed amount discount may not have the same value for every customer. For example, a \$20 discount in one currency may need an equivalent value in EUR, PLN, or another currency. |
There was a problem hiding this comment.
change PLN in example to USD (we have such a tiny Poland representation among customers that it makes more sense)
|
|
||
| Voucherify needs to receive the customer currency value before it can use it in a dynamic discount formula. The metadata definition and data flow should be handled by your integration team. Learn more about [metadata](/prepare/metadata). | ||
|
|
||
| In this example, create customer metadata with the following settings: |
There was a problem hiding this comment.
add where it should be created
| Create an amount discount and use a dynamic formula to calculate the discount value based on customer currency metadata. | ||
|
|
||
| <Steps> | ||
| <Step title="Select amount discount"> | ||
| In the discount builder, select an amount discount. | ||
|
|
||
| In **Apply discount to**, select **Apply discount to whole cart**. | ||
| </Step> | ||
|
|
||
| <Step title="Set the default discount value"> | ||
| Set the default discount value for the campaign. | ||
|
|
||
| In this example, the default discount is `$20` off the entire order. | ||
| </Step> | ||
|
|
||
| <Step title="Build the formula with customer metadata"> | ||
| Use the `switch` logical operator in the dynamic discount formula. | ||
|
|
||
| Set the switch expression to the customer metadata `Currency`. | ||
| </Step> | ||
|
|
||
| <Step title="Add currency cases"> | ||
| Add one case for each currency you support. | ||
|
|
||
| In this example: | ||
|
|
||
| - `usd` returns `20` | ||
| - `eur` returns `15` | ||
| - `pln` returns `100` | ||
| </Step> | ||
|
|
||
| <Step title="Set the formula default value"> | ||
| Set the default value to `20`. | ||
|
|
||
| The default value is used when none of the currency cases match. | ||
| </Step> | ||
| </Steps> |
There was a problem hiding this comment.
That part must be rearranged if we don't use screenshots - it could be clear when images were attached, now it is not
|
|
||
| After you save the formula, Voucherify applies the discount value that matches the customer's currency metadata. Each currency can have a different discount value that is equivalent to the default currency discount. | ||
|
|
||
| You can use discounts dependable on currency with every discount type, including product-specific promotions. |
There was a problem hiding this comment.
that should be moved up (and adjusted) to the sentence saying to "define amount discount"
| </Step> | ||
|
|
||
| <Step title="Set the formula default value"> | ||
| Set the default value to `20`. |
There was a problem hiding this comment.
isn't that already mentioned in line 41?
and it is not a default value but a fallback value, line 41 can be removed, I guess
| <Step title="Set the formula default value"> | ||
| Set the default value to `20`. | ||
|
|
||
| The default value is used when none of the currency cases match. |
There was a problem hiding this comment.
again: it is not default but fallback
joannaglow
left a comment
There was a problem hiding this comment.
not much to change, but please proceed
No description provided.