Who can help me add information (installments) below the price of the product?
@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 }}
can you please add and try
@KetanKumar
i donât know where i can add, can you help me?
can you please share product page code so i will update
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â %}
{% comment %}
The contents of the product.liquid template can be found in /snippets/product-template.liquid
{% endcomment %}
{% 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 %}
oh no again one more file code sorry for this theme multifiels
please give me this file code
{% include âproduct-templateâ %}
@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 %}
{{ product.title }}
{% else %}
{{ title }}
{% endunless %}
{% if template != âproductâ %}
{% endif %}
{% if settings.review_badge == âreview_badge_underâ %}
{% include âreview-badgeâ, badge_template: âproductâ %}
{% endif %}
{% endcapture %}
{% 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 %}
{% 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 %}
{% if product.images.size > 1 %}
{% endif %} {% include "dbtfy-product-video" %}<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 %}
{% capture âform_idâ %}AddToCartFormâ{{ section.id }}{%- endcapture %}
{% form âproductâ, product, class:form_classes, id:form_id %}
{% unless product.has_only_default_variant %}
{% 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 %}
{% if section.settings.quantity_enabled %}
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 %}
{% if template != âproductâ %}
{{ 'products.product.full_details' | t }} {% endif %}
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 %}

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 %}
@KetanKumar
thank you so much, youâre the best!!!
itâs my pleasure to help us
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 -%}
{% 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 %}
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
-%}
{%- 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
-%}
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
-%}
{%- 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 -%}
assign media_aspect_ratio = media.aspect_ratio | default: media.preview_image.aspect_ratio
-%}
{%- if media.media_type == âvideoâ or media.media_type == âexternal_videoâ or media.media_type == âmodelâ -%}
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 -%}
- folder {{ product.type }} {%- endif -%}
- settings SKU: {{ sku }} {%- endif -%}
{%- if section.settings.show_product_type and product.type != blank -%}
{%- if section.settings.show_product_sku -%}
{{ 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â -%}
' 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 -%}
{{ compare_at_price | money }}
{%- render âdbtfy-discount-savedâ with product as product -%}
{%- 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 -%}
[split_description]
' | firstunless first_part contains â[split_description]â
echo first_part
else
echo product.description | split: â[split_description]â | first
endunless
-%}
{%- if live_view_under_price or sold_items_under_price -%}
if live_view_under_price
render âdbtfy-live-viewâ
endif
-%}
{%- if emptyState -%}
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 -%}
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
-%}
{%- 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 -%}
{%- 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 -%}
{%- 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 -%}
{%- if settings.enable_payment_button -%}
{{ form | payment_button }}
{%- endif -%}
{% 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 -%}
if live_view_under_button
render âdbtfy-live-viewâ
endif
-%}
{%- if settings.dbtfy_product_tabs -%}
{%- if product_tabs_position == âunder_addtocartâ -%}
{%- if section.settings.show_product_description -%}
{%- if product_description_position == âunder_addtocartâ -%}
{%- unless is_to_split_description -%}
[split_description]
', '' | replace: '[split_description]', '' }}{%- 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 -%}
{%- 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 -%}
{%- if section.settings.show_full_details -%}
{%- endif -%}{%- unless emptyState -%}
{%- render âdbtfy-sticky-addtocartâ with product as product, current_variant: current_variant -%}
{%- render âproduct-info-jsonâ, product: product -%}
{%- if show_info_section -%}
{%- if section.settings.show_product_description -%}
{%- if product_description_position == âseparate_sectionâ or is_to_split_description -%}
[split_description]
' | lastunless 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
-%}
{%- liquid
if settings.dbtfy_product_tabs
if product_tabs_position == âunder_descriptionâ and product_description_position == âseparate_sectionâ
echo â
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 %}