A user seeks to add custom input fields (name, date) to specific products in Shopify’s Origin theme using metafields, with different fields appearing on different products.\n\nSolution Approach:\n- Use the \
Summarized with AI on November 10.
AI used: claude-sonnet-4-5-20250929.
You’d need to use the “Custom liquid” block in “Product information” section.
Not sure how your metafield is defined and how many option you want but here is the general idea:
{%- assign product_form_id = 'product-form-' | append: section.id -%}
{% case product.metafields.namespace.key %}
{% when 'name-only" %}
{% when 'name-and-date' %}
...
{% endcase %}
You may use Shopify UI Elements generator to generate the HTML code, however you would need to add form=“{{ product_form_id }}” attribute to each input/select/textarea otherwise your input would not make it to the cart.