# Dynamic Product Price without Creating Variant

**URL:** <https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384>\
**Category:** Extensions\
**Tags:** theme-app-extension\
**Created:** [February 9, 2026, 8:22am UTC](https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384 "2026-02-09T08:22:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![illusionist3886](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/illusionist3886/32/13673_2.png) [@illusionist3886](https://community.shopify.dev/u/illusionist3886)\
**Post date:** [February 9, 2026, 8:22am UTC](https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384/1 "2026-02-09T08:22:05Z")

</div>

We are building an app for dynamic pricing. The stores have many dynamic options for each products. And price of the product depends on chosen value of the options. Each product has more than a dozen of options.

Previously it was done by -

- Create a variant of the product [based on user selections]
- Pass the variant id and quantity to “[cart/add.js](https://shopify.dev/docs/api/ajax/reference/cart#post--locale-cart-addjs)” endpoint.

The problem arising is, there will be more than 100 thousands variant based on randomness of the selected options.

After researching I have found that, we should use “[cart transform](https://shopify.dev/docs/api/functions/latest/cart-transform)” function.

Is there any other good alternatives or we should go for cart transform function.

---

<div class="post-metadata">

**Author:** ![Luke](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/luke/32/22023_2.png) [@Luke](https://community.shopify.dev/u/Luke)\
**Post date:** [February 9, 2026, 8:47am UTC](https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384/2 "2026-02-09T08:47:52Z")

</div>

Cart transform is probably your best bet, but you’ll most likely require the `update` operation, which requires Plus.

---

<div class="post-metadata">

**Author:** ![illusionist3886](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/illusionist3886/32/13673_2.png) [@illusionist3886](https://community.shopify.dev/u/illusionist3886)\
**Post date:** [February 9, 2026, 9:29am UTC](https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384/3 "2026-02-09T09:29:50Z")

</div>

Then we cannot go with that solution. Need to find other alternatives.

---

<div class="post-metadata">

**Author:** ![Alan\_G](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/alan_g/32/5321_2.png) [@Alan\_G](https://community.shopify.dev/u/Alan_G)\
**Post date:** [February 9, 2026, 8:29pm UTC](https://community.shopify.dev/t/dynamic-product-price-without-creating-variant/29384/4 "2026-02-09T20:29:56Z")

</div>

Hey @illusionist3886, totally understand the constraint there.

Another option to look into would be Discount Functions. If your dynamic pricing can be expressed as a discount off a base price, you could set the product at the highest possible price and use a discount function to calculate the reduction based on the customer’s selections (stored as line item properties or cart attributes). Discount Functions are available on any plan through public apps distributed via the App Store, though custom apps with Functions do still require Plus. The main note here is it only works for price reductions, not increases above the base price.

There’s a bit more info on here:

> **[Build a Discount Function](https://shopify.dev/docs/apps/build/discounts/build-discount-function?extension=rust)**
>
> Use Shopify Functions to discount cart lines, order subtotals, and shipping rates using a single discount.

Hope this helps.
