> ## Documentation Index
> Fetch the complete documentation index at: https://shipmagic-docs.speedysquirrelhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloning a rule

> Copy an existing rule's conditions and rates into a new one

Cloning copies the conditions and rates from an existing rule into a new one, so you can build a variant of a rule you already trust without rebuilding it by hand.

## How to clone

<Steps>
  <Step title="Find the ID of the rule you want to copy">
    Every rule has a numeric ID. See [finding a rule ID](#finding-a-rule-id) below.
  </Step>

  <Step title="Start a new rule">
    Go to **Shipping Rates** and click **Add Rule**.
  </Step>

  <Step title="Open the clone dialog">
    Use the **Clone** action on the new rule page and enter the ID of the rule you want to copy.
  </Step>

  <Step title="Adjust and save">
    The form is populated with the source rule's conditions and rates. Change what you need, then set a **name** and a **priority** of its own and save.
  </Step>
</Steps>

<Warning>
  The clone arrives with the source rule's values, but **priority must be unique** — no two rules can share one. Give the clone its own priority before saving, or it won't save.
</Warning>

## Finding a rule ID

The rule ID is not shown on the rules list by default. Instead it's seen in the browser address bar.

<img src="https://mintcdn.com/speedysquirrel/Pt4UHewLMY7kKSs3/images/image.png?fit=max&auto=format&n=Pt4UHewLMY7kKSs3&q=85&s=239d3537eeb51fa8c1518b6d1235d3bb" alt="Image" width="1440" height="863" data-path="images/image.png" />

## What gets copied

Cloning brings across the parts of a rule that are laborious to recreate — its conditions and the rates attached to each zone. You still set the new rule's own identity: its name, its priority, and its status.

<Note>
  To copy an entire setup between two stores, use [Cloning Full Setup from One Store to Another](/cloning-full-setup-from-one-store-to-another).
</Note>

## Related

<Columns cols={2}>
  <Card title="Clone between stores" icon="right-left" href="/cloning-full-setup-from-one-store-to-another">
    Move a whole configuration to another store.
  </Card>

  <Card title="Basic shipping rate" icon="gear" href="/shipping-rates/basic-shipping-rate">
    Rule fields, priority, and exclusivity.
  </Card>

  <Card title="Ranged Rates" icon="chart-simple" href="/ranged-rates">
    The multi-band rates that benefit most from cloning.
  </Card>

  <Card title="Structuring rules" icon="sitemap" href="/how-to-structure-rules-cleanly">
    Keeping a growing rule set manageable.
  </Card>
</Columns>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.