How do I add custom fields on Product Pages?

Topic summary

Goal: add a required custom field on product pages (Debut theme) to collect extra info before checkout.

Guidance and support:

  • Community tutorial shared for adding customization fields and blocking Add to Cart until fields are completed. Shopify’s Theme Support doesn’t support this customization; Experts Marketplace suggested for help.
  • Alternative approach proposed: collect information at customer registration and require accounts.

How to implement:

  • Use cart (line) item properties in the product form: an input like name=“properties[Your property name]” so the value appears in the order admin.
  • To show fields only on certain products, wrap the input in a Liquid condition (Shopify’s templating language), e.g., {% if product.title == “Your Product” %}…{% endif %}.
  • To apply to all products, add the input to the main product template/file (e.g., mainproduct.liquid) within the product form.

Open items and resources:

  • A YouTube tutorial was shared; file location clarified as the main product code page.
  • Questions about renaming the Vendor field remain unanswered.

Status: Partially resolved with multiple viable approaches; no single final decision.

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

Did you end up working this out? I need to add custom field to only certain products too but its adding it to all. Maybe there is a template I can add for this?

1 Like