Insert Text Into Existing Description Based Upon Product Type

Insert Text Into Existing Description Based Upon Product Type

Sage_Rebel
Visitor
2 0 1

I'm in the process of editing product descriptions for my products for improved SEO. I have basically 5 different defined styles of products (not variants). What I would like to be able to do is insert a list of bullet points for each style of product into the already existing product descriptions and do it en masse, keeping the existing descriptions intact.

 

I'm not sure if this would be possible with metaobjects or as a seperate defined object that can be called dynamically. Any help would be appreciated.

 

 

 

Onward and Upward...
Reply 1 (1)

mageplaza-cs
Shopify Partner
552 46 86

Hi @Sage_Rebel ,

I am from Mageplaza - Shopify solution expert.

 

Yes, what you're trying to do is absolutely possible in Shopify, and you have a couple of flexible ways to approach it depending on your theme and workflow preferences. Since you're editing product descriptions in bulk and want to inject style-specific bullet points without overwriting existing content, here are the best options:

Option 1: Use Metafields and Liquid Logic in Your Theme

This approach lets you keep your existing descriptions intact and append or prepend custom bullet points in your theme dynamically.

Step 1: Define a Metafield for "Product Style"
In Shopify Admin:

  1. Go to Settings > Custom data > Products.
  2. Add a new metafield definition:
  • Name: Product Style
  • Namespace and key: e.g., custom.product_style
  • Type: Single-line text or dropdown list (limit to your 5 styles)

Step 2: Add Bullet Point Templates in Theme Using Liquid
In your product.liquid or main-product.liquid (depending on your theme), add logic like:

{{ product.description }}

{% assign style = product.metafields.custom.product_style | downcase %}

{% case style %}
  {% when "modern" %}
    <ul>
      <li>Clean, minimalist design</li>
      <li>Made with premium materials</li>
      <li>Ideal for contemporary spaces</li>
    </ul>
  {% when "vintage" %}
    <ul>
      <li>Classic handcrafted detailing</li>
      <li>Timeless charm and quality</li>
      <li>Perfect for rustic interiors</li>
    </ul>
  {% when "boho" %}
    <ul>
      <li>Free-spirited and artistic look</li>
      <li>Rich textures and patterns</li>
      <li>Eco-friendly materials</li>
    </ul>
  {% when "kids" %}
    <ul>
      <li>Soft and safe for all ages</li>
      <li>Fun, colorful, and playful</li>
      <li>Perfect for nurseries and playrooms</li>
    </ul>
  {% when "luxury" %}
    <ul>
      <li>High-end finishes and details</li>
      <li>Made for premium comfort</li>
      <li>Elegant statement piece</li>
    </ul>
{% endcase %}

 

Option 2: Use a Metaobject (Advanced / Modular Approach)
This is great if you want centralized management of style data (e.g., change bullet points for all "Modern" products in one place).

Step 1: Create a Metaobject Definition
In Settings > Custom data > Metaobjects:

  1. Create a new metaobject type (e.g., Product Style).
  2. Add fields:
  • Name (e.g., "Modern", "Vintage"…)
  • Bullet Points: multi-line text or list

Step 2: Link Each Product to Its Metaobject
In the Product metafields area, create a metafield:

  • Type: Metaobject reference (of your "Product Style" type)

Step 3: Output in Theme
Then in your theme:

{{ product.description }}

{% if product.metafields.custom.product_style_ref != blank %}
  <ul>
    {% for point in product.metafields.custom.product_style_ref.bullet_points.value %}
      <li>{{ point }}</li>
    {% endfor %}
  </ul>
{% endif %}

 

This way, you can manage your style content in one place and apply it across products with a reference.

 

Please let me know if it works as expected!

Best regards

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com