Custom Field in Product Description custom theme

Topic summary

Goal: add a “Name” text input on product pages to collect personalization, enabled only on certain products, without using an app.

What was implemented:

  • A Liquid text input was inserted inside the product form and wrapped in a condition to show only when the product has tag customized_fields_enabled. The merchant tagged products and granted collaborator access; the code was deployed. The input now appears only on tagged products.
  • Liquid = Shopify’s templating language; product form = the add-to-cart form.

Open items and questions:

  • Make the field required and limited to 10 characters (no solution posted yet).
  • Some users can’t see the entered text on orders/cart; unresolved in this thread.
  • Pricing: current method is a free add-on (no extra charge). Suggested workaround: add a variant like “with customization (+10)” and show the input only for that variant.

Theme/OS 2.0 considerations:

  • To enable only on some products in Dawn/OS 2.0, use alternate templates or conditional logic (by tag, handle, or collection). Some themes (e.g., Taste) use JSON templates instead of product-template.liquid.

Resources:

  • Code snippet and conditional tag are central. A free UI element generator tool and video tutorial for OS 2.0 were shared.

Status: partially resolved; further tweaks/visibility and validation remain open.

Summarized with AI on January 11. AI used: gpt-5.

Hi @shineveracruz

The text input is now added only for products tagged with customized_fields_enabled

The final code to add was:

{% if product.tags contains "customized_fields_enabled" %}

  
  

{%endif%}

Please don’t forget to like our replies and mark the post as a solution if we’ve assisted you on that front :wink:

Cheers!

2 Likes