Shopify themes, liquid, logos, and UX
find the code that handles your featured product cards
{{ product.available }} or {{ product.inventory_quantity }}
If this fixed your issue, likes and accepting as a solution are highly appreciated
| Build an online presence with our custom-built Shopify Theme: EcomifyTheme
| Check out our reviews: Trustpilot Reviews
| We are Shopify Partners: EcomGraduates Shopify Partner
Hi @DASCPA
You can follow the instruction below :
1. Go to Shopify > Theme > Edit code
2. Go to File card-product.liquid > paste this code :
<p
class="product__inventory"
id="Inventory-{{ section.id }}"
role="status"
>
{%- if card_product.selected_or_first_available_variant.inventory_management == 'shopify' -%}
{%- if card_product.selected_or_first_available_variant.inventory_quantity > 0 -%}
{%- if card_product.selected_or_first_available_variant.inventory_quantity
<= block.settings.inventory_threshold
-%}
<span class="svg-wrapper" style="color: rgb(238, 148, 65)">
{{- 'icon-inventory-status.svg' | inline_asset_content -}}
</span>
{{-
'products.product.inventory_low_stock_show_count'
| t: quantity: card_product.selected_or_first_available_variant.inventory_quantity
-}}
{%- else -%}
<span class="svg-wrapper" style="color: rgb(62, 214, 96)">
{{- 'icon-inventory-status.svg' | inline_asset_content -}}
</span>
{{-
'products.product.inventory_in_stock_show_count'
| t: quantity: card_product.selected_or_first_available_variant.inventory_quantity
-}}
{%- endif -%}
{%- else -%}
{%- if card_product.selected_or_first_available_variant.inventory_policy == 'continue' -%}
<span class="svg-wrapper" style="color: rgb(62, 214, 96)">
{{- 'icon-inventory-status.svg' | inline_asset_content -}}
</span>
{{- 'products.product.inventory_out_of_stock_continue_selling' | t -}}
{%- else -%}
<span class="svg-wrapper" style="color: rgb(200, 200, 200)">
{{- 'icon-inventory-status.svg' | inline_asset_content -}}
</span>
{{- 'products.product.inventory_out_of_stock' | t -}}
{%- endif -%}
{%- endif -%}
{%- endif -%}
</p>
Here is the example :
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024