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
- In Shopify admin, go to Settings > Metafields and metaobjects > Variants and click Add definition.
- Name it
Variant description. Set the Namespace and key to exactlycustom.variant_description. - Choose the type Rich text (with formatting) or Multi-line text, and save.
Step 2: Write the descriptions
- Open a product in Products, click a variant, and fill in Variant description under Metafields.
- Leave it empty for variants that should show the product description.
Step 3: Check where it shows
- The Description and Collapsible description blocks of the Product, Featured product and Quick add sections show the variant's description.
- 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.