[PRESTIGE THEME] moving sections in the product description

Hello to everyone,

I created a product page using metafields and section “content” (i am using prestige theme) and i have two questions:

  • On the desktop view all the content is below everything and the user has to click on “show more information” in order to see the sections, is there a way to move everything below the “add to cart” button as shown in the attached image?

  • Is there a way to keep the “Descrizione” section already expanded once the user arrives to the product page?
    There is another image attached.

Thanks in advance, have a great day!

Edoardo

Hi @Cava ,

Please send me the code of sections > product-template.liquid file, I will check and change it for you

Hey,
I cannot find it, I have the .json and not the .liquid

I’m using Prestige v5

Hi @Cava ,

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

{%- assign meta_block = section.blocks | where: ‘type’, ‘product_meta’ | first -%}
{%- assign share_buttons_block = section.blocks | where: ‘type’, ‘share_buttons’ | first -%}
{%- assign inventory_block = section.blocks | where: ‘type’, ‘inventory’ | first -%}
{%- assign buy_buttons_block = section.blocks | where: ‘type’, ‘buy_buttons’ | first -%}

{%- capture section_settings -%}
{
“enableHistoryState”: true,
“templateSuffix”: {{ product.template_suffix | json }},
“showInventoryQuantity”: {% if inventory_block != blank %}true{% else %}false{% endif %},
“showSku”: {{ meta_block.settings.show_sku | json }},
“stackProductImages”: {{ section.settings.stack_images | json }},
“showThumbnails”: {{ section.settings.show_thumbnails | json }},
“enableVideoLooping”: {{ section.settings.enable_video_looping | json }},
“inventoryQuantityThreshold”: {{ inventory_block.settings.inventory_quantity_threshold | default: 0 }},
“showPriceInButton”: {{ buy_buttons_block.settings.show_price_in_button | json }},
“enableImageZoom”: {{ section.settings.enable_image_zoom | json }},
“showPaymentButton”: {{ buy_buttons_block.settings.show_payment_button | json }},
“useAjaxCart”: {% if settings.cart_type == ‘drawer’ %}true{% else %}false{% endif %}
}
{%- endcapture -%}

{%- capture action_list_items -%} {%- if section.settings.enable_image_zoom -%}
{% render 'icon' with 'plus' %}
{%- endif -%}

{%- if share_buttons_block != blank -%}

{% render 'icon' with 'share' %} {% render 'icon' with 'close' %}

{%- assign share_url = shop.url | append: product.url -%}
{%- assign twitter_text = product.title -%}
{%- assign pinterest_description = product.description | strip_html | truncatewords: 15 | url_param_escape -%}
{%- assign pinterest_image = product.featured_media | img_url: ‘1024x’ | prepend: ‘https:’ -%}

{%- endif -%} {%- endcapture -%}

{%- comment -%}

PRODUCT GALLERY

{%- endcomment -%}

{%- assign initial_media_id = product.featured_media.id -%}
{%- assign initial_media_index = 0 -%}
{%- assign media_count = 0 -%}

{%- capture slideshow_media -%}
{%- for media in product.media -%}
{%- if product.selected_variant and media.id == product.selected_variant.featured_media.id -%}
{%- assign initial_media_index = media_count -%}
{%- assign initial_media_id = media.id -%}
{%- endif -%}

{%- capture supported_sizes -%}{%- render ‘image-size’, sizes: ‘200,400,600,700,800,900,1000,1200,1400,1600’, image: media -%}{%- endcapture -%}

{%- case media.media_type -%}
{%- when ‘image’ -%}

{% assign image_url = media | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %}

{{ media.alt | escape }}

{{ media.alt | escape }}

{%- when ‘external_video’ -%}

{{- media | external_video_tag: image_size: '1024x' -}}

{%- when ‘video’ -%}

{{- media | video_tag: image_size: '1024x', controls: true -}}

{%- when ‘model’ -%}

{{- media | model_viewer_tag: image_size: '1024x', reveal: 'interaction', toggleable: true -}}
{%- endcase -%}

{%- assign media_count = media_count | plus: 1 -%}
{%- endfor -%}
{%- endcapture -%}

{%- if product.media.size > 0 -%}

{%- if action_list_items != blank -%}

{{ action_list_items }}
{%- endif -%}

{%- capture slideshow_nav -%}
{%- if media_count > 1 -%}
{%- if section.settings.show_thumbnails -%}

{%- for media in product.media -%} {%- capture nav_item_badge -%} {%- case media.media_type -%} {%- when 'model' -%} {% render 'icon', icon: 'media-model-badge' %}

{%- when ‘video’ or ‘external_video’ -%}
{% render ‘icon’, icon: ‘media-video-badge’ %}
{%- endcase -%}
{%- endcapture -%}

{%- if section.settings.stack_images -%}

{{ media.alt | escape }}
{{- nav_item_badge -}}

{%- else -%}

{{ media.alt | escape }}
{{- nav_item_badge -}}

{%- endif -%}
{%- endfor -%}

{%- endif -%}

{%- if section.settings.stack_images -%}

{%- for media in product.media -%} {%- endfor -%}
{%- endif -%} {%- endif -%} {%- endcapture -%}

{%- if section.settings.stack_images -%}
{{- slideshow_nav -}}
{%- endif -%}

{%- capture flickity_options -%}
{
“prevNextButtons”: false,
“pageDots”: false,
“adaptiveHeight”: true,
“watchCSS”: true,
“dragThreshold”: 8,
“initialIndex”: {{ initial_media_index }},
“arrowShape”: {“x0”: 20, “x1”: 60, “y1”: 40, “x2”: 60, “y2”: 35, “x3”: 25}
}
{%- endcapture -%}

{{ slideshow_media }}

{%- comment -%}Add the “view in your space” button, which allows to show the product in customer’s environment (if the device supports it){%- endcomment -%}
{%- assign first_3d_model = product.media | where: ‘media_type’, ‘model’ | first -%}

{%- if first_3d_model -%}

{%- render ‘icon’, icon: ‘media-view-in-space’ -%} {{- ‘product.general.view_in_space’ | t -}}

{%- endif -%}

{%- if media_count > 1 -%}
{%- comment -%}
IMPLEMENTATION NOTE: The reason we create ourselves our own UI instead of relying of the built-in feature of Flickity is that,
since the media API, Shopify requires to add arrows next to the dot. Unfortunately this layout is not
achievable easily using Flickity options only, so we have to run our own
{%- endcomment -%}

{% render 'icon' with 'media-arrow-left' %}
{%- for i in (1..media_count) -%} {%- endfor -%}
{% render 'icon' with 'media-arrow-right' %}
{%- endif -%}

{%- unless section.settings.stack_images -%}
{{- slideshow_nav -}}
{%- endunless -%}

{%- endif -%}

{%- capture product_aside -%}
{%- comment -%}

PRODUCT TABS

{%- endcomment -%}

{%- render ‘product-tabs’ -%}

{%- comment -%}

PRODUCT WEAR IT WITH

{%- endcomment -%}

{%- assign buy_it_with_block = section.blocks | where: ‘type’, ‘buy_it_with’ | first -%}

{%- if buy_it_with_block != blank and buy_it_with_block.settings.product != blank -%}
{%- assign associated_product = buy_it_with_block.settings.product -%}

{{ buy_it_with_block.settings.title | escape }}

{% render ‘product-item’, product: associated_product, use_horizontal: true, show_labels: false, show_product_info: true, show_vendor: false, show_price_on_hover: false %}

{%- endif -%} {%- endcapture -%}
{%- assign has_ouputted_variant_selector = false -%}

{%- form ‘product’, product, class: ‘ProductForm’ -%}
{%- render ‘product-data’, product: product -%}

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

{%- when ‘product_meta’ -%}
{%- render ‘product-meta’, form: form, block: block, product: product -%}

{%- when ‘description’ -%}
{%- if product.description != blank -%}

{{- product.description | replace: 'data-section-type', 'data-section-type-placeholder' -}}
{%- endif -%}

{%- when ‘share_buttons’ -%}

{{ 'product.form.share' | t }}

{%- assign share_url = shop.url | append: product.url -%}
{%- assign twitter_text = product.title -%}
{%- assign pinterest_description = product.description | strip_html | truncatewords: 15 | url_param_escape -%}
{%- assign pinterest_image = product.featured_image | img_url: ‘large’ | prepend: ‘https:’ -%}

{%- when ‘variant_selector’ -%}
{%- assign has_ouputted_variant_selector = true -%}
{%- render ‘product-form’, block: block, product: product -%}

{%- when ‘quantity_selector’ -%}

{%- if block.settings.show_label -%} {{ 'product.form.quantity' | t }}: {%- endif -%}
{%- assign quantity_minus_one = line_item.quantity | minus: 1 -%}

{% render ‘icon’ with ‘minus’ %}

{% render ‘icon’ with ‘plus’ %}

{%- when ‘inventory’ -%}
{%- assign hide_inventory_quantity_by_default = false -%}

{%- if product.selected_or_first_available_variant.inventory_management == blank or product.selected_or_first_available_variant.inventory_quantity <= 0 -%}
{%- assign hide_inventory_quantity_by_default = true -%}
{%- endif -%}

{%- if block.settings.inventory_quantity_threshold != 0 and product.selected_or_first_available_variant.inventory_quantity > block.settings.inventory_quantity_threshold -%}
{%- assign hide_inventory_quantity_by_default = true -%}
{%- endif -%}

{%- if block.settings.inventory_quantity_threshold == 0 -%} {{- 'product.form.inventory_quantity_count' | t: count: product.selected_or_first_available_variant.inventory_quantity -}} {%- else -%} {{- 'product.form.low_inventory_quantity_count' | t: count: product.selected_or_first_available_variant.inventory_quantity -}} {%- endif -%}

{%- when ‘buy_buttons’ -%}
{%- if block.settings.show_payment_button == false or product.selling_plan_groups.size > 0 -%}
{%- assign use_primary_button = true -%}
{%- else -%}
{%- assign use_primary_button = false -%}
{%- endif -%}

{%- if block.settings.show_payment_button and product.selected_or_first_available_variant.available == false -%} #shopify-section-{{ section.id }} .shopify-payment-button { display: none; } {%- endif -%}

<button type=“submit” data-use-primary-button=“{% if use_primary_button %}true{% else %}false{% endif %}” class=“ProductForm__AddToCart Button {% if product.selected_or_first_available_variant.available and use_primary_button %}Button–primary{% else %}Button–secondary{% endif %} Button–full” {% if product.selected_or_first_available_variant.available %}data-action=“add-to-cart”{% else %}disabled=“disabled”{% endif %}>
{%- if product.selected_or_first_available_variant.available -%}
{% if product.template_suffix == ‘pre-order’ %}{{ ‘product.form.pre_order’ | t }}{% else %}{{ ‘product.form.add_to_cart’ | t }}{% endif %}

{%- if block.settings.show_price_in_button -%}

{{ product.selected_or_first_available_variant.price | money }}
{%- endif -%}
{%- else -%}
{{- ‘product.form.sold_out’ | t -}}
{%- endif -%}

{%- if block.settings.show_payment_button and product.template_suffix != ‘pre-order’ -%}
{{ form | payment_button }}
{%- endif -%}

{%- when ‘store_pickup’ -%}
{%- comment -%}The availability container will be added automatically if there is store pickup available{%- endcomment -%}

{%- when ‘text’ -%}
{%- if block.settings.text != blank -%}

{{- block.settings.text -}}
{%- endif -%}

{%- when ‘liquid’ -%}
{%- if block.settings.liquid != blank -%}

{{ block.settings.liquid }}
{%- endif -%}

{%- endcase -%}
{%- endfor -%}

{%- unless has_ouputted_variant_selector -%}
{%- comment -%}If for any reason the merchant has removed the variant selector block, we still output the ID here{%- endcomment -%}

{%- endunless -%}
{%- endform -%}

{%- if section.settings.stack_images and product_aside != blank and media_count > 0 -%}

{%- endif -%}

{%- if product_aside != blank -%}

{{- product_aside -}}
{%- endif -%}

{%- comment -%}

PHOTO SWIPE

This is the root container for the zoom functionality. Must not be removed, as order element is important.

{%- endcomment -%}

{%- if section.settings.enable_image_zoom -%}

{% render 'icon' with 'arrow-left' %} {% render 'icon' with 'close' %} {% render 'icon' with 'arrow-right' %}
{%- endif -%}

{% schema %}
{
“name”: “Product page”,
“class”: “shopify-section–bordered”,
“blocks”: [
{
“type”: “product_meta”,
“name”: “Product meta”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_vendor”,
“label”: “Show vendor”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_sku”,
“label”: “Show SKU”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_product_rating”,
“label”: “Show product rating”,
“info”: “To display a rating, add a product rating app. Learn more”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_taxes_included”,
“label”: “Show price taxes notice”,
“default”: false
}
]
},
{
“type”: “variant_selector”,
“name”: “Variant selector”,
“limit”: 1,
“settings”: [
{
“type”: “select”,
“id”: “selector_mode”,
“label”: “Selector type”,
“options”: [
{
“value”: “block”,
“label”: “Block”
},
{
“value”: “dropdown”,
“label”: “Dropdown”
}
],
“default”: “dropdown”
},
{
“type”: “checkbox”,
“id”: “show_color_swatch”,
“label”: “Show color swatch”,
“default”: false,
“info”: “Some colors appear white? Learn more.”
},
{
“type”: “checkbox”,
“id”: “show_color_carousel”,
“label”: “Show color carousel”,
“info”: “A pop-up selector with variant images for choosing colors. Only enables when color swatch is disabled.”,
“default”: false
},
{
“type”: “page”,
“id”: “size_chart”,
“label”: “Size chart”,
“info”: “Show along option named Size.”
}
]
},
{
“type”: “share_buttons”,
“name”: “Share buttons”,
“limit”: 1
},
{
“type”: “inventory”,
“name”: “Inventory”,
“limit”: 1,
“settings”: [
{
“type”: “range”,
“id”: “inventory_quantity_threshold”,
“label”: “Inventory quantity threshold”,
“info”: “Only show inventory quantity if below threshold. Choose 0 to always show.”,
“min”: 0,
“max”: 50,
“step”: 1,
“default”: 0
}
]
},
{
“type”: “buy_buttons”,
“name”: “Buy buttons”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_price_in_button”,
“label”: “Show price in add to cart button”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_payment_button”,
“label”: “Show dynamic checkout button”,
“info”: “Each customer will see their preferred payment method from those available on your store, such as PayPal or Apple Pay. Learn more”,
“default”: true
}
]
},
{
“type”: “description”,
“name”: “Description”,
“limit”: 1
},
{
“type”: “liquid”,
“name”: “Liquid”,
“settings”: [
{
“type”: “paragraph”,
“content”: “This Liquid code will show on the right part of the product page.”
},
{
“type”: “liquid”,
“id”: “liquid”,
“label”: “Liquid”
}
]
},
{
“type”: “quantity_selector”,
“name”: “Quantity selector”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “show_label”,
“label”: “Show label”,
“default”: false
}
]
},
{
“type”: “text”,
“name”: “Text”,
“settings”: [
{
“type”: “paragraph”,
“content”: “This text will show on the right part of the product page.”
},
{
“type”: “text”,
“id”: “text”,
“label”: “Text”
}
]
},
{
“type”: “store_pickup”,
“name”: “Local pickup availability”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: “Show customers where they can pick up the product. Learn more
}
]
},
{
“type”: “@app
},
{
“name”: “Content”,
“type”: “content”,
“settings”: [
{
“type”: “paragraph”,
“content”: “This content will show on the left part, below the product images.”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Title”
},
{
“type”: “richtext”,
“id”: “content”,
“label”: “Content”
},
{
“type”: “page”,
“id”: “page”,
“label”: “Content from page”,
“info”: “If specified, takes precedence over inline content.”
}
]
},
{
“name”: “Reviews”,
“type”: “reviews”,
“limit”: 1,
“settings”: [
{
“type”: “paragraph”,
“content”: "To show reviews, install Shopify Product Reviews. This content will show on the left part, below the product images. "
}
]
},
{
“name”: “Buy it with”,
“type”: “buy_it_with”,
“limit”: 1,
“settings”: [
{
“type”: “product”,
“id”: “product”,
“label”: “Product”
},
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Buy it with”
}
]
}
],
“settings”: [
{
“type”: “header”,
“content”: “Media”
},
{
“type”: “paragraph”,
“content”: “Learn more about media types
},
{
“type”: “select”,
“id”: “image_size”,
“label”: “Size”,
“options”: [
{
“value”: “small”,
“label”: “Small”
},
{
“value”: “medium”,
“label”: “Medium”
},
{
“value”: “large”,
“label”: “Large”
},
{
“value”: “fill”,
“label”: “Fill screen”
}
],
“default”: “large”
},
{
“type”: “checkbox”,
“id”: “stack_images”,
“label”: “Stack images on desktop”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_thumbnails”,
“label”: “Show thumbnails on desktop”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_image_zoom”,
“label”: “Enable zoom”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_video_looping”,
“label”: “Enable video looping”,
“default”: false
}
]
}
{% endschema %}

Hi @Cava ,

Please change code:

{%- assign meta_block = section.blocks | where: 'type', 'product_meta' | first -%}
{%- assign share_buttons_block = section.blocks | where: 'type', 'share_buttons' | first -%}
{%- assign inventory_block = section.blocks | where: 'type', 'inventory' | first -%}
{%- assign buy_buttons_block = section.blocks | where: 'type', 'buy_buttons' | first -%}

{%- capture section_settings -%}
{
"enableHistoryState": true,
"templateSuffix": {{ product.template_suffix | json }},
"showInventoryQuantity": {% if inventory_block != blank %}true{% else %}false{% endif %},
"showSku": {{ meta_block.settings.show_sku | json }},
"stackProductImages": {{ section.settings.stack_images | json }},
"showThumbnails": {{ section.settings.show_thumbnails | json }},
"enableVideoLooping": {{ section.settings.enable_video_looping | json }},
"inventoryQuantityThreshold": {{ inventory_block.settings.inventory_quantity_threshold | default: 0 }},
"showPriceInButton": {{ buy_buttons_block.settings.show_price_in_button | json }},
"enableImageZoom": {{ section.settings.enable_image_zoom | json }},
"showPaymentButton": {{ buy_buttons_block.settings.show_payment_button | json }},
"useAjaxCart": {% if settings.cart_type == 'drawer' %}true{% else %}false{% endif %}
}
{%- endcapture -%}

{%- comment -%}
--------------------------------------------------------------------------------------------------------------------
PHOTO SWIPE

This is the root container for the zoom functionality. Must not be removed, as order element is important.
--------------------------------------------------------------------------------------------------------------------
{%- endcomment -%}

{%- if section.settings.enable_image_zoom -%}

  
  

  
  

    
    

      

      

      

    

    
    
      
      
      
    

  

{%- endif -%}

{% schema %}
{
"name": "Product page",
"class": "shopify-section--bordered",
"blocks": [
{
"type": "product_meta",
"name": "Product meta",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "show_vendor",
"label": "Show vendor",
"default": true
},
{
"type": "checkbox",
"id": "show_sku",
"label": "Show SKU",
"default": false
},
{
"type": "checkbox",
"id": "show_product_rating",
"label": "Show product rating",
"info": "To display a rating, add a product rating app. [Learn more](https://help.shopify.com/en/manual/products/product-reviews/installation)",
"default": false
},
{
"type": "checkbox",
"id": "show_taxes_included",
"label": "Show price taxes notice",
"default": false
}
]
},
{
"type": "variant_selector",
"name": "Variant selector",
"limit": 1,
"settings": [
{
"type": "select",
"id": "selector_mode",
"label": "Selector type",
"options": [
{
"value": "block",
"label": "Block"
},
{
"value": "dropdown",
"label": "Dropdown"
}
],
"default": "dropdown"
},
{
"type": "checkbox",
"id": "show_color_swatch",
"label": "Show color swatch",
"default": false,
"info": "Some colors appear white? [Learn more](http://support.maestrooo.com/article/80-product-uploading-custom-color-for-color-swatch)."
},
{
"type": "checkbox",
"id": "show_color_carousel",
"label": "Show color carousel",
"info": "A pop-up selector with variant images for choosing colors. Only enables when color swatch is disabled.",
"default": false
},
{
"type": "page",
"id": "size_chart",
"label": "Size chart",
"info": "Show along option named Size."
}
]
},
{
"type": "share_buttons",
"name": "Share buttons",
"limit": 1
},
{
"type": "inventory",
"name": "Inventory",
"limit": 1,
"settings": [
{
"type": "range",
"id": "inventory_quantity_threshold",
"label": "Inventory quantity threshold",
"info": "Only show inventory quantity if below threshold. Choose 0 to always show.",
"min": 0,
"max": 50,
"step": 1,
"default": 0
}
]
},
{
"type": "buy_buttons",
"name": "Buy buttons",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "show_price_in_button",
"label": "Show price in add to cart button",
"default": false
},
{
"type": "checkbox",
"id": "show_payment_button",
"label": "Show dynamic checkout button",
"info": "Each customer will see their preferred payment method from those available on your store, such as PayPal or Apple Pay. [Learn more](https://help.shopify.com/manual/using-themes/change-the-layout/dynamic-checkout)",
"default": true
}
]
},
{
"type": "description",
"name": "Description",
"limit": 1
},
{
"type": "liquid",
"name": "Liquid",
"settings": [
{
"type": "paragraph",
"content": "This Liquid code will show on the right part of the product page."
},
{
"type": "liquid",
"id": "liquid",
"label": "Liquid"
}
]
},
{
"type": "quantity_selector",
"name": "Quantity selector",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "show_label",
"label": "Show label",
"default": false
}
]
},
{
"type": "text",
"name": "Text",
"settings": [
{
"type": "paragraph",
"content": "This text will show on the right part of the product page."
},
{
"type": "text",
"id": "text",
"label": "Text"
}
]
},
{
"type": "store_pickup",
"name": "Local pickup availability",
"limit": 1,
"settings": [
{
"type": "paragraph",
"content": "Show customers where they can pick up the product. [Learn more](https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/local-methods/loca...)"
}
]
},
{
"type": "@app"
},
{
"name": "Content",
"type": "content",
"settings": [
{
"type": "paragraph",
"content": "This content will show on the left part, below the product images."
},
{
"type": "text",
"id": "title",
"label": "Title"
},
{
"type": "richtext",
"id": "content",
"label": "Content"
},
{
"type": "page",
"id": "page",
"label": "Content from page",
"info": "If specified, takes precedence over inline content."
}
]
},
{
"name": "Reviews",
"type": "reviews",
"limit": 1,
"settings": [
{
"type": "paragraph",
"content": "To show reviews, install [Shopify Product Reviews](https://apps.shopify.com/product-reviews). This content will show on the left part, below the product images. "
}
]
},
{
"name": "Buy it with",
"type": "buy_it_with",
"limit": 1,
"settings": [
{
"type": "product",
"id": "product",
"label": "Product"
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Buy it with"
}
]
}
],
"settings": [
{
"type": "header",
"content": "Media"
},
{
"type": "paragraph",
"content": "Learn more about [media types](https://help.shopify.com/en/manual/products/product-media)"
},
{
"type": "select",
"id": "image_size",
"label": "Size",
"options": [
{
"value": "small",
"label": "Small"
},
{
"value": "medium",
"label": "Medium"
},
{
"value": "large",
"label": "Large"
},
{
"value": "fill",
"label": "Fill screen"
}
],
"default": "large"
},
{
"type": "checkbox",
"id": "stack_images",
"label": "Stack images on desktop",
"default": true
},
{
"type": "checkbox",
"id": "show_thumbnails",
"label": "Show thumbnails on desktop",
"default": true
},
{
"type": "checkbox",
"id": "enable_image_zoom",
"label": "Enable zoom",
"default": true
},
{
"type": "checkbox",
"id": "enable_video_looping",
"label": "Enable video looping",
"default": false
}
]
}
{% endschema %}

Hope it helps!

Thank you so much, it works perfectly. One last question, is there a way to have the metafield “descrizione” to be already open once the user arrives on the product page?

Thanks in advance!

Hi @Cava ,

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

Hi @Cava ,

Please send your site and if your site is password protected, please send me the password. I will check it.

Here it is a product page
https://www.fravshop.com/products/can-i-get-your-number-13-glitter-fucsia

It would be awesome to have the tab “descrizione” already open for both desktop and mobile, thank you so much!

Hi @Cava ,

Please send me the code of snippets/product-tabs.liquid file, I will check it

Hi I pasted this code into my theme file and it moved it correctly, the issue is that on desktop when you open the dropdowns it doesnt move the rest of the page down and then the description text keeps covering the rest of the page,

If you check the product pages on the attached preview page you can see the product description aren’t bound to the right hand section, can this be changed?

Is this something you can help with?

https://efdfsy2i0ehrnl6a-31999852589.shopifypreview.com

Here it is

{%- capture product_tabs -%}
  {%- for block in section.blocks -%}
    {%- case block.type -%}
      {%- when 'content' -%}
        {%- if block.settings.page != blank -%}
          {%- assign title = block.settings.page.title -%}
          {%- assign content = block.settings.page.content -%}
        {%- else -%}
          {%- assign title = block.settings.title -%}
          {%- assign content = block.settings.content -%}
        {%- endif -%}

        {%- if title != blank and content != blank -%}
          
            

            

              

                

                  {{- content -}}
                

              

            

          

        {%- endif -%}

      {%- when 'reviews' -%}
        
          

          

            

              
{{ product.metafields.spr.reviews }}

            

          

        

    {%- endcase -%}
  {%- endfor -%}
{%- endcapture -%}

{%- if product_tabs != blank -%}
  
    {{- product_tabs -}}
  

{%- endif -%}

Hi @Cava ,

Please change code:

{%- capture product_tabs -%}
  {%- for block in section.blocks -%}
    {%- case block.type -%}
      {%- when 'content' -%}
        {%- if block.settings.page != blank -%}
          {%- assign title = block.settings.page.title -%}
          {%- assign content = block.settings.page.content -%}
        {%- else -%}
          {%- assign title = block.settings.title -%}
          {%- assign content = block.settings.content -%}
        {%- endif -%}

        {%- if title != blank and content != blank -%}
          
            

            

              

                

                  {{- content -}}
                

              

            

          

        {%- endif -%}

      {%- when 'reviews' -%}
        
          

          

            

              
{{ product.metafields.spr.reviews }}

            

          

        

    {%- endcase -%}
  {%- endfor -%}
{%- endcapture -%}

{%- if product_tabs != blank -%}
  
    {{- product_tabs -}}
  

{%- endif -%}

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

thank you so much for your time!

Everything works perfectly
Have a great day!

Thank you for all your help!

Please can you help me too?

I want that section on the right side

It’s the block called “content”

{
“sections”: {
“main”: {
“type”: “main-product”,
“blocks”: {
“vendor”: {
“type”: “text”,
“settings”: {
“text”: “{{ product.vendor }}”,
“text_style”: “uppercase”
}
},
“title”: {
“type”: “title”,
“settings”: {
}
},
“caption”: {
“type”: “text”,
“settings”: {
“text”: “{{ product.metafields.descriptors.subtitle.value }}”,
“text_style”: “subtitle”
}
},
“price”: {
“type”: “price”,
“settings”: {
}
},
“loox-rating”: {
“type”: “shopify://apps/loox-product-reviews-photos/blocks/loox-rating/5c3b337f-fd14-4df5-b1d6-80ec13e6e28e”,
“settings”: {
}
},
“variant_picker”: {
“type”: “variant_picker”,
“settings”: {
“picker_type”: “button”
}
},
“quantity_selector”: {
“type”: “quantity_selector”,
“settings”: {
}
},
“buy_buttons”: {
“type”: “buy_buttons”,
“settings”: {
“show_dynamic_checkout”: true
}
},
“share”: {
“type”: “share”,
“settings”: {
“share_label”: “Share”
}
},
“description”: {
“type”: “description”,
“settings”: {
}
}
},
“block_order”: [
“vendor”,
“title”,
“caption”,
“price”,
“loox-rating”,
“variant_picker”,
“quantity_selector”,
“buy_buttons”,
“share”,
“description”
],
“settings”: {
“enable_sticky_info”: true,
“gallery_layout”: “stacked”,
“media_size”: “large”,
“mobile_thumbnails”: “hide”,
“hide_variants”: true,
“enable_video_looping”: false,
“padding_top”: 40,
“padding_bottom”: 0
}
},
“multicolumn”: {
“type”: “multicolumn”,
“disabled”: true,
“blocks”: {
“column-0”: {
“type”: “column”,
“settings”: {
“title”: “Shipping”,
“text”: “

Share the details of your shipping policy.</p>”,
“link_label”: “”,
“link”: “”
}
},
“column-1”: {
“type”: “column”,
“settings”: {
“title”: “Returns”,
“text”: “

Share the details of your return policy.</p>”,
“link_label”: “”,
“link”: “”
}
}
},
“block_order”: [
“column-0”,
“column-1”
],
“settings”: {
“title”: “”,
“heading_size”: “h1”,
“image_width”: “full”,
“image_ratio”: “adapt”,
“columns_desktop”: 2,
“column_alignment”: “left”,
“background_style”: “primary”,
“button_label”: “”,
“button_link”: “”,
“color_scheme”: “background-1”,
“columns_mobile”: “1”,
“swipe_on_mobile”: false,
“padding_top”: 56,
“padding_bottom”: 36
}
},
“image-with-text”: {
“type”: “image-with-text”,
“disabled”: true,
“blocks”: {
“text”: {
“type”: “text”,
“settings”: {
“text”: “

Image with text</p>”,
“text_style”: “body”
}
},
“heading”: {
“type”: “heading”,
“settings”: {
“heading”: “Pair text with an image”,
“heading_size”: “h1”
}
}
},
“block_order”: [
“text”,
“heading”
],
“settings”: {
“height”: “adapt”,
“desktop_image_width”: “large”,
“layout”: “text_first”,
“desktop_content_position”: “bottom”,
“desktop_content_alignment”: “left”,
“content_layout”: “no-overlap”,
“color_scheme”: “accent-1”,
“mobile_content_alignment”: “left”,
“padding_top”: 36,
“padding_bottom”: 0
}
},
“image-with-text-1”: {
“type”: “image-with-text”,
“disabled”: true,
“blocks”: {
“text”: {
“type”: “text”,
“settings”: {
“text”: “

Pair text with an image to focus on your chosen product, collection, or artist. Add details on availability, style, or even provide a review.</p>”,
“text_style”: “body”
}
}
},
“block_order”: [
“text”
],
“settings”: {
“height”: “small”,
“desktop_image_width”: “small”,
“layout”: “image_first”,
“desktop_content_position”: “middle”,
“desktop_content_alignment”: “left”,
“content_layout”: “no-overlap”,
“color_scheme”: “accent-1”,
“mobile_content_alignment”: “left”,
“padding_top”: 0,
“padding_bottom”: 56
}
},
“product-recommendations”: {
“type”: “product-recommendations”,
“settings”: {
“heading”: “You may also like”,
“heading_size”: “h1”,
“products_to_show”: 4,
“columns_desktop”: 4,
“color_scheme”: “background-1”,
“image_ratio”: “portrait”,
“show_secondary_image”: true,
“show_vendor”: false,
“show_rating”: false,
“columns_mobile”: “2”,
“padding_top”: 0,
“padding_bottom”: 0
}
},
“image-with-text-2”: {
“type”: “image-with-text”,
“disabled”: true,
“blocks”: {
“heading”: {
“type”: “heading”,
“settings”: {
“heading”: “Image with text”,
“heading_size”: “h1”
}
},
“text”: {
“type”: “text”,
“settings”: {
“text”: “

Pair text with an image to provide extra information about your brand or collections.</p>”,
“text_style”: “body”
}
}
},
“block_order”: [
“heading”,
“text”
],
“settings”: {
“height”: “adapt”,
“desktop_image_width”: “medium”,
“layout”: “text_first”,
“desktop_content_position”: “middle”,
“desktop_content_alignment”: “left”,
“content_layout”: “no-overlap”,
“color_scheme”: “inverse”,
“mobile_content_alignment”: “left”,
“padding_top”: 32,
“padding_bottom”: 76
}
},
“loox-product-reviews-app-section”: {
“type”: “apps”,
“blocks”: {
“loox-product-reviews”: {
“type”: “shopify://apps/loox-product-reviews-photos/blocks/loox-dynamic-section/5c3b337f-fd14-4df5-b1d6-80ec13e6e28e”,
“settings”: {
“only_photos”: false,
“aggregated”: false,
“hide_thumbnails”: false,
“maxwidth”: 1080
}
}
},
“block_order”: [
“loox-product-reviews”
],
“settings”: {
“include_margins”: false
}
}
},
“order”: [
“main”,
“multicolumn”,
“image-with-text”,
“image-with-text-1”,
“product-recommendations”,
“image-with-text-2”,
“loox-product-reviews-app-section”
]
}