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.