-
Notifications
You must be signed in to change notification settings - Fork 6
Free shipping #1101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MaciekVoucherify
wants to merge
2
commits into
master
Choose a base branch
from
MK-free-shipping
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Free shipping #1101
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,135 @@ | ||
| --- | ||
| title: "Combine free shipping with item discounts" | ||
| description: "A step-by-step tutorial on using dynamic discounts to create a single voucher that provides both free shipping and a percentage discount on items" | ||
| keywords: ['free', 'shipping', 'dynamic', 'discounts'] | ||
| --- | ||
|
|
||
| One of the most powerful ways to use Voucherify is combining multiple discount effects into one campaign. | ||
|
|
||
| With **dynamic discounts**, you can influence prices for the whole cart or specific items based on conditions such as order value, currency, or metadata. | ||
|
|
||
| In this tutorial, you will create a single discount that gives **free shipping** (100% off) and a **5% discount** on items. | ||
|
|
||
| This setup works for: | ||
| - **Discount coupons** | ||
| - **Cart promotions** | ||
| - **Unique codes campaigns** | ||
|
|
||
| <Info> | ||
| Before you start: | ||
|
|
||
| - Your store must send **products and shipping as separate cart items**. | ||
| - Voucherify must be able to recognize your products (via the **Products catalog** or product IDs in API requests). | ||
| - Products should belong to a collection (for example, **All Products**). | ||
| - The **Shipping** item should not be part of the discounted product collection. | ||
| - You do not need to import the full catalog — product IDs can be passed dynamically in API calls. | ||
|
|
||
| See: | ||
| - [Products](/prepare/products) | ||
| - [Product collections](/prepare/product-collections) | ||
| </Info> | ||
|
|
||
| ## Create the campaign | ||
|
|
||
| Create a campaign using your preferred type, for example **Discount Coupons** or **Cart Promotion**. | ||
|
|
||
| Configure the basic campaign settings such as code generation, timeframe, and limits as needed. | ||
|
|
||
| If you need help with campaign setup, see: | ||
| - [Create discount coupons](/build/create-discount-coupons) | ||
| - [Create cart promotions](/build/create-discount-promotions) | ||
|
|
||
| ## Configure free shipping and item discount | ||
|
|
||
| Define two price rules using **Products discounts → New price**. | ||
|
|
||
| <Steps> | ||
| <Step title="Add discount definitions"> | ||
| In the discount configuration step, select: | ||
|
|
||
| **Products discounts → New price** | ||
|
|
||
| Then click **Add another** to create a second rule. | ||
| </Step> | ||
|
|
||
| <Step title="Set free shipping"> | ||
| - Select **Shipping** as the product. | ||
| - Set **New price** to `0`. | ||
|
|
||
| This makes shipping free. | ||
| </Step> | ||
|
|
||
| <Step title="Set a 5% item discount"> | ||
| - Select **All Products** (or another product collection). | ||
| - Set a safe **fallback value** (for example, original price). | ||
|
|
||
| Then build the formula: | ||
|
|
||
| - **Order item → Price** | ||
| - Multiply (`*`) | ||
| - `0.95` | ||
|
|
||
| This sets the new price to 95% of the original value, which gives a 5% discount. | ||
| </Step> | ||
|
|
||
| <Step title="Save the campaign"> | ||
| Save the campaign and test it in your checkout flow. | ||
| </Step> | ||
| </Steps> | ||
|
|
||
| ## Notify customers | ||
|
|
||
| Use your preferred communication channel to promote the offer, such as: | ||
|
|
||
| - Voucherify distributions | ||
| - Email or push notifications | ||
| - On-site banners or checkout messages | ||
|
|
||
| When customers apply the discount, they receive **free shipping** and a **5% item discount** in a single campaign. | ||
|
|
||
| ## Related features | ||
|
|
||
| <AccordionGroup> | ||
|
|
||
| <Accordion title="Validation rules"> | ||
|
|
||
| Use validation rules to control when the discount can be applied. | ||
|
|
||
| For example, you can restrict the campaign to: | ||
| - minimum order value | ||
| - specific customer segments | ||
| - selected sales channels | ||
|
|
||
| Validation rules work alongside dynamic discounts: validation rules define **when the campaign is valid**, while price rules define **how prices are changed**. | ||
|
|
||
| See [Create validation rules](/optimize/create-validation-rules). | ||
|
|
||
| </Accordion> | ||
|
|
||
| <Accordion title="Customer segments"> | ||
|
|
||
| Target the promotion to specific customer groups, such as new users or VIP customers. | ||
|
|
||
| See [Customer segments](/prepare/customer-segments). | ||
|
|
||
| </Accordion> | ||
|
|
||
| <Accordion title="Campaign limits"> | ||
|
|
||
| Control how often the campaign can be redeemed, either per customer or globally. | ||
|
|
||
| This is useful for limiting the impact of combined discounts. | ||
|
|
||
| See [Campaign limits](/guides/campaign-limits). | ||
|
|
||
| </Accordion> | ||
|
|
||
| <Accordion title="Product bundles"> | ||
|
|
||
| If you need more advanced cart logic, for example conditional discounts based on product combinations, consider using bundles together with dynamic discounts. | ||
|
|
||
| See [Product bundles](/build/product-bundles). | ||
|
|
||
| </Accordion> | ||
|
|
||
| </AccordionGroup> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the last section, add
## Related features. Mention especially validation rules. Think of other features that can be combined here or ask the Agent to suggest something.