hi, I need help. Is there a way to make the description tab always open? When I enter the product page it is always closed
Enlace web: https://aneven.co/
hi, I need help. Is there a way to make the description tab always open? When I enter the product page it is always closed
Enlace web: https://aneven.co/
Hi @Deiby ,
Please send me the code of product-additional-content.liquid file, I will help you to check and add it
Hello, sorry, I can't find a file with that name, maybe it has another name?
I share the product-template.liquid file in case it is necessary
{%- liquid
assign current_variant = product.selected_or_first_available_variant
assign product_zoom_size = â1800x1800â
assign product_image_size = â620xâ
assign enableHistory = true
if isModal
assign enableHistory = false
endif
case image_container_width
when âsmallâ
assign product_image_width = âmedium-upâtwo-fifthsâ
assign product_description_width = âmedium-upâthree-fifthsâ
assign product_image_size = â480xâ
when âmediumâ
assign product_image_width = âmedium-upâone-halfâ
assign product_description_width = âmedium-upâone-halfâ
assign product_image_size = â620xâ
when âlargeâ
assign product_image_width = âmedium-upâthree-fifthsâ
assign product_description_width = âmedium-upâtwo-fifthsâ
assign product_image_size = â740xâ
endcase
-%}
{%- liquid
assign connect_to_sizechart = false
for block in section.blocks
if block.type == âsize_chartâ
assign sizechart_index = forloop.index0
assign next_block_index = sizechart_index | plus: 1
assign variant_block = section.blocks[next_block_index]
if variant_block.type == âvariant_pickerâ and variant_block.settings.picker_type == âbuttonâ and product.has_only_default_variant == false
for option in product.options_with_values
assign size_trigger = âproducts.general.size_triggerâ | t | downcase
assign downcased_option = option.name | downcase
if downcased_option contains size_trigger
assign connect_to_sizechart = true
endif
endfor
endif
endif
endfor
-%}
{%- render âproduct-template-variablesâ, product: product, current_variant: current_variant -%}
{%- if sku_enable -%}
{%- if current_variant.sku -%} {{ current_variant.sku }} {%- endif -%}
{%- endif -%}{%- if isModal -%}
{{ product.title }}
{%- else -%}
{%- unless product.empty? -%}
{{ current_variant.price | money }}
{%- else -%}
{{ 1999 | money }}
{%- endunless -%}
{{ current_variant.unit_price | money }}/{{ unit_price_base_unit }}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if block.settings.picker_type == âbuttonâ -%}
{%- render âvariant-buttonâ,
block: block,
product: product,
form_id: form_id,
section_id: section_id,
variant_labels: block.settings.variant_labels,
option: option,
forloop: forloop,
is_color: is_color,
color_option_index: color_option_index,
connect_to_sizechart: connect_to_sizechart,
sizechart_index: sizechart_index
-%}
{%- else -%}
{%- render âvariant-dropdownâ,
product: product,
form_id: form_id,
section_id: section_id,
variant_labels: block.settings.variant_labels,
option: option,
forloop: forloop
-%}
{%- endif -%}
{%- endfor -%}
{%- endunless -%}
{%- if block.settings.surface_pickup_enable -%}
{%- endif -%}Hi @Deiby ,
Please send me the code of product-template.liquid file
{%- liquid
assign current_variant = product.selected_or_first_available_variant
assign product_zoom_size = â1800x1800â
assign product_image_size = â620xâ
assign enableHistory = true
if isModal
assign enableHistory = false
endif
case image_container_width
when âsmallâ
assign product_image_width = âmedium-upâtwo-fifthsâ
assign product_description_width = âmedium-upâthree-fifthsâ
assign product_image_size = â480xâ
when âmediumâ
assign product_image_width = âmedium-upâone-halfâ
assign product_description_width = âmedium-upâone-halfâ
assign product_image_size = â620xâ
when âlargeâ
assign product_image_width = âmedium-upâthree-fifthsâ
assign product_description_width = âmedium-upâtwo-fifthsâ
assign product_image_size = â740xâ
endcase
-%}
{%- liquid
assign connect_to_sizechart = false
for block in section.blocks
if block.type == âsize_chartâ
assign sizechart_index = forloop.index0
assign next_block_index = sizechart_index | plus: 1
assign variant_block = section.blocks[next_block_index]
if variant_block.type == âvariant_pickerâ and variant_block.settings.picker_type == âbuttonâ and product.has_only_default_variant == false
for option in product.options_with_values
assign size_trigger = âproducts.general.size_triggerâ | t | downcase
assign downcased_option = option.name | downcase
if downcased_option contains size_trigger
assign connect_to_sizechart = true
endif
endfor
endif
endif
endfor
-%}
{%- render âproduct-template-variablesâ, product: product, current_variant: current_variant -%}
{%- if sku_enable -%}
{%- if current_variant.sku -%} {{ current_variant.sku }} {%- endif -%}
{%- endif -%}{%- if isModal -%}
{{ product.title }}
{%- else -%}
{%- unless product.empty? -%}
{{ current_variant.price | money }}
{%- else -%}
{{ 1999 | money }}
{%- endunless -%}
{{ current_variant.unit_price | money }}/{{ unit_price_base_unit }}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if block.settings.picker_type == âbuttonâ -%}
{%- render âvariant-buttonâ,
block: block,
product: product,
form_id: form_id,
section_id: section_id,
variant_labels: block.settings.variant_labels,
option: option,
forloop: forloop,
is_color: is_color,
color_option_index: color_option_index,
connect_to_sizechart: connect_to_sizechart,
sizechart_index: sizechart_index
-%}
{%- else -%}
{%- render âvariant-dropdownâ,
product: product,
form_id: form_id,
section_id: section_id,
variant_labels: block.settings.variant_labels,
option: option,
forloop: forloop
-%}
{%- endif -%}
{%- endfor -%}
{%- endunless -%}
{%- if block.settings.surface_pickup_enable -%}
{%- endif -%}I send it to you in a text document
Hi @Deiby ,
Please send me the code of tab.liquid file, it is a file containing all the code, I will help you edit the code here.
Hi @LitCommerce
{%- liquid
assign output_tab = true
if title == blank and content == blank
assign output_tab = false
endif
-%}
{%- if output_tab -%}
Hi @Deiby ,
Please change all code:
{%- liquid
assign output_tab = true
if title == blank and content == blank
assign output_tab = false
endif
if title == 'DescripciĂłn'
assign force_open = true
endif
-%}
{%- if output_tab -%}
{{ content }}
{%- endif -%}
Hope it helps!
For future reference. You can disable the option âTabs as accordionâ in Products â Product information â Layout.
I am sure all themes have a similar option. I never knew themes had user manuals.
https://softalib4.gitbook.io/minion-shopify-theme/products#layout
Hi, I have the same problem, can you figure out where to locate the problem in this file? This is my product-additional-content.liquid file.
{%- assign blockId = block.id -%}
{% if product %}
{%- assign blockId = block.id | append: product.id -%}
{% endif %}
{%- assign has_custom_tabs = false -%}
{% for tag in product.tags %}
{% if tag contains â_tabâ %}
{%- assign has_custom_tabs = true -%}
{% endif %}
{% endfor %}
{% if settings.product_content_1 != blank or settings.product_content_2 != blank or settings.product_content_3 != blank or settings.product_contact or has_custom_tabs or product.description %}
{% if product.description or product.empty? %}
{{ âproducts.product.descriptionâ | t }}
{% include âcollapsible-iconsâ %}
{% for tag in product.tags %}
{% if tag contains âtabâ %}
{%- assign include_page_handle = tag | split: 'â -%}
{%- assign include_page = pages[include_page_handle.last] -%}
{% if include_page.title != blank %}
{{ include_page.title }}
{% include âcollapsible-iconsâ %}
{% if settings.product_content_1 != blank %}
{{ pages[settings.product_content_1].title }}
{% include âcollapsible-iconsâ %}
{% if settings.product_contact %}
{% form âcontactâ %}
{% if settings.product_contact_show_phone %}
{{ âcontact.form.phoneâ | t }}
{% endif %}
{{ âcontact.form.messageâ | t }}
{% if form.body %}{{ form.body }}{% endif %} {{ 'contact.form.send' | t }}{% if form.posted_successfully? %}
{{ 'contact.form.post_success' | t }}
{% endif %}{% if form.errors %}
{{ form.errors | default_errors }}
{% endif %}
{% endform %}
{% endif %}
You can disable the option âTabs as accordionâ in Products â Product information â Layout.
I am sure all themes have a similar option. I never knew themes had user manuals.
https://softalib4.gitbook.io/minion-shopify-theme/products#layout
This does not work on my theme⌠I´m using Streamline.