All things Shopify and commerce
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.
Solved! Go to the solution
This is an accepted solution.
Hey @Toto
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
This is an accepted solution.
Hey @Toto
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!
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