Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

Product fields are not resolving

2 min read
Published

An expression like {item.surecart.name} appearing literally on the page means it was never resolved. There are three reasons, and they are quick to separate.

One: the switch

Product dynamic data has to be on for SureCart fields to resolve inside loops and on product templates. It is the one switch that ships off, so on a store where nobody has created a starter layout it is very often the answer. The Layouts tab says so in amber while it is off.

Two: the scope

Where you arePrefix
Inside a loop{item.surecart.…} - where item is your loop item id
On a single product template{post.surecart.…}
The loop item id is yours, not a fixed word
If your loop calls its item something other than item, the expression has to use that name. Copying an example verbatim into a loop with a different item id produces exactly this symptom.

Three: the field name

There are 27 product fields and the list is fixed - a name that is not on it never resolves. The full list is in Building with Etch loops.

Two fields always resolve, even when their add-on is inactive
{item.ivasure.is_gift_card} and {item.ivasure.wishlist_count} are always present with a safe default, so a template does not break when a module is switched off.

The expression resolves but the value is empty

That is a different problem, and a simpler one: the field is genuinely empty for that product. A product with no reviews resolves average_stars to zero, and a product SureCart has not synced yet resolves everything to nothing - save that product again in SureCart and it fills in.

Check one product in SureCart before assuming the binding is wrong.

The image field is the exception now
featured_image no longer resolves to nothing for a product without a photo: it falls back to SureCart’s placeholder image. If you built a condition on that field being empty, test has_image instead - it is true only for a real photo.

Save to list