2 different images for 2 different target audiences

Topic summary

Goal: Show different product images for the same product to different audience groups on a Shopify sub-site (e.g., by age).

Proposed approach: Use product metafields and customer tags, then conditionally render images via Liquid on the product page.

Key steps:

  • Create two product metafields to store audience-specific images (e.g., image_for_adult, kids_image).
  • Tag customers by audience (e.g., “adult”, “kids”).
  • In the Dawn theme’s main-product.liquid, add a Liquid conditional that checks the logged-in customer’s tags and assigns the corresponding metafield image. Example logic: if customer.tags contains “adult” → use image_for_adult; else if contains “kids” → use kids_image.

Technical notes:

  • Metafields: custom fields attached to products for storing extra data (images in this case).
  • Customer tags: labels on customer accounts used for segmentation.
  • Liquid: Shopify’s templating language for theme logic.
  • Requires the customer to be logged in to evaluate tags; default/fallback image behavior isn’t shown in the snippet and may need to be added.

Status: Concrete solution with code and steps provided; no confirmation from the original poster, so outcome unconfirmed/ongoing.

Summarized with AI on February 16. AI used: gpt-5.

Hi there, I have a sub-site on Shopify and I want to show 2 different images for 2 different target audiences for same product. For example I have 2 target groups and I want to show them different pictures of the same product base on them age or other indicator. Is it possible? I tried to find it on help center and FAQ but without success.

Regards,

Insaneebayseller

Hi @Insanebayseller ,

Use meta field to upload product images for 2 groups of customers. Then display those images with the condition like using tags given to customers on the product page. For example, If some customers tagged “adult“ then apply the condition on the product page that if customers have an “adult” tag then display the first metafield image or else display the second metafield image.

Thank you.

Hi @Insanebayseller ,

Use meta field to upload product images for 2 groups of customers. Then display those images with the condition like using tags given to customers on the product page. For example, If some customers tagged “adult“ then apply the condition on the product page that if customers have an “adult” tag then display the first metafield image or else display the second metafield image.

Follow below steps to complete this task. consider dawn theme for below code.

  1. Create two product meta fields for 2 different customers to upload different product images.

  2. Add specific tags to customers. for example, Create “adult“ and “kids“ tags and then assign to customers.

  3. Add below code to product page “main-product.liquid“ file. This code is for above tags. You can change it with your own tags.

{% if customer %}
{% if customer.tags contains "adult" %}
{% assign file_object = product.metafields.my_fields.image_for_adult.value %}

{% elsif customer.tags contains "kids" %}
{% assign file_object = product.metafields.my_fields.kids_image.value %}

{% endif %}
{% endif %}

Thank you.