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>
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024