Solved

Product description as metafield

JB_from_france
Shopify Partner
14 0 6

Hi,

Is there a way to put product description as metafield ? I would like to display description in an accordion. I success to add metafields but i don't find the right code to implement the product description.

Thanks so much for help

Jb from France

Accepted Solution (1)
KetanKumar
Shopify Partner
36835 3635 11966

This is an accepted solution.

@JB_from_france 

oh no its not possible make it automation show metafiles main function each one different text but current store product description show to all 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

View solution in original post

Replies 14 (14)

KetanKumar
Shopify Partner
36835 3635 11966

@JB_from_france 

yes please read this article  and modification code

https://shopify.dev/api/liquid/objects/metafield

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
JB_from_france
Shopify Partner
14 0 6

Hi,

Thank you for your prompt answer ! I already read this article and i already succeed to implement custom metafields in my profuct page, etc..

I just don't find the right sequence to call description as metafield. I tried {{ product.metafields.product.description }}, {{ product.metafields.description }}, etc... But it doesn't work. 

I would like to automatically display the description of the viewed product in an accordion.

Thank you so much for your help !

JB from France

KetanKumar
Shopify Partner
36835 3635 11966

@JB_from_france 

your have create metafiled on option? please check this 

https://www.youtube.com/watch?v=IPgZuk7Z0SY 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
JB_from_france
Shopify Partner
14 0 6

Hi,

So i can't display description as metafields automatically ? As vendor metafields or title metafields already displayable on the dawn theme ? I need to create custom metafields and copy/paste description of my +800 products to the custom metafields ?

There is really no way to display automatically the description of the product on a collapsible table on dawn theme ?

Thanks for your help ! 

JB from France

KetanKumar
Shopify Partner
36835 3635 11966

This is an accepted solution.

@JB_from_france 

oh no its not possible make it automation show metafiles main function each one different text but current store product description show to all 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
CarlosPinedo
Tourist
5 0 2

hi JB, did you ever found the solution to displaying the product description inside an accordion?

KetanKumar
Shopify Partner
36835 3635 11966

@CarlosPinedo 

can you please share store url 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Cava
Excursionist
33 0 16

Hi! @JB_from_france 

Were you able to find a solution to this?
I'm having the same struggle too.

KetanKumar
Shopify Partner
36835 3635 11966

@Cava 

can you please share store url

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Cava
Excursionist
33 0 16
KetanKumar
Shopify Partner
36835 3635 11966

@Cava 

thanks for url can you please share more details 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

pralinepanini
Tourist
12 0 1

I have just found a solution to this.

 

In the product template, click "add block" , then add the "description" block.

Once you have added this, click on it and it will show a few options for display style. Here you can select "expandable content - open" or "expandable content-closed".

This displays it as a single accordion.

If you then add a separate block of "expandable content" straight after it, they will display as connected and look like one accordion.

Hope this helps someone!

user96
Visitor
1 0 1

I solved this by adding custom liquid block to product template (through usual shopify UI), and then in custom liquid you add code for whatever block u want to achieve, I wanted collapsible row so I inspected collapsible row and presed copy element and put that into custom liquid (in the UI, not the code tab directly). Then I only had to replace line for text with product.description

joar
Tourist
3 0 4

Hey, trying to achieve the same thing. Can you show the code you used?