Shopify themes, liquid, logos, and UX
See the picture above. When I discount an item by filling in compare-at-price in using the pre-order template, it only shows the sale label on the item when viewed in a collection. Is there a way to show both pre-order and sale labels, or even just show pre-order label with a slashed out price?
Theme I'm using is Athens 2.4.0
Thanks.
Solved! Go to the solution
This is an accepted solution.
Steps to add custom preoder label to all the products of a collection:
1. Go to "Online Store" -> "Themes".
2. Click action button from the current theme and select "Edit code".
3. Locate the file "card-product.liquid" and search class named "card__badge".
4. Add the below code
{%- if card_product.tags contains 'pre-order' and card_product.available -%}
<span
id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
class="badge badge--bottom-lef"
PreOrder</span>
{%- endif -%}
hopefully you will get that what you need.
Hi @usdentalinc,
yes its possible to show 2 labels in one product pre-order and sale both can be displayed at one time you just need to write some custom code using some condition that if template is pre-order you can create your own label for pre-order beside the sale label.
Do let me know if you need my help 🙂
Thanks
This is an accepted solution.
Steps to add custom preoder label to all the products of a collection:
1. Go to "Online Store" -> "Themes".
2. Click action button from the current theme and select "Edit code".
3. Locate the file "card-product.liquid" and search class named "card__badge".
4. Add the below code
{%- if card_product.tags contains 'pre-order' and card_product.available -%}
<span
id="NoMediaStandardBadge-{{ section_id }}-{{ card_product.id }}"
class="badge badge--bottom-lef"
PreOrder</span>
{%- endif -%}
hopefully you will get that what you need.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025