Skip to main content

Shipping 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

  1. Find an example that matches your needs (or is close to it).
  2. Copy the Liquid code from the example.
  3. Paste it into your Rate Lab template editor (left panel).
  4. Modify values and logic to fit your specific requirements.
  5. Click Run to test how it works with different order scenarios.

Scenario categories

Prefer the basics first? Start with the default scenario highlighted in Cart & Pricing Strategies.