Hello,
I would like to add a short description below each product on the collection pages. So I’ve created a custom definition product metafield, but I don’t know after which code and where to implement it.
Thank you for your help.
Goal: show a short description under each product on collection pages (Warehouse theme) using a product metafield.
What the OP did: created a custom product metafield but doesn’t know where to place the code. Screenshots show the metafield definition.
Guidance:
Status: No step-by-step code or exact file path provided; no confirmed resolution.
Action item: Insert the metafield output in the product card markup within the collection page template/snippet; consider developer assistance if unfamiliar with theme code.
Hello,
I would like to add a short description below each product on the collection pages. So I’ve created a custom definition product metafield, but I don’t know after which code and where to implement it.
Thank you for your help.
Hey @Toto_1
You need to call the metafield in your main-collection.liquid file. It will require custom coding in your theme files, if you’re not familiar with coding then I suggest you to hire a Shopify Developer who can help you out with that. Let me know if you want me to help you out and I would be more than happy to help you.
Best Regards,
Moeed
Hi Toto,
Since you are using a paid theme, it’s difficult to write the code needed in order for it to integrate properly with your current theme.
That said, to show a metafield value in your product pages is to use such code:
product.metafields.custom.description_courte
or some other variations as long as that code is present.
As for where this what file to edit, it is very difficult for me to tell you where because (again) you are using a paid theme.
Usually though, it should be in a section named main-product.liquid located inside the Sections Folder of your code editor. Or some other file that controls the product page.
Hope this helps!