Using Shopify Functions for Customer-Specific Pricing — Suppress Discount Display in Checkout & Invoice

Hi everyone,

I’m a developer working on a custom Wholesale B2B app that uses Shopify Functions (Product Discount) to implement tiered customer-specific pricing. For example, the same product may have the following pricing tiers:

  • ₹200 for regular customers
  • ₹150 for wholesalers
  • ₹100 for retailers

We’re applying these prices using Shopify Functions based on customer tags, and the logic itself is working fine. However, we’ve run into a presentation issue in the storefront and invoices.

Issue:

When the pricing is applied via Functions, Shopify treats it as a discount — so in the invoice and checkout, it appears like this:

This might confuse wholesale customers, who should simply see their fixed pricing without any notion of a discount.

What we need:

We want the price to be shown as-is, without any strike-through or discount breakdown. Ideally:

  • Line item should show the final price (e.g., ₹50), not a discounted price
  • No compare-at or discount labels should be shown
  • Invoices and order summaries should reflect clean, direct pricing
  • Checkout UI should treat the price as the base price, not as a result of a promotion

Question:

Is there a way — either through Shopify Functions or another official method — to override the line-item price directly without showing it as a discount?

We’re aiming for clean, segment-specific pricing, without any discount messaging.

If anyone has found a workaround or knows if this is possible via Function APIs or Shopify Checkout Extensibility, your help would be much appreciated.

Thanks in advance!

You could use the update method within the Cart Transform API, but this is locked down to Plus.

Hello @Luke,

Thank you for your response!

We’re specifically looking for a solution that works across all Shopify plans, not just Plus.

Also, since we’re currently using Product Discount Functions, we’d prefer to stick with that method if possible. We’ve evaluated the Cart Transform API, but unfortunately it doesn’t suit our needs — it displays products as bundles during checkout, which disrupts the user experience and doesn’t align with our requirements.

Our goal is to apply clean, fixed pricing based on customer segments (via tags), without showing any strikethrough, compare-at prices, or discount messaging in the checkout, invoices, or order summaries.

If there’s a way to accomplish this using Shopify Functions (or any supported approach on non-Plus plans), we’d really appreciate any guidance!

Thanks again!

This is incorrect, thats only if using the expand/merge operations.

The update operation can be used simply to update the price.

You’ll most likely not find a solution that supports all plans. This is a premium feature.

Hello @Luke,

Is it possible with the new discount function API?