Insert a page, not a single line, in the product description tab IMPULSE THEME

Hello,

I would be grateful if you could help me insert a page metafields, not a single line, in the product description tab. This page will only be displayed for one product category, not for all products. I can’t do it because the tab only takes single line metafields, who has a solution?

www.shapesdecor.com IMPULSE THEME

Thank you!

@valeriashapes
You can add multi line text option from here for the meta field

settings ->Meta field->add definition

It doesn’t even take multi lines, only single lines. In addition, it is a text where photos also go, so it would be necessary to link a page.

Hi @valeriashapes ,

Please send me the code of main-product.liquid file, I will check it for you

Hi @Litos

Thank you for check!

{%- liquid
assign isModal = false
if template == ‘product.modal’
assign isModal = true
endif
-%}

{%- render ‘product-template’,
product: product,
section_id: section.id,
blocks: section.blocks,

image_position: section.settings.image_position,
image_container_width: section.settings.image_size,
product_zoom_enable: section.settings.product_zoom_enable,
sku_enable: section.settings.sku_enable,
isModal: isModal,
thumbnail_position: section.settings.thumbnail_position,
thumbnail_arrows: section.settings.thumbnail_arrows,
mobile_layout: section.settings.mobile_layout,
video_looping: section.settings.enable_video_looping,
video_style: section.settings.product_video_style
-%}

{% schema %}
{
“name”: “t:sections.main-product.name”,
“settings”: [
{
“type”: “checkbox”,
“id”: “sku_enable”,
“label”: “t:sections.main-product.settings.sku_enable.label”
},
{
“type”: “header”,
“content”: “t:sections.main-product.settings.header_media”
},
{
“type”: “paragraph”,
“content”: “t:sections.main-product.settings.content”
},
{
“type”: “select”,
“id”: “image_position”,
“label”: “t:sections.main-product.settings.image_position.label”,
“default”: “left”,
“options”: [
{
“value”: “left”,
“label”: “t:sections.main-product.settings.image_position.options.left.label”
},
{
“value”: “right”,
“label”: “t:sections.main-product.settings.image_position.options.right.label”
}
]
},
{
“type”: “select”,
“id”: “image_size”,
“label”: “t:sections.main-product.settings.image_size.label”,
“default”: “medium”,
“options”: [
{
“value”: “small”,
“label”: “t:sections.main-product.settings.image_size.options.small.label”
},
{
“value”: “medium”,
“label”: “t:sections.main-product.settings.image_size.options.medium.label”
},
{
“value”: “large”,
“label”: “t:sections.main-product.settings.image_size.options.large.label”
}
]
},
{
“type”: “checkbox”,
“id”: “product_zoom_enable”,
“label”: “t:sections.main-product.settings.product_zoom_enable.label”,
“default”: true
},
{
“type”: “select”,
“id”: “thumbnail_position”,
“label”: “t:sections.main-product.settings.thumbnail_position.label”,
“default”: “beside”,
“options”: [
{
“value”: “beside”,
“label”: “t:sections.main-product.settings.thumbnail_position.options.beside.label”
},
{
“value”: “below”,
“label”: “t:sections.main-product.settings.thumbnail_position.options.below.label”
}
]
},
{
“type”: “checkbox”,
“id”: “thumbnail_arrows”,
“label”: “t:sections.main-product.settings.thumbnail_arrows.label”
},
{
“type”: “select”,
“id”: “mobile_layout”,
“label”: “t:sections.main-product.settings.mobile_layout.label”,
“default”: “partial”,
“options”: [
{
“value”: “partial”,
“label”: “t:sections.main-product.settings.mobile_layout.options.partial.label”
},
{
“value”: “full”,
“label”: “t:sections.main-product.settings.mobile_layout.options.full.label”
}
]
},
{
“type”: “checkbox”,
“id”: “enable_video_looping”,
“label”: “t:sections.main-product.settings.enable_video_looping.label”,
“default”: true
},
{
“type”: “select”,
“id”: “product_video_style”,
“label”: “t:sections.main-product.settings.product_video_style.label”,
“default”: “muted”,
“options”: [
{
“value”: “muted”,
“label”: “t:sections.main-product.settings.product_video_style.options.muted.label”
},
{
“value”: “unmuted”,
“label”: “t:sections.main-product.settings.product_video_style.options.unmuted.label”
}
],
“info”: “t:sections.main-product.settings.product_video_style.info”
}
],
“blocks”: [{
“type”: “@app
},
{
“type”: “price”,
“name”: “t:product_block.price.name”,
“limit”: 1
},
{
“type”: “quantity_selector”,
“name”: “t:product_block.quantity_selector.name”,
“limit”: 1
},
{
“type”: “size_chart”,
“name”: “t:product_block.size_chart.name”,
“limit”: 1,
“settings”: [
{
“type”: “page”,
“id”: “size_chart”,
“label”: “t:product_block.size_chart.settings.page.label”
}
]
},
{
“type”: “variant_picker”,
“name”: “Variant picker”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “variant_labels”,
“label”: “t:product_block.variant_picker.settings.variant_labels.label”,
“default”: true
},
{
“type”: “select”,
“id”: “picker_type”,
“label”: “t:product_block.variant_picker.settings.picker_type.label”,
“options”: [
{
“value”: “button”,
“label”: “t:product_block.variant_picker.settings.picker_type.options.button.label”
},
{
“value”: “dropdown”,
“label”: “t:product_block.variant_picker.settings.picker_type.options.dropdown.label”
}
],
“default”: “button”
},
{
“type”: “checkbox”,
“id”: “color_swatches”,
“label”: “Enable color swatches”,
“info”: “Requires type to be set to ‘Buttons’. Learn how to set up swatches
}
]
},
{
“type”: “description”,
“name”: “t:product_block.description.name”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “is_tab”,
“label”: “t:product_block.description.settings.is_tab.label”
}
]
},
{
“type”: “buy_buttons”,
“name”: “t:product_block.buy_buttons.name”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_dynamic_checkout”,
“label”: “t:product_block.buy_buttons.settings.show_dynamic_checkout.label”,
“info”: “t:product_block.buy_buttons.settings.show_dynamic_checkout.info”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “surface_pickup_enable”,
“label”: “t:product_block.buy_buttons.settings.surface_pickup_enable.label”,
“info”: “t:product_block.buy_buttons.settings.surface_pickup_enable.info”,
“default”: true
}
]
},
{
“type”: “inventory_status”,
“name”: “t:product_block.inventory_status.name”,
“limit”: 1,
“settings”: [
{
“type”: “range”,
“id”: “inventory_threshold”,
“label”: “t:product_block.inventory_status.settings.inventory_threshold.label”,
“default”: 10,
“min”: 0,
“max”: 20,
“step”: 2
},
{
“type”: “checkbox”,
“id”: “inventory_transfers_enable”,
“label”: “t:product_block.inventory_status.settings.inventory_transfers_enable.label”,
“info”: “t:product_block.inventory_status.settings.inventory_transfers_enable.info”,
“default”: true
}
]
},
{
“type”: “sales_point”,
“name”: “t:product_block.sales_point.name”,
“settings”: [
{
“type”: “select”,
“id”: “icon”,
“label”: “t:product_block.sales_point.settings.icon.label”,
“default”: “globe”,
“options”: [
{
“value”: “checkmark”,
“label”: “t:product_block.sales_point.settings.icon.options.checkmark.label”
},
{
“value”: “gift”,
“label”: “t:product_block.sales_point.settings.icon.options.gift.label”
},
{
“value”: “globe”,
“label”: “t:product_block.sales_point.settings.icon.options.globe.label”
},
{
“value”: “heart”,
“label”: “t:product_block.sales_point.settings.icon.options.heart.label”
},
{
“value”: “leaf”,
“label”: “t:product_block.sales_point.settings.icon.options.leaf.label”
},
{
“value”: “lock”,
“label”: “t:product_block.sales_point.settings.icon.options.lock.label”
},
{
“value”: “package”,
“label”: “t:product_block.sales_point.settings.icon.options.package.label”
},
{
“value”: “phone”,
“label”: “t:product_block.sales_point.settings.icon.options.phone.label”
},
{
“value”: “ribbon”,
“label”: “t:product_block.sales_point.settings.icon.options.ribbon.label”
},
{
“value”: “shield”,
“label”: “t:product_block.sales_point.settings.icon.options.shield.label”
},
{
“value”: “tag”,
“label”: “t:product_block.sales_point.settings.icon.options.tag.label”
},
{
“value”: “truck”,
“label”: “t:product_block.sales_point.settings.icon.options.truck.label”
}
]
},
{
“type”: “text”,
“id”: “text”,
“label”: “t:product_block.sales_point.settings.text.label”,
“default”: “Free worldwide shipping”
}
]
},
{
“type”: “text”,
“name”: “t:product_block.text.name”,
“settings”: [
{
“type”: “text”,
“id”: “text”,
“default”: “Text block”,
“label”: “t:product_block.text.settings.text.label”
}
]
},
{
“type”: “trust_badge”,
“name”: “t:product_block.trust_badge.name”,
“settings”: [
{
“type”: “image_picker”,
“id”: “trust_image”,
“label”: “t:product_block.trust_badge.settings.trust_image.label”
}
]
},
{
“type”: “tab”,
“name”: “t:product_block.tab.name”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “t:product_block.tab.settings.title.label”,
“default”: “Shipping information”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “t:product_block.tab.settings.content.label”,
“default”: “

Use collapsible tabs for more detailed information that will help customers make a purchasing decision.

Ex: Shipping and return policies, size guides, and other common questions.


},
{
“type”: “page”,
“id”: “page”,
“label”: “t:product_block.tab.settings.page.label”
}
]
},
{
“type”: “share”,
“name”: “t:product_block.share_on_social.name”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:product_block.share_on_social.settings.content”
}
]
},
{
“type”: “separator”,
“name”: “t:product_block.separator.name”
},
{
“type”: “contact”,
“name”: “t:product_block.contact_form.name”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:product_block.contact_form.settings.content”
},
{
“type”: “text”,
“id”: “title”,
“label”: “t:product_block.contact_form.settings.title.label”,
“default”: “Ask a question”
},
{
“type”: “checkbox”,
“id”: “phone”,
“label”: “t:product_block.contact_form.settings.phone.label”
}
]
},
{
“type”: “custom”,
“name”: “t:product_block.html.name”,
“settings”: [
{
“type”: “liquid”,
“id”: “code”,
“label”: “t:product_block.html.settings.code.label”,
“default”: “

Custom code block

Use this advanced section to add custom HTML, app scripts, or liquid.

”,
“info”: “t:product_block.html.settings.code.info”
}
]
}
]
}
{% endschema %}

Hi @valeriashapes ,

Please send me the code of product-additional-content.liquid file, I will check it

Hi @Litos ,

I didn’t find it, anyway I have to add this tab in product-full-width.liquid I guess.

{%- if section.blocks.size > 0 -%}

{%- for block in section.blocks -%} {%- case block.type -%} {%- when '@app' -%} {% render block %} {%- when 'separator' -%}

{%- when 'text' -%}
{{ block.settings.text }}
{%- when 'tab' -%}
{% assign tab_id = block.id | append: product.id %} {% capture tab_content %} {{ block.settings.content }} {{ block.settings.page.content }} {% endcapture %} {%- render 'tab', id: tab_id, title: block.settings.title, content: tab_content -%}
{%- when 'contact' -%}
{% assign tab_id = block.id | append: product.id %} {%- render 'tab-contact', id: tab_id, block: block -%}
{%- when 'description' -%}
{%- assign id = block.id | append: product.id -%} {%- render 'product-description', id: id, product: product, is_tab: block.settings.is_tab -%}
{%- when 'share' -%}
{%- render 'social-sharing', share_title: product.title, share_permalink: product.url, share_image: product -%}
{%- when 'custom' -%}
{{ block.settings.code }}
{%- endcase -%} {%- endfor -%}
{%- endif -%}

{% schema %}
{
“name”: “t:sections.product-full-width.name”,
“class”: “product-full-width”,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:sections.product-full-width.settings.content”
},
{
“type”: “checkbox”,
“id”: “max_width”,
“label”: “t:sections.product-full-width.settings.max_width.label”,
“info”: “t:sections.product-full-width.settings.max_width.info”,
“default”: true
}
],
“blocks”: [
{
“type”: “@app
},
{
“type”: “description”,
“name”: “t:sections.product-full-width.blocks.description.name”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “is_tab”,
“label”: “t:sections.product-full-width.blocks.description.settings.is_tab.label”
}
]
},
{
“type”: “text”,
“name”: “t:sections.product-full-width.blocks.text.name”,
“settings”: [
{
“type”: “text”,
“id”: “text”,
“default”: “Text block”,
“label”: “t:sections.product-full-width.blocks.text.settings.text.label”
}
]
},
{
“type”: “tab”,
“name”: “t:sections.product-full-width.blocks.tab.name”,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “t:sections.product-full-width.blocks.tab.settings.title.label”,
“default”: “Shipping information”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “t:sections.product-full-width.blocks.tab.settings.content.label”,
“default”: “

Use collapsible tabs for more detailed information that will help customers make a purchasing decision.

Ex: Shipping and return policies, size guides, and other common questions.


},
{
“type”: “page”,
“id”: “page”,
“label”: “t:sections.product-full-width.blocks.tab.settings.page.label”
}
]
},
{
“type”: “share”,
“name”: “t:sections.product-full-width.blocks.share_on_social.name”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:sections.product-full-width.blocks.share_on_social.settings.content”
}
]
},
{
“type”: “separator”,
“name”: “t:sections.product-full-width.blocks.separator.name”
},
{
“type”: “contact”,
“name”: “t:sections.product-full-width.blocks.contact_form.name”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “t:sections.product-full-width.blocks.contact_form.settings.content”
},
{
“type”: “text”,
“id”: “title”,
“label”: “t:sections.product-full-width.blocks.contact_form.settings.title.label”,
“default”: “Ask a question”
},
{
“type”: “checkbox”,
“id”: “phone”,
“label”: “t:sections.product-full-width.blocks.contact_form.settings.phone.label”
}
]
},
{
“type”: “custom”,
“name”: “t:sections.product-full-width.blocks.html.name”,
“settings”: [
{
“type”: “liquid”,
“id”: “code”,
“label”: “t:sections.product-full-width.blocks.html.settings.code.label”,
“default”: “

Custom code block

Use this advanced section to add custom HTML, app scripts, or liquid.

”,
“info”: “t:sections.product-full-width.blocks.html.settings.code.info”
}
]

Hi @valeriashapes ,

Please select the Metafields page here, it will display fine: