> 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

Choose whether a wholesale pricing rule discounts Shopify's Selling price or its 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="https://1875078098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcI28ZFsoFjOa0T0AsCVi%2Fuploads%2Fgit-blob-e2bf287dd50e52659ff267d79e5d7533aea9cd92%2Fpricing-source-wholesale-pricing.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.samita.io/samita-wholesale-b2b/wholesale-pricing/choose-pricing-source.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
