Add information (installments) under price - DEBUTIFY

Who can help me add information (installments) below the price of the product?

www.tendenciacriativa.com

1 Like

@tdcoficial

sorry for this issue

can you please explain what’s login show text?

1 Like

@KetanKumar
In Brazil, people have a preference to pay for a purchase in parcels, so it’s really important for a website to show the installment on the product page.

I think it is some code similar to:

ou em até 12x de {{ product.price | times: 1.1979 | divided_by: 12 | money }}

1 Like

@tdcoficial

can you please add and try

1 Like

@KetanKumar
i don’t know where i can add, can you help me?

1 Like

@tdcoficial

can you please share product page code so i will update

1 Like

@KetanKumar

product.liquid

{% comment %}
The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}

{% section ‘product-template’ %}{% section “dbtfy-upsell-bundles” %}{% section “dbtfy-pricing-table” %}

{% section ‘product-recommendations’ %}

{% if settings.review_widget == ‘review_widget_above’ %}
{% include ‘review-widget’ %}
{% endif %}

{% section ‘related-product’ %}

{% if settings.review_widget == ‘review_widget_under’ %}
{% include ‘review-widget’ %}
{% endif %}

{% if collection %}

{% endif %}

{% section ‘quotes’ %}

#judgeme_product_reviews { margin: auto; width: 70%; } @media only screen and (max-width: 600px) { #judgeme_product_reviews { margin: auto; width: 100%; } }
1 Like

@tdcoficial

great thanks for code but i need this file code

{% section ‘product-template’ %}

1 Like

@KetanKumar

{% comment %}
The contents of the product.liquid template can be found in /snippets/product-template.liquid
{% endcomment %}

{% include 'product-template' %}

{% unless product.empty == empty %}

{% endunless %}

{% schema %}
{
“name”: “Product pages”,
“class”: “product-section”,
“settings”: [
{
“type”: “header”,
“content”: “Product photos”
},
{
“type”: “select”,
“id”: “image_layout”,
“label”: “Image display”,
“default”: “stacked”,
“options”: [
{
“value”: “stacked”,
“label”: “Stacked”
},
{
“value”: “thumbnail”,
“label”: “Thumbnail”
}
]
},
{
“type”: “select”,
“id”: “product_photo_alignement”,
“label”: “Image alignement”,
“default”: “left”,
“options”: [
{
“value”: “left”,
“label”: “Left”
},
{
“value”: “right”,
“label”: “Right”
}
]
},
{
“type”: “checkbox”,
“id”: “enable_zoom”,
“label”: “Enable image zoom”,
“default”: true
},
{
“type”: “header”,
“content”: “Product details”
},
{
“type”: “checkbox”,
“id”: “product_vendor”,
“label”: “Show vendor”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “product_title_size”,
“label”: “Big product tite”,
“default”: false
},
{
“type”: “select”,
“id”: “product_header_alignement”,
“label”: “Alignement”,
“default”: “”,
“options”: [
{
“value”: “”,
“label”: “Left”
},
{
“value”: “text-center”,
“label”: “Center”
}
]
},
{
“type”: “select”,
“id”: “product_selector”,
“label”: “Variant picker type”,
“options”: [
{
“value”: “radio”,
“label”: “Button”
},
{
“value”: “select”,
“label”: “Dropdown”
}
]
},
{
“type”: “checkbox”,
“id”: “quantity_enabled”,
“label”: “Show quantity picker”
},
{
“type”: “checkbox”,
“id”: “button_cart_icon”,
“label”: “Show button icon”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_payment_button”,
“label”: “Show dynamic checkout button”,
“info”: “Lets customers check out directly using a familiar payment method. Learn more”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_description”,
“label”: “Show description”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “social_sharing_products”,
“label”: “Enable product sharing”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_product_tags”,
“label”: “Show product tags”,
“default”: true
}

,
{
“type”: “header”,
“content”: “Product tabs”
},
{
“type”: “checkbox”,
“id”: “dbtfy_product_tabs_first”,
“label”: “Open first tab”,
“default”: true
}
],
“blocks” : [
{
“type”: “description”,
“name”: “Description”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “dbtfy_product_tabs_icon”,
“label”: “Icon”,
“default”: “list”,
“info”: “Enter the name of any free solid icons on FontAwesome”
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_title”,
“label”: “Title”,
“default”: “Details”,
“info”: “To hide the default description, uncheck the "Show description" box above.”
}
]
},
{
“type”: “reviews”,
“name”: “Reviews”,
“limit”: 1,
“settings”: [
{
“type”: “checkbox”,
“id”: “dbtfy_product_tabs_review”,
“label”: “Show star ratings”,
“default”: true
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_icon”,
“label”: “Icon”,
“default”: “thumbs-up”,
“info”: “Enter the name of any free solid icons on FontAwesome”
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_title”,
“label”: “Title”,
“default”: “Reviews”,
“info”: “To show your review widget in product tabs, go in "Review app" > "Review widget" and select the "In product tabs" position”
}
]
},
{
“type”: “text”,
“name”: “Text/Image/HTML”,
“settings”: [
{
“type”: “select”,
“id”: “text_alignment”,
“label”: “Text alignment”,
“default”: “text-center”,
“options”: [
{
“value”: “”,
“label”: “Left”
},
{
“value”: “text-center”,
“label”: “Center”
},
{
“value”: “text-right”,
“label”: “Right”
}
]
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_icon”,
“label”: “Icon”,
“info”: “Enter the name of any free solid icons on FontAwesome”
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_title”,
“label”: “Title”,
“default”: “Rich text”
},
{
“type”: “richtext”,
“id”: “dbtfy_product_tabs_text”,
“label”: “Text”
},
{
“type”: “image_picker”,
“id”: “dbtfy_product_tabs_image”,
“label”: “Image”
},
{
“type”: “html”,
“id”: “dbtfy_product_tabs_html”,
“label”: “HTML”
},
{
“type”: “header”,
“content”: “Visibility settings”
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_type”,
“label”: “Product type”,
“info”: “Comma-separated”
},
{
“type”: “text”,
“id”: “dbtfy_product_tabs_tag”,
“label”: “Product tag”,
“info”: “Comma-separated”
},
{
“type”: “product”,
“id”: “dbtfy_product_tabs_product”,
“label”: “Product”
},
{
“type”: “collection”,
“id”: “dbtfy_product_tabs_collection”,
“label”: “Collection”
}
]
}
] } {% endschema %}

1 Like

@tdcoficial

oh no again one more file code sorry for this theme multifiels

please give me this file code

{% include ‘product-template’ %}

1 Like

@KetanKumar look friend

{% assign current_variant = product.selected_or_first_available_variant %}
{% assign featured_image = current_variant.featured_image | default: product.featured_image %}

{% assign on_sale = false %}

{% if current_variant.compare_at_price > current_variant.price %}
{% assign on_sale = true %}
{% endif %}

{% assign sold_out = true %}

{% if current_variant.available %}
{% assign sold_out = false %}
{% endif %}

{% capture variantStatus %}
{% if sold_out == true %}
variant-soldout
{% else %}
variant-available
{% endif %}
{% endcapture %}

{%- assign enable_zoom = section.settings.enable_zoom -%}
{%- assign product_image_zoom_size = ‘1024x1024’ -%}
{%- assign product_image_scale = ‘2’ -%}

{% capture product_header_layout %}
{% if section.settings.product_vendor %}

{{ product.vendor }}

{% endif %}

{% if settings.review_badge == ‘review_badge_above’ %}
{% include ‘review-badge’, badge_template: ‘product’ %}
{% endif %}

{% if template != "product" %} {% endif %}

{% unless section_onboarding %}
{{ product.title }}
{% else %}
{{ title }}
{% endunless %}

{% if template != “product” %}

{% endif %}

{% if settings.review_badge == ‘review_badge_under’ %}
{% include ‘review-badge’, badge_template: ‘product’ %}
{% endif %}
{% endcapture %}

{{ product_header_layout }}

{% if section_onboarding %}
{{ ‘product-1’ | placeholder_svg_tag: ‘placeholder-svg’ }}
{% else %}
{% capture img_id_class %}product-single__photo-{{ featured_image.id }}{% endcapture %}
{% capture zoom_img_id %}FeaturedImageZoom-{{ featured_image.id }}-{{ image.id }}{% endcapture %}
{% capture wrapper_id %}ProductImageWrapper-{{ featured_image.id }}{% endcapture %}

{% comment %}
Display current variant image
{% endcomment %}

{% assign img_url = featured_image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ featured_image.alt | escape }} {{ featured_image.alt | escape }}
{% endif %}

{% comment %}
Display variant image
{% endcomment %}

{% for image in product.images %}
{% unless image contains featured_image %}
{% capture img_id_class %}product-single__photo-{{ image.id }}{% endcapture %}
{% capture zoom_img_id %}FeaturedImageZoom-{{ section.id }}-{{ image.id }}{% endcapture %}
{% capture wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}

{% assign img_url = image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' %} {{ image.alt | escape }} {{ image.alt | escape }}
{% endunless %} {% endfor %}

{% if product.images.size > 1 %}

{% for image in product.images %} {% unless image contains featured_image %} {% endunless %} {% endfor %}
{% endif %} {% include "dbtfy-product-video" %}
{{ product_header_layout }}
{% if section_onboarding %} {{ price | money }} {% else %} {% if on_sale %} {{ 'products.general.regular_price' | t }} {{ current_variant.compare_at_price | money }} {{ 'products.general.sale_price' | t }} {% else %} {{ 'products.general.regular_price' | t }} {{ 'products.general.sale_price' | t }} {% endif %}

<span id=“ProductPrice”
class=“product-single__price{% if on_sale %} on-sale{% endif %}”
itemprop=“price”
content=“{{ current_variant.price | divided_by: 100.00 }}”
{% unless current_variant.available %}aria-hidden=“true”{% endunless %}>
{{ current_variant.price | money }}

{% endif %}
{% if settings.position_currency_converter == “product” %}{% include “currency-selector” %}{% endif %}

{% if section_onboarding %}

{{ 'products.product.sold_out' | t }}
{% else %} {% capture "form_classes" %} product-single__form{% if product.has_only_default_variant %} product-single__form--no-variants{% endif %} {%- endcapture %}

{% capture “form_id” %}AddToCartForm–{{ section.id }}{%- endcapture %}

{% form ‘product’, product, class:form_classes, id:form_id %}
{% unless product.has_only_default_variant %}

{% for option in product.options_with_values %}
{{ option.name | escape }}

{% if section.settings.product_selector == ‘radio’ %}

{% assign option_index = forloop.index %} {% for value in option.values %}

{% assign variant_label_state = true %}
{% if product.options.size == 1 %}
{% unless product.variants[forloop.index0].available %}
{% assign variant_label_state = false %}
{% endunless %}
{% endif %}

<input type=“radio”
{% if option.selected_value == value %} checked=“checked”{% endif %}
{% unless variant_label_state %} disabled=“disabled”{% endunless %}
value=“{{ value | escape }}”
data-index=“option{{ option_index }}”
name=“{{ option.name | handleize }}”
class=“single-option-selector__radio{% unless variant_label_state %} disabled{% endunless %}”
id=“ProductSelect–{{ section.id }}-option-{{ option.name | handleize }}-{{ value | escape }}”>
<label for="ProductSelect–{{ section.id }}-option-{{ option.name | handleize }}-{{ value | escape }}"class=“btn btn–small {% unless variant_label_state %} disabled{% endunless %}”>{{ value | escape }}
{% endfor %}

{% else %} {% endif %}
{% endfor %}
{% endunless %}

{% if section.settings.quantity_enabled %}

{{ 'products.product.quantity' | t }} {% include 'quantity-selector', type:'product' %}
{% endif %}
{% if section.settings.button_cart_icon %} {% endif %} {% if current_variant.available %} {{ 'products.product.add_to_cart' | t }} {% else %} {{ 'products.product.sold_out' | t }} {% endif %} {% if section.settings.enable_payment_button %} {{ form | payment_button }} {% endif %}
{% endform %} {% endif %}

brazil

Garantia de 30 dias direto em nossa loja
7 dias para trocas e devoluçÔes

{% if section.settings.social_sharing_products %}
{% include ‘social-sharing’, share_title: product.title, share_permalink: product.url, share_image: product %}
{% endif %}

{% if section.settings.show_product_tags %}
{% for tag in product.tags %}
{% if forloop.first %}

{{ 'blogs.article.tags' | t }}: {% endif %} {{ tag }} {% if forloop.last %}
{% endif %} {% endfor %} {% endif %}

{% if template != “product” %}


{{ 'products.product.full_details' | t }} {% endif %}
{% include "dbtfy-sticky-addtocart" %}
{% unless product.description == blank or section.settings.show_description == false %}

{{ product.description }}
{% endunless %}
1 Like

@tdcoficial

great, Thanks please update this code


 
{% assign current_variant = product.selected_or_first_available_variant %}
{% assign featured_image = current_variant.featured_image | default: product.featured_image %}
 
{% assign on_sale = false %}
 
{% if current_variant.compare_at_price > current_variant.price %}
  {% assign on_sale = true %}
{% endif %}
 
{% assign sold_out = true %}
 
{% if current_variant.available %}
  {% assign sold_out = false %}
{% endif %}
 
{% capture variantStatus %}
  {% if sold_out == true %}
    variant-soldout
  {% else %}
variant-available
  {% endif %}
{% endcapture %}
 
{%- assign enable_zoom = section.settings.enable_zoom -%}
{%- assign product_image_zoom_size = '1024x1024' -%}
{%- assign product_image_scale = '2' -%}
 
{% capture product_header_layout %}
  {% if section.settings.product_vendor %}
    

{{ product.vendor }}

  {% endif %}
 
  {% if settings.review_badge == 'review_badge_above' %}
    {% include 'review-badge', badge_template: 'product' %}
  {% endif %}
 
  # 
    {% if template != "product" %}
       
    {% endif %}
 
    {% unless section_onboarding %}
      {{ product.title }}
    {% else %}
      {{ title }}
    {% endunless %}
 
    {% if template != "product" %}
      
    {% endif %}
  
 
  {% if settings.review_badge == 'review_badge_under' %}
    {% include 'review-badge', badge_template: 'product' %}
  {% endif %}
{% endcapture %}
 

  

    

      

 
          
          

 
            

              {{ product_header_layout }}
            

 
            
 
              {% if section_onboarding %}
                {{ 'product-1' | placeholder_svg_tag: 'placeholder-svg' }}
              {% else %}
                {% capture img_id_class %}product-single__photo-{{ featured_image.id }}{% endcapture %}
                {% capture zoom_img_id %}FeaturedImageZoom-{{ featured_image.id }}-{{ image.id }}{% endcapture %}
                {% capture wrapper_id %}ProductImageWrapper-{{ featured_image.id }}{% endcapture %}
 
                {% comment %}
                  Display current variant image
                {% endcomment %}
                

                  

                    

  

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

                      
                    

                  

                

              {% endif %}
 
              {% comment %}
                Display variant image
              {% endcomment %}
 
              {% for image in product.images %}
                {% unless image contains featured_image %}
                  {% capture img_id_class %}product-single__photo-{{ image.id }}{% endcapture %}
                  {% capture zoom_img_id %}FeaturedImageZoom-{{ section.id }}-{{ image.id }}{% endcapture %}
                  {% capture wrapper_id %}ProductImageWrapper-{{ image.id }}{% endcapture %}
 
                  
                    

                      

                        

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

                      

                    

                  

                {% endunless %}
              {% endfor %}
            

 
            {% if product.images.size > 1 %}
              
                

                  
                    
                  
                

                {% for image in product.images %}
                  {% unless image contains featured_image %}
                    
                      
                        
                      
                    

                  {% endunless %}
                {% endfor %}
              

            {% endif %}
          {% include "dbtfy-product-video" %}

 
          
          
            

 
              

                {{ product_header_layout }}
              

 
              
                
                

                  {% if section_onboarding %}
                    
                      {{ price | money }}
                    
                  {% else %}
                    {% if on_sale %}
                      {{ 'products.general.regular_price' | t }}
                      
                        
                          {{ current_variant.compare_at_price | money }}
                        
                      
                      {{ 'products.general.sale_price' | t }}
                    {% else %}
                      {{ 'products.general.regular_price' | t }}
                      
                        
                      
                      {{ 'products.general.sale_price' | t }}
                    {% endif %}
 
                    
                      {{ current_variant.price | money }}
                    
                  {% endif %}
                  {% if settings.position_currency_converter == "product" %}{% include "currency-selector" %}{% endif %}
                

                

ou em até 12x de {{ product.price | times: 1.1979 | divided_by: 12 | money }}
                    
            
 
                {% if section_onboarding %}
                  

                    
                  

                {% else %}
                  {% capture "form_classes" %}
                    product-single__form{% if product.has_only_default_variant %} product-single__form--no-variants{% endif %}
                  {%- endcapture %}
 
                  {% capture "form_id" %}AddToCartForm--{{ section.id }}{%- endcapture %}
 
                  {% form 'product', product, class:form_classes, id:form_id %}
                    {% unless product.has_only_default_variant %}
                      
                        {% for option in product.options_with_values %}
                          

                            
                            
                            {% if section.settings.product_selector == 'radio' %}
                              
                            {% else %}
                              
                            {% endif %}
                            
                          

                        {% endfor %}
                      

                    {% endunless %}
                
                     
 
                {% if section.settings.quantity_enabled %}
                  

                        
                        {% include 'quantity-selector', type:'product' %}
                      

                {% endif %}
 
                    
                      
                      {% if section.settings.enable_payment_button %}
                        {{ form | payment_button }}
                      {% endif %}
                    

                  {% endform %}  
                {% endif %}
              

              
               
         
          

 

    
![brazil|76x32](upload://gMOiZd6azIsGhb9lfYTotxXb6L2.png)

    

    

  

  
     Garantia de 30 dias direto em nossa loja

     7 dias para trocas e devoluçÔes
  

              
   
  
 
              {% if section.settings.social_sharing_products %}
                {% include 'social-sharing', share_title: product.title, share_permalink: product.url, share_image: product %}
              {% endif %}
              
              {% if section.settings.show_product_tags %}
                {% for tag in product.tags %}
                  {% if forloop.first %}
                    
                      {{ 'blogs.article.tags' | t }}: 
                  {% endif %}
                  {{ tag }}
                  {% if forloop.last %}
                    

                  {% endif %}
                {% endfor %}
              {% endif %}
 
              {% if template != "product" %}
                

---

                
                  {{ 'products.product.full_details' | t }} 
                
              {% endif %}
            

          {% include "dbtfy-sticky-addtocart" %}

 
      

      {% unless product.description == blank or section.settings.show_description == false %}
      

      

          

            {{ product.description }}
          

        {% endunless %}
    

  

 
 

1 Like

@KetanKumar
thank you so much, you’re the best!!!

1 Like

@tdcoficial

it’s my pleasure to help us

1 Like

Hello @KetanKumar 
how are you? hope you®re doing great!!!
I have tried on my website (I also have the debutify theme) but i think it is a little bit more updated. I copied the same code you fixed but it didn®t work for me
it messed up the entire product page. It did show the installments but the pictures and the rest of the page messed up. Would you please help me, sir?

this is my entire product.template-liquid page under (from line 1 to line 258):

{%- assign first_3d_model = product.media | where: “media_type”, “model” | first -%}

{%- render 'product-template' with product as product -%}

{% schema %}
{
“name”: “Product Pages”,
“class”: “product-section”,
“settings”: [
{
“type”: “header”,
“content”: “Product page”
},
{
“type”: “checkbox”,
“id”: “show_product_vendor”,
“label”: “Show vendor”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_product_type”,
“label”: “Show product type”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_product_sku”,
“label”: “Show SKU”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “product_title_large”,
“label”: “Enable large product title”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_product_tags”,
“label”: “Show product tags”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_sharing_icons”,
“label”: “Show sharing icons”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_product_collections”,
“label”: “Show product collections”,
“default”: true
},
{
“type”: “header”,
“content”: “Media”,
“info”: “Learn more about media types”
},
{
“type”: “checkbox”,
“id”: “enable_fading_effect”,
“label”: “Enable carousel fading effect”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “enable_image_zoom”,
“label”: “Enable image zoom”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_video_looping”,
“label”: “Enable video looping”,
“default”: true
},
{
“type”: “select”,
“id”: “media_layout”,
“label”: “Gallery layout”,
“default”: “thumbnails”,
“options”: [
{
“value”: “stacked”,
“label”: “Stacked”
},
{
“value”: “thumbnails”,
“label”: “Thumbnails”
}
]
},
{
“type”: “select”,
“id”: “image_size”,
“label”: “Image size”,
“default”: “medium”,
“options”: [
{
“value”: “small”,
“label”: “Small”
},
{
“value”: “medium”,
“label”: “Medium”
},
{
“value”: “large”,
“label”: “Large”
}
]
},
{
“type”: “header”,
“content”: “Product form”
},
{
“type”: “checkbox”,
“id”: “quantity_enabled”,
“label”: “Show quantity picker”,
“default”: true
},
{
“type”: “select”,
“id”: “product_selector”,
“label”: “Picker type”,
“default”: “select”,
“options”: [
{
“value”: “radio”,
“label”: “Button”
},
{
“value”: “select”,
“label”: “Dropdown”
}
]
},
{
“type”: “header”,
“content”: “Product description”
},
{
“type”: “checkbox”,
“id”: “show_product_description”,
“label”: “Show product description”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “enable_split_description”,
“label”: “Enable split description”,
“default”: false
},
{
“type”: “paragraph”,
“content”: “This feature allows you to show a brief description under the product price. Add the shortcode [split_description] in the HTML section of your product description to split it.”
},
{
“type”: “checkbox”,
“id”: “description_full”,
“label”: “Full width”,
“default”: false
},
{
“type”: “select”,
“id”: “dbtfy_product_description_position”,
“label”: “Position”,
“default”: “separate_section”,
“options”: [
{
“value”: “under_addtocart”,
“label”: “Under add-to-cart button”
},
{
“value”: “separate_section”,
“label”: “In a separate section”
}
]
},
{
“type”: “select”,
“id”: “description_style”,
“label”: “Description style”,
“default”: “section-border”,
“options”: [
{
“value”: “section-blank”,
“label”: “Blank background”
},
{
“value”: “section-default”,
“label”: “Accent background”
},
{
“value”: “section-border”,
“label”: “Border top”
}
]
},
{
“type”: “select”,
“id”: “text_alignment”,
“label”: “Text alignment (desktop)”,
“default”: “text-center”,
“options”: [
{
“value”: “”,
“label”: “Left”
},
{
“value”: “text-center”,
“label”: “Center”
},
{
“value”: “text-right”,
“label”: “Right”
}
]
},
{
“type”: “select”,
“id”: “text_alignment_mobile”,
“label”: “Text alignment (mobile)”,
“default”: “small–text-center”,
“options”: [
{
“value”: “small–text-left”,
“label”: “Left”
},
{
“value”: “small–text-center”,
“label”: “Center”
},
{
“value”: “small–text-right”,
“label”: “Right”
}
]
}
]
}
{% endschema %}

1 Like

@Neander84

thanks but something is missing that code

Really??? am I copying the right section??? would this code be somewhere else? I went under Sections and product.template-liquid
do you think it could be under another section like the snippets section?? Here is the one also product.template-liquid under snippets section (with 834 lines of code):

{%- liquid
assign id = section.id

assign current_variant = product.selected_or_first_available_variant
assign featured_media = current_variant.featured_media | default: product.featured_media
assign stacked = false

if section.settings.media_layout == “stacked”
assign stacked = true
endif

assign first_media = true

if product.media.size > 1
assign carousel = true
else
assign carousel = false
endif

if emptyState
assign vendor = ‘home_page.onboarding.product_vendor’ | t
assign sku = ‘12345’
assign title = ‘home_page.onboarding.product_title’ | t
assign compare_at_price = 2999
assign price = 1999
else
assign vendor = product.vendor
assign sku = current_variant.sku
assign title = product.title
assign compare_at_price = current_variant.compare_at_price
assign price = current_variant.price
endif

if compare_at_price > price
assign on_sale = true
else
assign on_sale = false
endif

if current_variant.available
assign sold_out = false
else
assign sold_out = true
endif

assign enable_zoom = section.settings.enable_zoom
assign product_image_zoom_size = ‘1024x1024’
assign product_image_scale = ‘2’
assign product_tabs_position = settings.dbtfy_product_tabs_position
assign product_description_position = section.settings.dbtfy_product_description_position

assign live_view_under_price = false
assign live_view_under_button = false

assign sold_items_under_price = false
assign sold_items_under_button = false

if settings.dbtfy_live_view
if settings.dbtfy_live_view_position == ‘under_product_price’
assign live_view_under_price = true
else
assign live_view_under_button = true
endif
endif

if settings.dbtfy_sold_items
if settings.dbtfy_sold_items_position == ‘under_product_price’
assign sold_items_under_price = true
else
assign sold_items_under_button = true
endif
endif

assign has_description = false

if section.settings.show_product_description and product.description != blank
assign has_description = true
endif

assign is_to_split_description = false

if has_description and section.settings.enable_split_description and product.description contains “[split_description]”
assign is_to_split_description = true
endif

assign show_info_section = false

if is_to_split_description
assign show_info_section = true
endif

if has_description and product_description_position == “separate_section”
assign show_info_section = true
elsif product_tabs_position == “separate_section”
assign show_info_section = true
elsif product_description_position == “separate_section”
if product_tabs_position != “under_addtocart”
if product_tabs_position == “under_description” or product_tabs_position == “above_description”
assign show_info_section = true
endif
endif
endif

case section.settings.image_size
when ‘small’
assign product_image_width = ‘large–five-twelfths’
assign product_description_width = ‘large–seven-twelfths’
when ‘medium’
assign product_image_width = ‘large–six-twelfths’
assign product_description_width = ‘large–six-twelfths’
when ‘large’
assign product_image_width = ‘large–seven-twelfths’
assign product_description_width = ‘large–five-twelfths’
endcase

assign carousel_fade_effect = section.settings.enable_fading_effect

capture product_collections
for collection in product.collections
echo collection.handle

unless forloop.last
echo “,”
endunless
endfor
endcapture
-%}

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

{%- liquid
assign enable_image_zoom = section.settings.enable_image_zoom
assign height = 850
assign width = 575
assign first_3d_model = product.media | where: “media_type”, “model” | first

comment
Display product images
endcomment
-%}

{%- for media in product.media -%}
{%- liquid
assign featured = false

if media == featured_media
assign featured = true
endif

capture thumbnail_alt
if media.media_type == ‘video’ or media.media_type == ‘external_video’
echo ‘products.product.video_thumbnail_alt’ | t: imageAlt: media.alt | escape
elsif media.media_type == ‘model’
echo ‘products.product.model_thumbnail_alt’ | t: imageAlt: media.alt | escape
else
echo ‘products.product.gallery_thumbnail_alt’ | t: imageAlt: media.alt | escape
endif
endcapture
-%}

{%- liquid render 'media' with media, enable_image_zoom: enable_image_zoom, stacked: stacked, featured: featured, width: width, height: height, id: id, video_looping: section.settings.enable_video_looping

comment
Display a “View in your space” button (multi) for the first visible media and each individual model.
Stacked layout only.
endcomment

if stacked
assign xr_id = false

if first_media and first_3d_model
assign xr_id = first_3d_model.id
elsif media.media_type == ‘model’
assign xr_id = media.id
endif

if xr_id
render ‘xr-button’ with model_id: xr_id, multi: true
endif

assign first_media = false
endif
-%}

{%- endfor -%}

{%- liquid
comment
Display a “View in your space” button (single).
Stacked/Thumbnails layout (mobile)
Thumbnail layout only (desktop)
endcomment

if first_3d_model
render ‘xr-button’ with model_id: first_3d_model.id, multi: false
endif
-%}

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

{% for media in product.media %}
{%- liquid capture thumbnail_alt if media.media_type == 'video' or media.media_type == 'external_video' echo 'products.product.video_thumbnail_alt' | t: imageAlt: media.alt | escape elsif media.media_type == 'model' echo 'products.product.model_thumbnail_alt' | t: imageAlt: media.alt | escape else echo 'products.product.gallery_thumbnail_alt' | t: imageAlt: media.alt | escape endif endcapture

assign media_aspect_ratio = media.aspect_ratio | default: media.preview_image.aspect_ratio
-%}


<img class=“product–image product-single__thumb media lazyload”
{%- render ‘lazysizes’, img: media, img_type: ‘responsive’ -%}
alt=“{{ thumbnail_alt }}”
data-media-id=“{{ media.id }}”>

{%- if media.media_type == ‘video’ or media.media_type == ‘external_video’ or media.media_type == ‘model’ -%}

{% render 'svg-definitions' with media.media_type %}
{%- endif -%}
{% endfor %}
{%- endif -%}
{%- elsif product.images.size < 1 or emptyState -%} {{ 'product-1' | placeholder_svg_tag: 'placeholder-svg' }} {%- endif -%}
{%- liquid assign showProductProperties = false

if section.settings.show_product_vendor and product.vendor != blank
assign showProductProperties = true
elsif section.settings.show_product_type and product.type != blank
assign showProductProperties = true
elsif section.settings.show_product_sku and sku != blank
assign showProductProperties = true
endif
-%}

{%- if showProductProperties -%}

    {%- if section.settings.show_product_vendor and product.vendor != blank -%}
  • store {{ product.vendor }}
  • {%- endif -%}

    {%- if section.settings.show_product_type and product.type != blank -%}

  • folder {{ product.type }}
  • {%- endif -%}

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

  • settings SKU: {{ sku }}
  • {%- endif -%}
{%- endif -%}
{%- if section.settings.featured_product -%} {% unless emptyState %} {% endunless %} {%- endif -%}

{{ title }}

{%- if section.settings.featured_product -%}
{% unless emptyState %}

{% endunless %}
{%- endif -%}

{%- render “dbtfy-wish-list”, type: “button”, product: product -%}

{%- unless emptyState -%}
{%- render “review-badge” with product as product, position: “product_page”, class: “spacer-bottom” -%}

{%- endunless -%}
{%- liquid assign product_description = product.description | strip_html | replace: "[split_description]", "" | newline_to_br | split: '
' assign filtered_description = ''

for line in product_description
if line != blank
assign filtered_description = filtered_description | append: line
endif
endfor
-%}

{%- if current_variant.inventory_quantity > 0 and current_variant.inventory_management == “shopify” -%}

{%- endif -%}

{{ price | money }}


{{ compare_at_price | money }}

{%- render “dbtfy-discount-saved” with product as product -%}

{%- capture unit_price_separator -%} / {{ 'general.accessibility.unit_price_separator' | t }}  {%- endcapture -%}

{%- capture unit_price_base_unit -%}

{%- liquid
if current_variant.unit_price_measurement
if current_variant.unit_price_measurement.reference_value != 1
echo current_variant.unit_price_measurement.reference_value
endif

echo current_variant.unit_price_measurement.reference_unit
endif
-%}

{%- endcapture -%}

{{ ‘products.general.unit_price’ | t }}
{{ current_variant.unit_price | money }}{{- unit_price_separator -}}{{- unit_price_base_unit -}}

{%- if section.settings.show_product_description -%}
{%- if is_to_split_description -%}

{%- liquid assign first_part = product.description | split: '

[split_description]

' | first

unless first_part contains ‘[split_description]’
echo first_part
else
echo product.description | split: ‘[split_description]’ | first
endunless
-%}

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

{%- if live_view_under_price or sold_items_under_price -%}

{%- liquid if sold_items_under_price render "dbtfy-sold-items" with product as product endif

if live_view_under_price
render “dbtfy-live-view”
endif
-%}

{%- endif -%}

{%- if emptyState -%}

{{ settings.icon_cart }} {{ 'products.product.add_to_cart' | t }}
{%- else -%} {%- liquid assign form_classes = "product-single__form"

if product.has_only_default_variant
assign form_classes = form_classes | append: " product-single__form–no-variants"
endif

assign form_id = “AddToCartForm–” | append: section.id

render “dbtfy-color-swatches” with product as product, id: id
-%}

{%- form ‘product’, product, class: form_classes, id: form_id, data-product-form: ‘’ -%}
{%- unless product.has_only_default_variant -%}

{%- for option in product.options_with_values -%} {%- liquid assign is_color_option = false

if content_for_header contains ‘debutify’ and product.available and product.variants.size >= 1 and settings.dbtfy_color_swatches
assign swatch_list = settings.dbtfy_color_swatches_color | split: “,”

for swatch in swatch_list
assign swatch_option_name = swatch | handleize
assign option_name = option.name | handleize

if option_name == swatch_option_name
assign is_color_option = true
endif
endfor
endif

assign first_option_value = current_variant.options[forloop.index0] | escape
-%}

{{ option.name | escape }}: {{ first_option_value | escape }}

{%- if section.settings.product_selector == ‘radio’ -%}

{%- assign option_index = forloop.index -%}

{%- for value in option.values -%}
{%- liquid
assign variant_label_state = true

if product.options.size == 1
unless product.variants[forloop.index0].available
assign variant_label_state = false
endunless
endif
-%}

<input type=“radio”
{% if option.selected_value == value -%} checked=“checked”{% endif %}
value=“{{ value | escape }}”
data-index=“option{{ option_index }}”
name=“option{{ option.position }}”
class=“single-option-selector__radio js-single-option-selector”
id=“ProductSelect-option-{{ section.id }}-{{ option.name | handleize }}-{{ value | escape }}”>

<label for=“ProductSelect-option-{{ section.id }}-{{ option.name | handleize }}-{{ value | escape }}”{% unless variant_label_state %} class=“text-strike”{% endunless %}>{{ value | escape }}
{%- endfor -%}

{%- else -%} {%- endif -%}
{%- endfor -%}
{%- endunless -%}

{%- liquid
assign hide_quantity_box = true

if section.settings.quantity_enabled or settings.dbtfy_quantity_breaks or settings.dbtfy_inventory_quantity
assign hide_quantity_box = false
endif
-%}

{%- if section.settings.quantity_enabled or settings.dbtfy_quantity_breaks or settings.dbtfy_inventory_quantity -%}

{%- assign quantity_id = 'product-' | append: product.id -%}

{%- if section.settings.quantity_enabled or settings.dbtfy_quantity_breaks -%}
<label class=“inline-label” for=“{{ quantity_id }}” {% if section.settings.quantity_enabled == false and settings.dbtfy_quantity_breaks %}hidden {% endif %}>{{ ‘products.product.quantity’ | t }}
{%- endif -%}

{%- render “dbtfy-inventory-quantity”, product: product -%}

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

{%- render "quantity-selector", type: "product", id: quantity_id -%}
{%- elsif settings.dbtfy_quantity_breaks -%}
{%- endif -%}
{%- endif -%}
{{ settings.icon_cart }} {%- liquid if current_variant.available echo 'products.product.add_to_cart' | t else echo 'products.product.sold_out' | t endif -%}

{%- if settings.enable_payment_button -%}
{{ form | payment_button }}
{%- endif -%}

{%- endform -%}

{% render “dbtfy-back-in-stock”, product: product, current_variant: current_variant %}
{%- endif -%}

{%- render “dbtfy-trust-badge”, position: “product_page” -%}

{%- if live_view_under_button or sold_items_under_button -%}

{%- liquid if sold_items_under_button render "dbtfy-sold-items" with product as product endif

if live_view_under_button
render “dbtfy-live-view”
endif
-%}

{%- endif -%}

{%- if settings.dbtfy_product_tabs -%}
{%- if product_tabs_position == “under_addtocart” -%}

{%- elsif has_description == false and product_tabs_position == "above_description" -%}
{%- elsif has_description and product_description_position == "under_addtocart" and product_tabs_position == "above_description" -%}
{%- endif -%} {%- endif -%}

{%- if section.settings.show_product_description -%}
{%- if product_description_position == “under_addtocart” -%}
{%- unless is_to_split_description -%}

{{ product.description | replace: '

[split_description]

', '' | replace: '[split_description]', '' }}
{%- endunless -%} {%- endif -%} {%- endif -%}

{%- liquid
if settings.dbtfy_product_tabs
if product_tabs_position == “under_description” and product_description_position == “under_addtocart”
echo ‘

’
endif
endif

render “dbtfy-social-discount”, type: “button”

if section.settings.show_sharing_icons
render “social-sharing”, share_button: “btn btn-square-xsmall”, container_class: “spacer-top”
endif
-%}

{%- if section.settings.show_product_tags and product.tags.size > 0 -%}

  • local_offer {{ 'blogs.article.tags' | t }}
  • {%- for tag in product.tags -%}
  • {{ tag }}
  • {%- endfor -%}
{%- endif -%}

{%- if section.settings.show_product_collections and product.collections.size > 0 -%}

  • layers {{ 'collections.general.catalog_title' | t }}
  • {%- for collection in product.collections -%}
  • {{ collection.title }}
  • {%- endfor -%}
{%- endif -%}

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

{%- endif -%}

{%- unless emptyState -%}

{% render 'review-widget', product: product %}
{%- endunless -%}

{%- render “dbtfy-sticky-addtocart” with product as product, current_variant: current_variant -%}

{%- render “product-info-json”, product: product -%}

{%- if show_info_section -%}

{%- if settings.dbtfy_product_tabs -%} {%- if product_tabs_position == "separate_section" or product_tabs_position == "above_description" and product_description_position == "separate_section" -%}
{%- endif -%} {%- endif -%}

{%- if section.settings.show_product_description -%}
{%- if product_description_position == “separate_section” or is_to_split_description -%}

{%- liquid if is_to_split_description assign second_part = product.description | split: '

[split_description]

' | last

unless second_part contains ‘[split_description]’
echo second_part
else
echo product.description | split: ‘[split_description]’ | last
endunless
else
echo product.description | replace: ‘

[split_description]

’, ‘’ | replace: ‘[split_description]’, ‘’
endif
-%}

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

{%- liquid
if settings.dbtfy_product_tabs
if product_tabs_position == “under_description” and product_description_position == “separate_section”
echo ‘

’
endif
endif
-%}

{%- endif -%}

{%- render “dbtfy-addtocart-animation” -%}

{%- unless emptyState -%}

{%- endunless -%}

Hi, could you help me? I use the Booster theme and I can’t get this text to appear on my site.

{% if product.title %}
{%- assign compare_at_price = product.compare_at_price -%}
{%- assign price = product.price -%}
{%- assign price_varies = product.price_varies -%}
{%- assign available = product.available -%}
{% else %}
{%- assign compare_at_price = 1999 -%}
{%- assign price = 1999 -%}
{%- assign price_varies = false -%}
{%- assign available = true -%}
{% endif %}

{%- assign money_price = price | money -%}

{%- assign money_parcelado = price | divided_by: 100 | times: 100 | divided_by: 12 | money -%}

{% if compare_at_price > price %}
{{ ‘products.product.regular_price’ | t }}

{{ money_cartao }} {{ money_price }} no cartĂŁo

em até 12x de {{ money_parcelado }} sem juros

{% if settings.show_saved_amount and settings.show_discount_amount == ‘money_save’ %}

{% assign sale = product.compare_at_price | minus: product.price | money %}
{{ ‘products.product.on_save_like_price’ | t }} {{sale}}

{% endif %}
{% else %}

{{ ‘products.product.regular_price’ | t }}
{{ money_price }}

{% endif %}