Hi,
As mentioned in the subject I want the product details to appear inside a collapsible row your
Your help is highly appreciated.
Goal: Make the product description appear in a collapsible row (accordion) on the Shopify product page. A screenshot was shared to illustrate the desired UI.
Solution provided:
Note: The shared code checks product.metafields.info.collapsible_description == true, which differs from the earlier metafield key (info.collapsible_row). Despite this potential mismatch, the original poster confirmed it âworked like a charm.â
Status:
Hi,
As mentioned in the subject I want the product details to appear inside a collapsible row your
Your help is highly appreciated.
Hi,
First create a product metafield by following these steps:
Go to settings - custom data - products
Click on add definition and name it Collapsible Row
In the Namespace and key add this info.collapsible_row
Select type true or false
Save
Now open your main-product.liquid and select all and copy and paste it in a notepad on your desktop to make sure that if anything went wrong you have a backup.
Search for {%- when âdescriptionâ -%} and select until {%- endif -%}
You will know that it is the correct endif that directly below it will be another {% when ⊠something
Now paste the follwoing code âI will add on a separate replyâ and save.
The final stage is to open your products and go down until you see the metafield and click on it True.
{%- when âdescriptionâ -%}
{%- if product.description != blank -%}
{%- if product.metafields.info.collapsible_description == true -%}
{%- endif -%}
Thank you very much worked like a charm
You are welcome glad I could help.
Hi, where do I input the code