Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I have different versions of products that I would like to display on the product card. I created a proper field in the metafields section, but I am unable to implement it.
I have a code ready, but it does not work as I would like it because nothing is displayed, neither the image, nor the name of the product, nor the price.
How should I change the code to make it work?
<ul class="recommended-products">
{% if product.metafields.my_fields.product_version != blank %}
{% assign product_version = product.metafields.my_fields.product_version %}
<li>
<a href="{{ product_version.url }}" target="_blank">
<img src="{{ product.metafields.my_fields.product_version.featured_image | img_url: '100x' }}">
<div>
<p>{{ product_version.title }}</p>
<p class="uaf__price">{{product_version.price | money }}</p>
</div>
</a>
</li>
{% endif %}
</ul>
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024