Product bundle components
Register your product bundles' components as live updated metafields, so you may access the component structure in Liquid or use it as an admin filter to query for products that are components of bundles.
This metafield is automatically updated with the component (product) structure of the 'product fixed bundle' created by the Shopify Bundle app.
Details
- Name
espresso.bundle_components
- Description
Metafield namespace and key
- Name
list.product_reference
- Description
Metafield type
- Name
product
- Description
Scope of Shopify object that owns the metafield
When you initially enable this metafield, the individual product bundle metafields will be set in a background task. If you have a large catalog of bundles, this may take anywhere from a few minutes to a few hours. Once the metafields are set, they will be updated in real-time
Example implementation
{% assign bundle_products = product.metafields.espresso.bundle_components.value %}
<div class="bundle-components">
<h2>Bundle Components</h2>
<ul>
{% for product in bundle_products %}
<li class="bundle-item">
<img src="{{ product.featured_image | img_url: 'thumb' }}" alt="{{ product.title }}">
</li>
{% endfor %}
</ul>
</div>