Review invitation

The Review invitation page and the values it reads.

The page invited customers open to choose which purchased product to review, and review it. Surface review_invitation.

What the code must keep#

The product choices and review actions, <section class="review-choices" data-review-choices>. Keep it exactly as the default has it.

Keep {{ page.BrandingStyles }} and {{ page.PreviewNotice }}, and the document's </head> and </body>. See the rules for all store pages.

Values#

Every value the page's code can read. [] marks a list item: read it inside {% for item in list %} as item.Name. A value that is empty in a particular case prints nothing; test it with {% if %} first.

Value

Type

Description

page.AllowPhotos

Boolean

True when the store accepts review photos.

page.BrandingStyles

HTML

A <style> element with the page appearance: colours, font and corners as --co-* CSS variables. Required.

page.BrandName

Text

The brand name from the checkout appearance, or the store name when none is set.

page.CollectorJSON

HTML

The review form's settings for its runtime. Platform-owned.

page.CollectorRuntime

HTML

The review form's runtime script. Platform-owned.

page.ContentMax

Number

Most characters in a review.

page.ContentMin

Number

Fewest characters in a review.

page.Dir

Text

ltr or rtl, the writing direction of the language. Set it as the document's dir.

page.EmailMax

Number

Most characters in an email.

page.EmptyMessage

Text

Shown when there is nothing to review, or the invitation expired or reviews are off.

page.Error

Text

What went wrong with the last step, in the shopper's language. Empty otherwise.

page.Form

Object

The review form labels.

page.Form.AddPhotos

Text

page.Form.Back

Text

page.Form.Close

Text

page.Form.Content

Text

page.Form.Email

Text

page.Form.Name

Text

page.Form.PhotoHint

Text

page.Form.Photos

Text

page.Form.Rating

Text

page.Form.Submit

Text

page.Form.Title

Text

page.Heading

Text

The page heading. Required.

page.Intro

Text

The text under the heading. Empty when the current step has none.

page.Items

List

The purchased products.

page.Items[].ProductID

Text

page.Items[].Reviewed

Boolean

True when the customer reviewed it already.

page.Items[].Title

Text

page.Items[].VariantTitle

Text

page.Locale

Text

The shopper's language as a locale code, such as en or de-CH. Set it as the document's lang.

page.LogoURL

URL

The checkout appearance logo. Empty when the store has no logo.

page.Message

Text

A confirmation of what just happened, such as a code being sent. Empty otherwise.

page.NameMax

Number

Most characters in a name.

page.OrderLabel

Text

page.OrderNumber

Text

The order number. Empty on an expired or switched-off invitation.

page.Portal

Object

The brand half of the page.

page.Portal.BackgroundSrcset

Text

A srcset of the background image in several widths.

page.Portal.BackgroundURL

URL

The order status page's background image, when the store set one. Empty otherwise.

page.Portal.Links

List

The store's checkout footer policies, as links.

page.Portal.Links[].Label

Text

The policy title.

page.Portal.Links[].URL

URL

The policy page.

page.Portal.Style

Text

Inline CSS custom properties for the brand half: --portal-logo (the checkout logo width) and --portal-dim (how much the background image is dimmed). Put it in a style attribute.

page.PortalStyles

HTML

A <style> element with the portal layout: the brand on one half and the page on the other on wide screens, the brand above the page on phones.

page.PreviewNotice

Text

In the editor preview, a notice that the page shows sample data. Empty on the storefront. Required.

page.ReviewedLabel

Text

page.ReviewLabel

Text

page.RootURL

URL

The storefront home page (/). # in the editor preview.

page.Scores

List

The ratings, 1 to 5.

page.ShowForm

Boolean

True when the review form can open.

page.State

Text

The step the page is on. See the states above.

page.TitleMax

Number

Most characters in a title.