> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/samita-wholesale-b2b/wholesale-pricing/choose-pricing-source.md).

# Choose pricing source: Selling price or Compare-at price

Every wholesale pricing rule has a **Pricing source** setting that controls which Shopify price the discount is calculated from.

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

You'll find it in the rule's **Discount** section, right next to the discount value field. It's only available for the **Percentage discount** and **Fixed amount discount** pricing methods — it's hidden when you choose **Fixed wholesale price**, since that method sets an absolute price and doesn't need a source price to discount from. See [Select Discount Type](/samita-wholesale-b2b/wholesale-pricing/select-discount-type.md) for how the three pricing methods differ.

## Options

* **Apply discount based on Selling price** (default) — the discount is calculated from the product's current Shopify **Price**.
* **Apply discount based on Compare at price** — the discount is calculated from the product's Shopify **Compare-at price** instead.

*Example: a product's Selling price is $80 and its Compare-at price is $100. With a 20% discount rule, choosing **Selling price** gives a wholesale price of $64 ($80 − 20%), while choosing **Compare-at price** gives $80 ($100 − 20%).*

{% hint style="warning" %}
If a product has no Compare-at price (or it's set to $0), choosing **Apply discount based on Compare at price** falls back to using the Selling price for that product.
{% endhint %}

{% hint style="info" %}
This setting only changes what the discount is calculated **from** — it doesn't automatically show the Compare-at price as a crossed-out price on your storefront. To do that, turn on **Show original price** separately in **Settings > General > Wholesale pricing**. See [Display product old prices as cross-out prices](/samita-wholesale-b2b/setting/display-product-old-prices-as-cross-out-prices.md).
{% endhint %}

> ### **Need support?**
>
> If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://help.samita.io/support@samita.io)


---

# 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://docs.samita.io/samita-wholesale-b2b/wholesale-pricing/choose-pricing-source.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.
