Hide gift bag from order emails

By default, Omake renames empty gift bags to a clear message ("No gifts") so they blend into order confirmations. Most merchants find this sufficient.

If you'd prefer to completely remove the empty gift bag line item from order emails, you can add a short Liquid snippet to your Shopify Email templates.

This is optional. The default rename handles most cases — only use this if you want the gift bag fully hidden from emails.

How it works

When a customer qualifies for gifts, Omake expands the gift bag into the actual gift products at checkout. The expanded gift bag shows as a parent item with the gifts listed underneath — this is the correct behavior and should stay visible.

When a customer doesn't qualify, the gift bag remains empty. Even though Omake renames it to "Thank you for your purchase," some merchants prefer to hide it entirely.

This filter targets only the empty gift bag. It checks for the OMAKE SKU and whether the item has child products — if the gift bag has been expanded with actual gifts (shown as sub-items), it stays visible. Only empty gift bags without sub-items are hidden.

Step-by-step

Go to **Settings > Notifications** in your Shopify admin.

Click **Order confirmation** to open the email template editor.

Search for `{% for line in` in the template. The default template has three line item loops you need to update:

  1. {% for line in subtotal_line_items %} — split-cart section (near the top)

  2. {% for line in delivery_agreement.non_parent_line_items %} — delivery agreement section

  3. {% for line in subtotal_line_items %} — non-split cart section (near the bottom)

Add these lines immediately after each {% for line in ...%}:

{% if line.sku == "OMAKE" and line.bundle_parent? != true and line.nested_line_parent? != true %}
  {% continue %}
{% endif %}

So it looks like:

{% for line in subtotal_line_items %}
  {% if line.sku == "OMAKE" and line.bundle_parent? != true and line.nested_line_parent? != true %}
    {% continue %}
  {% endif %}
  ...

This checks three things: the SKU matches, and the item has no bundle children or nested children. If the gift bag has been expanded with actual gifts, those flags are true and the item stays visible.

Click Save and send a test email to verify the empty gift bag is hidden while orders with gifts still show correctly.


Why SKU?

Omake uses the SKU OMAKE as the identifier because:

  • It's set automatically during setup and never changes

  • It stays the same even if you rename the gift bag product

  • It's available on every line item without any special setup

Don't delete or change the SKU on the gift bag product in Shopify. Omake uses it to identify the gift bag across your store.