Shopify themes, liquid, logos, and UX
hello, how to put size chart in my product page, i cant see, select a page in my collapsible row, thank you for the help
Solved! Go to the solution
This is an accepted solution.
Step 1: Navigate to Settings -> Custom Data -> Products. Click "Add Definition" and create a metafield named "Size Chart Image" with the type set to "file".
Step 2: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "image_picker",
"id": "image_with_text_image",
"label": "Image"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
{% if block.settings.image_with_text_image != blank %}
<img src="{{ block.settings.image_with_text_image | img_url:'master' }}" style='margin-top:20px;'>
{%- endif -%}
Hello @sebfe,
To add a size chart to your product page, you can follow these steps:
the collapsible row i have dont have page, how to make metafields for it,
Can you please tell me which theme you have used?
i am using impact theme
This is an accepted solution.
Step 1: Navigate to Settings -> Custom Data -> Products. Click "Add Definition" and create a metafield named "Size Chart Image" with the type set to "file".
Step 2: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "image_picker",
"id": "image_with_text_image",
"label": "Image"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
{% if block.settings.image_with_text_image != blank %}
<img src="{{ block.settings.image_with_text_image | img_url:'master' }}" style='margin-top:20px;'>
{%- endif -%}
this is the result, it has image option now, is it possible to have "select a page" option also, thank you
Step 1: Go to Online Store -> Themes -> Edit Code. Search for the file named "main-product.liquid" and locate "collapsible_text". Paste the code as shown in the attached screenshot.
Code:
{
"type": "page",
"id": "page-size",
"label": "Page"
}
Step 3: Next, find the file named "accordion.liquid" and paste the code as shown in the attached screenshot.
Code:
<p>{{ block.settings.page-size.content }}</p>
What do I do if I have different size charts for different products?
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024