Radian 3.0 est là — bundles, vitrine de catégories et animations cinématographiques.Voir les nouveautés

Variant descriptions

Some variants need their own text, for example a different material, size note or scent per option. Radian reads a variant metafield, custom.variant_description. When the selected variant has one, it replaces the product description; variants without one show the product description.

Before you start

You need access to Settings > Metafields and metaobjects in Shopify admin to add the metafield definition.

How to set it up

Step 1: Add the metafield definition

  1. In Shopify admin, go to Settings > Metafields and metaobjects > Variants and click Add definition.
  2. Name it Variant description. Set the Namespace and key to exactly custom.variant_description.
  3. Choose the type Rich text (with formatting) or Multi-line text, and save.

Step 2: Write the descriptions

  1. Open a product in Products, click a variant, and fill in Variant description under Metafields.
  2. Leave it empty for variants that should show the product description.

Step 3: Check where it shows

  1. The Description and Collapsible description blocks of the Product, Featured product and Quick add sections show the variant's description.
  2. Pick another variant on the page: the text changes with it, without reloading the page.

How it works

  • When the selected variant has no description, the product description shows. If neither has text, the block is hidden.
  • In Quick add, a Description block that shows a short summary shortens the variant's description the same way.
  • Text typed into a block's own Description field replaces the product description for all variants; the variant description then shows only for variants that have one.
  • The variant description also shows when a variant is opened from its own card, for example with Display variants as separate products.

Troubleshooting

The variant text doesn't show.

Check that the definition is under Variants, not Products, and that its namespace and key are exactly custom.variant_description.

Related

Still stuck?

Include your store URL and theme version — we'll get back to you.

Contact support