I've successfully added a new metafield and displayed it on my product page (Venture theme) next to the price by adding the following line of code into the product-template.liquid file:
This works a charm, but now what I'd like to do is add the same piece of data next to the price on the featured collection icons:
You can see in the image where the price is - this particular section is a feature collection, but I can't figure out what piece of code (or .liquid file) I need to edit in order to display the same metafield - can anyone point me in the right direction?
Solved! Go to the solution
Hi there, it's the Venture theme. I read about this product-grid file, but this doesn't exist for me.
There is a collection-grid-item file, but no reference to price in there.
Also, there are two files: featured-product.liquid and featured-products.liquid where I've attempted to add in the metafield, but nothing shows
I would suggest to get the name of the div related to that grid, paste it in the search box added by this app on Chrome/Edge: Chrome Web Store - Extensions (google.com)
That way it will tell you which files contain that reference and then you can add the metafield.
PS: You might need to run the search twice for the results to show correctly
Let me know if that helps!
This is an accepted solution.
Managed to figure this out!
The line of text I needed to edit was in the div class: product-card__info within the product-card.liquid file.
I added the reference to the metafield, and now I have the unit showing in the collection images
Well happy - thanks for the help!