# How to add rates on CHECKOUT PAGE?

{% hint style="warning" %}
DingDoong's scope:&#x20;

Currently, we are not supporting defining delivery's rate in-app. However, users can use Shopify rates instead.
{% endhint %}

{% hint style="success" %}
Shopify rates are ideal for merchants who want:

**Flat shipping rate:**&#x20;

* A fixed shipping cost charged per order regardless of weight or price
* For example,  $5 standard, $15 expedited

**Price-based shipping rates&#x20;**<mark style="color:yellow;">**(Popular)**</mark>

* Shipping fees vary depending on the total order value. Merchants set minimum and maximum cart price thresholds for different flat rates.
* Example: $4 shipping for orders under $50, free shipping for orders over $100.

**Weight-based shipping rates:**

* Shipping fees depend on the total weight of the order. Merchants define weight ranges with corresponding flat rates.
* Example: $7 for orders under 5 kg, $15 for orders over 5 kg.

**Free shipping rate:**

* Any flat rate can be set to $0 to offer free shipping.
* Can be site-wide or conditional (e.g., free shipping on orders over $100).

**Calculated shipping rates  (Carrier-Calculated):**

* Real-time shipping costs provided by carriers like USPS, UPS, DHL, or Canada Post.
* Rates are dynamically calculated based on order details such as weight, dimensions, destination, and delivery speed.
  {% endhint %}

## Setting up Shipping rates for all products

{% stepper %}
{% step %}
Go to Settings of Shopify > Shipping and Delivery
{% endstep %}

{% step %}
Click in General shipping rates
{% endstep %}

{% step %}

<figure><img src="/files/fGaYA34Fceek0FCPChvA" alt=""><figcaption><p>Create shipping zone</p></figcaption></figure>

Add rate as you want, you can customize **Rate name, delivery description and see preview on Checkout page**&#x20;

<figure><img src="/files/YE6dhIKBZ7VSuDYHcxPo" alt=""><figcaption><p>Add rate and preview </p></figcaption></figure>

**Add shipping rates** such as:

* **Flat rates:** a fixed shipping fee regardless of order size or weight.
* **Weight-based rates:** shipping fees that vary based on the total weight of the order.
* **Price-based rates:** shipping fees that depend on the order value.
* **Free shipping:** set a rate of $0 or create conditions for free shipping (e.g., free shipping on orders over $50).
* You can add conditions to rates to **specify minimum and maximum order price or weight ranges.**

<figure><img src="/files/ms2PqmDT10KccFp42dRB" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## Setting up Shipping rates for specific products

{% hint style="success" %}
The key steps are the same, the difference are products which rates apply to&#x20;
{% endhint %}

### Step 1. Create a custom zone

<figure><img src="/files/T9uCaeROAiPO8EjbEinN" alt=""><figcaption></figcaption></figure>

### Step 2. Add products > Add Shipping zones > Add rates

<figure><img src="/files/wIbI6oWEZB1foLwus1Ts" alt=""><figcaption></figcaption></figure>

## Setting up Local delivery rates

### Step 1. Go to Settings > Shipping and delivery > set up Local delivery&#x20;

<figure><img src="/files/SUZU8vnADuJN1Cfgf5w9" alt=""><figcaption></figcaption></figure>

### Step 2.  Turn on Local delivery > Choose type of Delivery you want

{% hint style="success" %}
For Shopify's beginners,  delivery zones are specified by two ways:

* Postal codes
* Maximum delivery radius&#x20;
  {% endhint %}

#### Choose postal codes

Fill in the postal codes (where you deliver to) and set up rates for these areas

<figure><img src="/files/pnXNw2P7cgUPU0ZRtLfK" alt=""><figcaption></figcaption></figure>

You can add **conditional pricing rules** that set different delivery charges based on order value thresholds (e.g., $5 delivery for orders over $5, $3 delivery for orders over $10, free delivery over $20)

#### Choose maximum radius

Fill in the maximum radius number you want to deliver and set up the same&#x20;

<figure><img src="/files/xjZMCmDaQq1UyjwwA7fR" alt=""><figcaption></figcaption></figure>

### Step 3. Save your changes and preview on Checkout page&#x20;


---

# Agent Instructions: 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://docs.dingdoong.io/rates/delivery-rates/how-to-add-rates-on-checkout-page.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.
