While writing this up, I came up with a solution, but it sort of sidesteps the problem.
This documentation indicates that I’d reference the product image like:
{% catalog event.VariantId integration:'shopify' %} {{ catalog_item.variant.featured_image.full.src|default:"" }} {% endcatalog %}
I only have one catalog, so I tried removing the integration parameter
{% catalog event.VariantId %} {{ catalog_item.variant.featured_image.full.src|default:"" }} {% endcatalog %}
That performs a lookup, but returns “Unable to find item with code: xxxxxx. It may have been deleted.
I ended up solving this by just referencing the product instead of the variant:
{% catalog event.ProductId %} {{ catalog_item.featured_image.full.src|default:"" }} {% endcatalog %}
I’m guessing there’s something different between a custom catalog setup using the API vs one of the standard integrations. I’m also wondering if there’s a way to specify in the {% catalog %} tag that I’m passing in a Variant Id instead of an Item Id.
I guess I’d still like to figure out how to get this to work with the VariantId in case I wanted to test a version that directly adds the appropriate variant to the shopping cart… thoughts?