Shopify themes, liquid, logos, and UX
Hi everyone, I offer pickup on my website and I just realized that, when I click on store information, the tab opens with store description but its shows an unwanted "Default Title" on the top. See below.
How can I get rid of it?
Thanks a lot!
the default title is your product default variant name do you doesn't added any variant then show him
Thanks Ketan, you are saying that Default title is the product variant name, and because my product doesnt have any variant, it shows Default title?
If my product doesn't have any variant, how can I get rid of this? Can I replace it to " "?
If yes, where?
Thank you!
you can just add your product variant
https://help.shopify.com/en/manual/products/variants/add-variants
Hi Ketan, thank you but but none of my products have variants.
So i don't see why I would add that.
Is there a way to remove "Defautl title"?
Thank you
Juliana
Yes may add custom condition if product variant 0 doesn't show default variant
Thanks Ketan, how can I do that?
It can be done by doing some code customization. please send me a personal message and we can discuss what you'd like
Thank you Ketan but Im not too sure on how this is related to product variant if the message "Default title" appears when I click on "View store information". Any help would be much appreciated.
Thank you.
can you please share the issue image so i will review
Here you go Ketan. When I click on View STore Information, the tab on the side shows Default title under Product Name.
please share store url and particular product page url
It happens to every product, but here's a product link as an example.
https://www.fourelementscandles.com/collections/all-products/products/12-oz-enigma
Thank you Ketan.
Juliana
oh thanks if possible to share side cart code so i will check and update
hi Ketan, you mean the liquid file?
yes, current
Here you go. This is the cart-template.liquid
Thank you Ketan
{%- capture section_settings -%}
{
"type": {{ settings.cart_type | json }},
"itemCount": {{ cart.item_count }},
"drawer": false,
"hasShippingEstimator": {% if section.settings.show_shipping_estimator and cart.item_count > 0 %}true{% else %}false{% endif %}
}
{%- endcapture -%}
<section data-section-id="{{ section.id }}" data-section-type="cart" data-section-settings='{{ section_settings }}'>
{%- if cart.item_count == 0 -%}
<div class="EmptyState">
<div class="Container">
<h1 class="EmptyState__Title Heading u-h5">{{ 'cart.general.empty' | t }}</h1>
{%- if settings.cart_show_free_shipping_threshold -%}
{%- assign threshold_in_cents = settings.cart_free_shipping_threshold | times: 100 -%}
{%- capture remaining_amount -%}<span>{{ cart.total_price | minus: threshold_in_cents | abs | money_without_trailing_zeros }}</span>{%- endcapture -%}
<p class="Text--subdued">{{- 'cart.general.free_shipping_remaining_html' | t: remaining_amount: remaining_amount -}}</p>
{%- endif -%}
<a href="{{ routes.all_products_collection_url }}" class="EmptyState__Action Button Button--primary">{{ 'cart.general.empty_button' | t }}</a>
</div>
</div>
{%- else -%}
<div class="Container">
<header class="PageHeader">
<div class="SectionHeader SectionHeader--center">
<h1 class="SectionHeader__Heading Heading u-h1">{{ 'cart.general.title' | t }}</h1>
{%- if settings.cart_show_free_shipping_threshold -%}
{%- assign threshold_in_cents = settings.cart_free_shipping_threshold | times: 100 -%}
<p class="SectionHeader__Description Text--subdued">
{%- if cart.total_price >= threshold_in_cents -%}
{{- 'cart.general.free_shipping' | t -}}
{%- else -%}
{%- capture remaining_amount -%}<span>{{ cart.total_price | minus: threshold_in_cents | abs | money_without_trailing_zeros }}</span>{%- endcapture -%}
{{- 'cart.general.free_shipping_remaining_html' | t: remaining_amount: remaining_amount -}}
{%- endif -%}
</p>
{%- endif -%}
</div>
</header>
<div class="PageContent">
<form action="{{ routes.cart_url }}" method="POST" class="Cart Cart--expanded" novalidate>
<input type="hidden" name="attributes[collection_mobile_items_per_row]" value="">
<input type="hidden" name="attributes[collection_desktop_items_per_row]" value="">
{% render 'cart-items' %}
<footer class="Cart__Footer">
{%- if settings.cart_enable_notes -%}
<div class="Cart__NoteContainer">
<span class="Cart__NoteButton">{{ 'cart.general.add_note' | t }}</span>
<textarea class="Cart__Note Form__Textarea" name="note" id="cart-note" rows="4" placeholder="{{ 'cart.general.note_placeholder' | t }}">{{ cart.note }}</textarea>
</div>
{%- endif -%}
<div class="Cart__Recap">
{%- capture shipping_and_taxes_notice -%}{{ 'cart.general.shipping_and_taxes_notice' | t }}{%- endcapture -%}
{%- if cart.cart_level_discount_applications != blank -%}
{%- for discount_application in cart.cart_level_discount_applications -%}
<p class="Cart__Discount Heading u-h6">{{ 'cart.general.discount' | t }} ({{ discount_application.title }}): -<span>{{ discount_application.total_allocated_amount | money_without_trailing_zeros }}</span></p>
{%- endfor -%}
{%- endif -%}
<p class="Cart__Total Heading u-h6">{{ 'cart.general.total' | t }}: <span>{{ cart.total_price | money_without_trailing_zeros }}</span></p>
{%- if shipping_and_taxes_notice != blank -%}
<p class="Cart__Taxes Text--subdued">{{ shipping_and_taxes_notice }}</p>
{%- endif -%}
<button type="submit" name="checkout" class="Cart__Checkout Button Button--primary Button--full">{{ 'cart.general.checkout' | t }}</button>
</div>
</footer>
</form>
{%- if section.settings.show_shipping_estimator -%}
<div class="Section Section--spacingExtraLarge">
<div class="Panel">
<h2 class="Panel__Title Heading u-h2">{{ 'cart.shipping_estimator.title' | t }}</h2>
<div class="Panel__Content">
<div class="ShippingEstimator">
<div class="ShippingEstimator__Form">
<div class="ShippingEstimator__Country Form__Select Select Select--primary">
{%- render 'icon' with 'select-arrow' -%}
<select name="country" title="{{ 'cart.shipping_estimator.country' | t }}" data-default="{% if customer %}{{ customer.default_address.country }}{% elsif section.settings.shipping_estimator_default_country != '' %}{{ section.settings.shipping_estimator_default_country }}{% endif %}">{{ all_country_option_tags }}</select>
</div>
<div class="ShippingEstimator__Province Form__Select Select Select--primary" style="display: none">
{%- render 'icon' with 'select-arrow' -%}
<select name="province" title="{{ 'cart.shipping_estimator.province' | t }}"></select>
</div>
<input type="text" class="ShippingEstimator__Zip Form__Input" name="zip" placeholder="{{ 'cart.shipping_estimator.zip_code' | t }}">
<button type="button" class="ShippingEstimator__Submit Button Button--primary">{{ 'cart.shipping_estimator.estimate' | t }}</button>
</div>
<div class="ShippingEstimator__Error Alert Alert--error" style="display: none"></div>
<div class="ShippingEstimator__Results">
<div class="ShippingEstimator__ResultsInner"></div>
</div>
</div>
</div>
</div>
</div>
{%- endif -%}
</div>
</div>
{%- endif -%}
</section>
{% schema %}
{
"name": "Cart page",
"class": "shopify-section--bordered",
"settings": [
{
"type": "checkbox",
"id": "show_shipping_estimator",
"label": "Show shipping rates calculator",
"default": true
},
{
"type": "text",
"id": "shipping_estimator_default_country",
"label": "Default country to use",
"info": "If your customer is logged-in, the country in his default shipping address will be selected.",
"default": "United States"
}
]
}
{% endschema %}
thanks for code sorry but i can't see variant code on this file do you have missing or any other files
Hi Ketan, Do you want access to the code? Thank you.
yes please give me full code this issue so i will check and update
Hello @tjuliana
Did you solve this issue? I have exactly the same problem.
I will appreciate your help! Thanks!
yes, please try this code
{% unless product.has_only_default_variant %}
your variant code here....
{% endunless %}
I have the same issue...seems like a lot of people have the problem. Could someone please share a solution to this problem? @KetanKumar the code did not work for me 😕 Any other ideas?
oh sorry for that issue can you share please store url
thanks for URL but i can't see can you share a particular product url if you can see it?
one example would be this one: https://seifenfeestore.de/collections/classic-line/products/rosen-seife
When you click on "Abholinformationen anzeigen" (view store information) you get the "default line" - also have no product variants
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024