> For the complete documentation index, see [llms.txt](https://developer.esw.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.esw.com/shopify/salesforce-commerce-cloud/pricing-models/calculated-pricing.md).

# Calculated Pricing

{% hint style="info" %}

#### Calculated Pricing Model

Calculated Pricing Model derives localized prices dynamically by converting a retailer’s **default price book value** using a structured pricing formula. This approach enables flexible and real-time pricing for different countries.
{% endhint %}

<p align="center"><span class="math">(((Product base price × (1 + priceUpliftPercentage)) × (1 + dutyPercentage)) × (1 + taxPercentage)) × fxRate = Price in the shopper currency → apply rounding = Final product price</span></p>

***

Each component is sourced from the [Pricing Advisor API ↗](broken://pages/f0e3be7c4abc5e09f3011799a50db11eadf8b3c8):

* Exchange rates (FX)
* Retailer price uplift percentages
* Estimated duty and tax percentages
* Rounding rules

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

### Predefined Attributes

* **Retailer Uplift per Country** — e.g., 10% uplift for the U.K.
* **Estimated Taxes per Country**
* **Estimated Duties per Country**
* **Exchange Rate**
* **Rounding Rules**

#### Data Sync

Values are synced daily to: `Merchant Tools → Site Preferences → Custom Site Preference Groups → eShopWorld Configuration Pricing`

#### Example — Calculated price (`EUR → DKK`)

| Parameter                       | Value        |
| ------------------------------- | ------------ |
| Shipping country                | Denmark      |
| Base currency                   | EUR          |
| Price book currency             | EUR          |
| Shopper currency                | Danish Krone |
| Product price in the price book | EUR 92       |
| Uplift                          | 3%           |
| Duty                            | 7%           |
| Tax                             | 23%          |
| FX Rate (`EUR → DKK`)           | 4.2191       |

<h4 align="center">Final price: DKK 526.18</h4>

<p align="center"><span class="math">((92 × 1.03) × 1.07 × 1.23) × 4.2191 ≈ 526.18</span></p>

## How to Test Calculated Pricing

### Storefront

{% stepper %}
{% step %}

#### Open the storefront

Open the storefront and select a calculated-price model country on the welcome mat.
{% endstep %}

{% step %}

#### Verify prices on Product Listing Page (PLP)

Verify that the prices on the PLP page, Quick View modal, PDP page, mini cart modal, cart page, and checkout page are calculated according to the data from the Pricing Advisor.
{% endstep %}
{% endstepper %}

### Business Manager

{% stepper %}
{% step %}

#### Verify Currency

Verify that the currency of the order in the order listing table is the default currency (e.g., USD).
{% endstep %}

{% step %}

#### Verify Price

Open the order details and verify that the price for the order on the General tab is correct.
{% endstep %}

{% step %}

#### Navigate to Attributes

Go to the **Attributes** tab and verify that the prices for the order are correct in the ESW Retailer Currency Order Confirmation and ESW Shopper Currency Order Confirmation attributes.
{% endstep %}
{% endstepper %}


---

# 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, and the optional `goal` query parameter:

```
GET https://developer.esw.com/shopify/salesforce-commerce-cloud/pricing-models/calculated-pricing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
