> For the complete documentation index, see [llms.txt](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/advanced-shipping-rules.md).

# Advanced Shipping Rules

Advanced Shipping Rules allows merchants to create highly flexible and customizable shipping rates based on various conditions. With this module, you can define shipping rules based on customer actions, cart contents, product attributes, destination, and other parameters. Whether you need to set dynamic rates for specific products, offer free shipping under certain conditions, or apply tiered pricing based on weight or quantity, this module gives you full control over how shipping costs are calculated. By implementing advanced shipping logic, merchants can provide a seamless checkout experience while ensuring shipping rates align with their business needs.

**How to Use the Advanced Shipping Rules Module**

* To begin using the Advanced Shipping Rules module, you first need to ensure that the module is enabled. Once enabled, you’ll have access to all the features and functionalities of the Advanced Shipping Rules module.
*

```
<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeCfIgftbFSvJtqws6pR87TEEnDCwQyxmZ3IV4iZH6M36PRQzE0qPRXI9Gya8ND_bKeh9NzhYOl7ScgJhwE9ywB65ekT6TDz8oziNCHB9vVVtm9tNliCPT33lopS3gYdkHdjSrU?key=PWWdpJ3Y_qEUOcs-2MfQnVdS" alt=""><figcaption></figcaption></figure>
```

* Then you need to follow the setup instructions step by step to create the rules. Once done then shipping rates will work according to setting rules in the app.
*

```
<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeu87i_Xdwl181qYCKP6wORjgKXOKVtOYTPceMe22AFQBBn3M-87TKGoxvGxImp39LHshkH-iywlW7_gIMRlQY6CyMOUFpozdpXb19kHoJ1UjpYyGdx2a6KzLqszjlv9oDPZ8mM?key=PWWdpJ3Y_qEUOcs-2MfQnVdS" alt=""><figcaption></figcaption></figure>
```

* Let’s explore each settings in details:


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://script-and-theory.gitbook.io/all-in-one-commerce-docs/advanced-shipping-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
