Need help to add shipping policy, return policy under add to cart.
This is what I did but is not working. Help.
added above div class–cart liquid. Nothing shows. Did I make a mistake? It’s motion theme. Thank you
Need help to add shipping policy, return policy under add to cart.
This is what I did but is not working. Help.
added above div class–cart liquid. Nothing shows. Did I make a mistake? It’s motion theme. Thank you
Hi @arundhatimandav ,
The code you add in cart.liquid, it’s the page cart. I checked in the cart page it shows normally. Do you mean to add in product page? If yes, you can add it in the product.liquid file.
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
thx for the reply. I want it show below add to cart. Where do I add it?
Hi @arundhatimandav ,
Can you share the product.liquid code for me? I will guide you where to add
Thanks you
Hi @arundhatimandav ,
You can follow the instruction below:
f you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
added at the top of cart code.
Did not find add to cart
{% render ‘breadcrumbs’ %}
{% for item in cart.items %}
{%- unless item.product.has_only_default_variant -%}
{{ item.variant.title }}
{% endunless %}{% assign property_size = item.properties | size %}
{% if property_size > 0 %}
{% for p in item.properties %}
{% assign first_character_in_key = p.first | truncate: 1, ‘’ %}
{% unless p.last == blank or first_character_in_key == ‘_’ %}
{{ p.first }}:
{% if p.last contains ‘/uploads/’ %}
{{ p.last | split: ‘/’ | last }}
{% else %}
{{ p.last }}
{% endif %}
{{ ‘cart.label.quantity’ | t }}
{%- if item.line_level_discount_allocations != blank -%}
{%- for discount_allocation in item.line_level_discount_allocations -%}
{{ discount_allocation.discount_application.title }} (-{{ discount_allocation.amount | money }})
{%- endfor -%}
{%- endif -%}
{%- if item.unit_price_measurement -%}
{%- capture unit_price_base_unit -%}
{%- if item.unit_price_measurement -%}
{%- if item.unit_price_measurement.reference_value != 1 -%}
{{ item.unit_price_measurement.reference_value }}
{%- endif -%}
{{ item.unit_price_measurement.reference_unit }}
{%- endif -%}
{%- endcapture -%}
{{ 'cart.general.discounts' | t }}
{{ cart_discount.title }} (-{{ cart_discount.total_allocated_amount | money }})
{% endfor %}{{ 'cart.general.subtotal' | t }}
{{ cart.total_price | money }}
{% if cart.total_discounts > 0 %}
{% assign cartTotalDiscounts = cart.total_discounts | money %}
{{ 'cart.general.savings_html' | t: savings: cartTotalDiscounts }}
{% endif %} {{ 'cart.general.shipping_at_checkout' | t }}{% if settings.cart_terms_conditions_link != blank %} {{ 'cart.general.terms_html' | t: url: settings.cart_terms_conditions_link }} {% else %} {{ 'cart.general.terms' | t }} {% endif %}
{% endif %}{% if additional_checkout_buttons and settings.cart_additional_buttons %}
{% else %}
@arundhatimandav - can you please share the page link where you have this add to cart button?
@arundhatimandav - do you want like this?