How-To

Omnisend “product-reviews” not added: Liquid sections error fix

Omnisend shows “product-reviews” not added. Liquid templates don't support sections and blocks because section tags only work in Shopify themes, not in emails. Remove the section tag, add a Custom Liquid block, and print the rating yourself with plain Liquid and inline-styled markup.

Sohail HussainSohail Hussain8 min read

Short answer

  • Delete the theme section tag from the email. Emails have no theme, so sections and blocks cannot load there.
  • Add a Custom Liquid or HTML block instead, and print the rating from data your review app sends to Omnisend (usually a custom event), using Omnisend's square-bracket Liquid syntax.

You pasted a theme snippet into an Omnisend email and got this:

“product-reviews” not added. Liquid templates don't support sections and blocks.

The message is literal. Sections and blocks belong to a Shopify storefront theme, and an email has no theme to load them from. This is not a fault in your review app or your store.

Why it happens

In a Shopify theme, a section tag tells the theme engine to render a file from the theme's sections folder. That folder, the section schema and the app blocks that review apps inject all live in the storefront theme. Review app install guides often say "add the section" or "enable the app embed", and those are storefront instructions.

An email builder runs Liquid only as a templating language. Per Omnisend's help center, objects output data and tags handle logic and control flow. Nothing in that model can pull in a theme file, so the tag is rejected before anything renders.

The most common causes, in order:

  1. A {% section %} tag pasted from a theme file or a review app's install guide. This is the exact case in the error.
  2. {% render %} or {% include %} calls that point at theme snippets. They fail for the same reason.
  3. A {% schema %} block copied along with the section code. It only makes sense inside a theme.
  4. An app block or widget embed code meant for product pages. Review widgets rely on JavaScript, which email clients do not run.

People on Shopify's developer community report this exact case. The poster tried a review integration this way and was told to use a Custom Liquid block and build the block manually. I could not find an Omnisend help page that documents a ready-made review-stars block, so the manual route is the practical one.

Step-by-step fix

Fix 1: Remove the theme code

  1. Open the email in the Omnisend email builder.
  2. Find the block or code that contains the section tag, and delete it.
  3. Search the email's HTML for {% render, {% include and {% schema, and delete those too.
  4. Save, and check that the error no longer appears.

Fix 2: Add a Custom Liquid or HTML block with Omnisend syntax

Omnisend does not use Shopify's curly-brace syntax in the email editor. Its help center says Omnisend uses Liquid syntax with double square brackets like [[contact.first_name]]. Tags use [% %], so code copied from a Shopify theme needs its braces converted.

  1. Place a Custom Liquid block where the stars should appear. If your editor shows only an HTML block, use that; Omnisend's own Okendo guide uses an HTML block in a workflow email for star-rating markup.
  2. Paste Liquid that reads a rating value and prints stars. Here is a plain version; only the first line needs changing:
[% assign rating = event.rating | round %]
[% if rating %]
<p style="margin:0;font-size:20px;line-height:24px;color:#f5a623;">
  [% for i in (1..5) %][% if i <= rating %]&#9733;[% else %]&#9734;[% endif %][% endfor %]
</p>
[% endif %]
  1. Replace event.rating with the property your review app actually sends. That name is a placeholder, not a guaranteed field.
  2. Preview with real data, then send a test to Gmail and Outlook.

Tags work in automations only

Omnisend's Liquid guide says tags (the if, for and assign lines) work only in Automation, not in Campaigns. If you are building a one-off campaign, the star loop above will not run; use fixed content or a link to your reviews instead.

Fix 3: Find where the rating data comes from

No universal variable exists. The rating has to reach Omnisend first, and that depends on your review app. Omnisend's integration articles show the pattern is custom events:

  • The LAI Product Reviews integration sends a "LAI Reviews Submitted" custom event that includes a rating property, plus author and content.
  • Vitals sends product review data to Omnisend as custom events when customers submit reviews.
  • Okendo sends review data to a custom event called Okendo Review. Its review request payload includes per-product star-rating URLs (product1Rate1Url to product1Rate5Url) for building clickable stars.

Omnisend also warns that not all third-party custom events pass list-type properties required for dynamic content layouts, and says to check the integration documentation or API logs to see what data is available. Do that before writing any Liquid; a variable that is not in the event prints nothing.

Read Omnisend's guide to dynamic content in automations for how event properties are referenced. For the syntax itself, see Omnisend's Liquid templating article.

If your review app sends no rating to Omnisend, do not hardcode stars; they go stale. Omnisend's review-request guide suggests updating the button URLs to match your review app's submission form. A line like "See what customers say" with a button to the product's reviews is honest and survives every email client.

Which cause is yours

SymptomLikely causeFix
Error on save, mentions product-reviewsSection tag in the emailDelete it (Fix 1)
Error mentions render or includeTheme snippet callDelete it (Fix 1)
Code shows as literal textCurly braces instead of square bracketsConvert to [% %] and [[ ]] (Fix 2)
Block saved, nothing showsWrong or missing variableCheck the event payload (Fix 3)
Works in automation, not in campaignTags are automation onlyUse fixed content or a link (Fix 4)
Stars show but look unevenFont glyph differences by clientUse hosted star images with alt text

Why the stars may still look wrong

  • Decimal ratings. A value like 4.7 never equals a loop index, so you get fewer stars than expected. The round filter in the example handles it.
  • Styling stripped. Email clients ignore most external CSS, so keep styles inline and avoid theme classes.
  • Star glyph differences. &#9733; renders from the recipient's fonts, so size and shape vary. For identical stars everywhere, pick a hosted star image by rating and add alt text.
  • Empty output. Wrap the block in [% if rating %], as above, so it hides itself instead of showing empty stars.

Run the result through the responsive email tester. A simple HTML email block survives more clients than anything derived from a theme.

Checklist before you try again

  • No {% section %}, {% render %}, {% include %} or {% schema %} left in the email.
  • Liquid uses [% %] and [[ ]], not curly braces.
  • The email is an automation if it uses if, for or assign tags.
  • The variable name matches a property in your review app's event.
  • A test send looks right in Gmail and Outlook.

If nothing works

Contact Omnisend support first; they can see which data your account exposes to emails. If the data comes from a review app, ask that vendor which properties its Omnisend event sends. Include the exact error text, the email type (campaign or automation), the review app's name, the event name you trigger on and a screenshot of the block.

Hello,

I get this error when saving an email: “product-reviews” not added. Liquid templates don't support sections and blocks.

I removed the theme section tag and I am now using a Custom Liquid block in an automation email. Review app: {app name}. Trigger event: {event name}.

Which properties does this event pass to the email, and is there a rating field I can print as stars? Screenshot of my block attached.

Thank you

Common questions

Can I use a Shopify theme section in an Omnisend email at all?

No. Sections need a theme to render from, and an email has none. Rebuild the content as plain Liquid and inline HTML.

Why does my Liquid show as text instead of running?

Most likely you used curly braces. Omnisend expects [% %] for tags and [[ ]] for output, and tags only run in automations.

Will a review widget's JavaScript work in an email?

No. Email clients do not run JavaScript, so widgets and app embeds will not appear. Use markup built from the rating data, or link to the reviews page.

Can I show stars in a campaign instead of an automation?

Tags are automation only, so a loop will not run in a campaign. Use fixed content, or link to the product's reviews.

designomnisenderror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

How-To

FLBuilderServiceConvertKit::subscribe too few arguments fix

The fatal error "Too few arguments to function FLBuilderServiceConvertKit::subscribe(), 3 passed and exactly 4 expected" means one piece of code calls a method with 3 arguments while its definition requires 4. After a Beaver Builder and PowerPack update, roll back to the previous versions, or make the 4th argument optional as a stopgap.

Sohail Hussain|8 min read
How-To

Gmail "This message could be dangerous" on beehiiv: fixes

Gmail's "This message could be dangerous" banner is a per-message content and reputation warning, not an SMTP error. Some beehiiv publishers blamed the promotional image in the footer; beehiiv staff say it isn't the root cause. Check the headers, links and images first, then move to a custom domain.

Sohail Hussain|9 min read
How-To

Outlook "click here to view it in a web browser" banner fix

Outlook shows "If there are problems with how this message is displayed, click here to view it in a web browser" when it blocks remote images. As a recipient, click the banner and choose Download Pictures, or add the sender to Safe Senders. As a sender, design the email to read well with images off.

Sohail Hussain|9 min read
How-To

Mailchimp Free plan can't send or import an HTML newsletter

Mailchimp's Free plan now shows "Importing custom HTML templates isn't currently included in our Free plan" when you import HTML. Staff say the fix is upgrading to Standard. Otherwise, rebuild the email in Mailchimp's builder, use Canva images, or move to a tool that accepts HTML.

Sohail Hussain|7 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free