App reviews, troubleshooting, and recommendations
Hi There,
I'm currently using Metafields Guru to add metafields to my collections and products.
I've got a metafield setup on a 'per-collection' basis and a metafield setup on a 'per-product' basis.
What happens is, when I navigate as follows: home page >> collections >> "collection 1" >> "product 1" >> product 1 page >> tab 3 showing metafield data appears. This means that if i navigate to a product via the collection that it belongs to, the tab that i've coded to read the value of that metafield populates the info. If however I navigate from that product, straight to another product via the 'You May Also Like" section at the bottom half of the screen which shows a range of other products from the same collection, then the tab does not populate the value from the metafield. Does that mean I have to include that metafield on the product level and not just the collection level?
Please see my code for what i've done below,
<div class="product-single__description rte">
<ul class="tabs">
<li class="tab active" data-content-id="tab-content-1">Description</li>
<li class="tab" data-content-id="tab-content-2">Nutritional Information</li>
<li class="tab" data-content-id="tab-content-3">Ingredients</li>
</ul>
<div id="tab-content-1" class="tab-content active">
{{ product.description }}
</div>
<div id="tab-content-2" class="tab-content">
{{ product.metafields.details.nutrition }}
</div>
<div id="tab-content-3" class="tab-content">
{{ collection.metafields.details.ingredients }}
</div>
</div>
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024