Skip to main contentShipping Logic Examples
Rate Lab includes ready-made templates for common shipping scenarios. Use these as starting points for your own shipping strategies - copy the code, adapt it to your needs, and test it in the IDE.
How to use these examples
- Find an example that matches your needs (or is close to it).
- Copy the Liquid code from the example.
- Paste it into your Rate Lab template editor (left panel).
- Modify values and logic to fit your specific requirements.
- Click Run to test how it works with different order scenarios.
Scenario categories
- Cart & Pricing Strategies
Percentage-based pricing, tiered rates, and cart minimums.
- Vendor-Based Logic
Allocate surcharges, caps, and fees per vendor or fulfillment partner.
- Destination Controls
Adjust rates based on geography, hazmat rules, or shipping restrictions.
- Product-Level Qualifiers
Detect properties, weight classes, or SKUs to influence pricing and descriptions.
- Fulfillment & Fees
Introduce service fees, warehouse prefixes, or special handling costs.
Prefer the basics first? Start with the default scenario highlighted in Cart & Pricing Strategies.