Hey Community,
I am struggeling with the "Taxes included + Shipping " on my product page.
Unfortunately, the “Debutify” theme which I use did not put the info automatically on the product page once I checked the boxes for taxes and shipping for the product in the settings.
So I had to copy the code from the Debut theme and paste it into my liquid.
This is how the product title and price looks right now(shop is in German):
I want the text in the green box to appear underneath the price, and ideally in a lighter font (see in example)
This is the associated excerpt in the snippets/product-template.liquid:
{{ current_variant.price | money }}
{% endif %}
{% if settings.position_currency_converter == "product" %}{% include "currency-selector" %}{% endif %}
Example: This is how the Title+Price+Tax&Shipping looks on the Debut theme and how I want it to look like:

Any idea on how to solve this issue would be highly appreciated.
Thank you ver much.
bobo
Hi Bobo
You had some tags that weren’t closed off properly so I fixed them and got the code below, try using my code.
{{ current_variant.price | money }}
{% if settings.position_currency_converter == "product" %}
{% include "currency-selector" %}
{% endif %}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if shop.taxes_included -%}
{{ 'products.general.include_taxes' | t }}
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.general.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
{%- endif -%}
Get back to me if it still wont work.
Hope it helps.
Regards,
Martin
Hey Martin,
first of all thank you very much for providing me the code.
I tried to copy and insert it but when I click “save” it says that an error prevented the code from being saved, with the following error:
" Line 405 — Liquid syntax error: ‘if’ tag was never closed"
Line 405 is the last line with the following code:
I guess I just have to do a small tweak, but I do not know where and what I have to adjust in order to make it work.
However, I appreciate your efforts highly and thank you very much for providing me the code above.
Many thanks,
Bobo
Paste me your whole file so I can see where it needs closing off for that if tag that’s throwing an error. Sometimes not getting the whole file can cause things like this because I take a solid guess as to how it operates.
Again, thank you very much for your quick answer.
I have copied the whole file including your 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 %}
{{ 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 }}
{% if settings.position_currency_converter == "product" %}
{% include "currency-selector" %}
{% endif %}
{%- if shop.taxes_included or shop.shipping_policy.body != blank -%}
{%- if shop.taxes_included -%}
{{ 'products.general.include_taxes' | t }}
{%- endif -%}
{%- if shop.shipping_policy.body != blank -%}
{{ 'products.general.shipping_policy_html' | t: link: shop.shipping_policy.url }}
{%- endif -%}
{%- endif -%}
{% 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 %}
{% include "dbtfy-color-swatches" %}{% 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 %}
{% unless product.description == blank or section.settings.show_description == false %}
{{ product.description }}
{% endunless %}
{% 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 %}
Add this {% endif %} after line 218. You must of accidently removed it.
Thanks for texting back so quickly.
I put in the {% endif %} after line 218 and I was able to save it after that.
However, the result after all looks like this:
It seems like it has made a vertical split instead of putting the tax+shipping underneath the price.
Anyway, I thank you for your efforts so far Martin.