Email Notification Customization - Product Categories

Topic summary

  • Objective: Add conditional text to Order Confirmation emails if any product in the order belongs to a specific category.
  • Implementation detail: Requester plans to insert the condition above the Liquid case branch that outputs “We’re getting your order ready to be shipped. We will notify you when it has been sent.”
  • Core question: How to check a product’s category within the email template using Liquid (templating language).
  • Latest update: A respondent indicates there is no way to retrieve product category via Liquid in this context and could not find supporting methods in the documentation.
  • Outcome/Status: No solution or workaround identified; the question remains open pending a method to access product categories or an alternative approach.
Summarized with AI on December 22. AI used: gpt-5.

I’m trying to add a bit of text to the Order Confirmation emails. I want it to operate like this:

IF > any of the products in the order belong to a specific category

THEN > add this text

I think it should be inserted above this in the default template. I’m not sure how to call to check the product category.

{% else %}
          We're getting your order ready to be shipped. We will notify you when it has been sent.
      {% endcase %}

I don’t think there is a way to retrieve the product category using Liquid. I checked the docs, and I couldn’t find anything :frowning: