How to add price to the variants thats over the variant limit

Topic summary

A user is implementing custom product variants using metafields and code (following a YouTube tutorial) but cannot adjust prices based on these custom variants.

The core issue: Shopify metafields don’t support dynamic pricing—prices are only tied to actual product variants in the system.

Suggested solutions:

  • Use Shopify’s native variant system: Manually create variants with different prices through the admin panel (Products > Edit Product > Variants)

  • Install a third-party app: Apps like Infinite Options or Variant Option Product Options enable custom options with dynamic pricing and price add-ons without creating actual variants

  • Custom code with line item properties: Pass custom data through line item properties and modify prices via scripts, though this only affects cart/checkout—not the product page display

Status: The discussion remains open with no final decision on which approach the user will implement.

Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Right now I’m using this method to add variant to my products, which just use code and metafields.

https://www.youtube.com/watch?v=bTWR0tfzNqA&t=1s

However I found that I can’t change the product price base on these variant. Is there any way to add price to these variants or I need to use an app to do that?

hi @WILLIAM0716

The method you’re using (metafields + code) allows you to display custom variant options, but Shopify metafields don’t support price changes for variants. Prices in Shopify are tied to actual product variants, not metafields.

Here are your options:

Use Shopify’s Built-in Variants

If price changes are necessary, the best approach is to use Shopify’s default variant system instead of metafields.

Go to Products > Edit Product > Variants and manually add options with different prices.

Use a Shopify App

Apps like Infinite Options or Variant Option Product Options allow you to add custom options and adjust pricing dynamically.

Some apps let you create “price add-ons” without needing actual variants.

Custom Code with Line Item Properties (No Price Change in Admin)

You can pass custom data (like variant selection) using line item properties, then modify the price in the cart using custom scripts.

However, this doesn’t update the price in the product page, only in the checkout/cart.