out stock products

Solved

out stock products

eslamibrahim
Shopify Partner
49 0 6

I want to disappear out stock products only from collection page.

eslamibrahim_1-1720698020093.png

 

Accepted Solution (1)
BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @eslamibrahim

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

<style>
  li.js-pagination-result:has(.product-label--sold-out) {
     display: none !important;
  }
</style>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 4 (4)

BSSCommerce-HDL
Shopify Partner
2305 835 908

Hi @eslamibrahimCan you kindly share your store link (with the password protected, if any) with us? We will check it and suggest you a solution if possible.

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

eslamibrahim
Shopify Partner
49 0 6
BSSCommerce-HDL
Shopify Partner
2305 835 908

This is an accepted solution.

Hi @eslamibrahim

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag: 

<style>
  li.js-pagination-result:has(.product-label--sold-out) {
     display: none !important;
  }
</style>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Small_Task_Help
Shopify Partner
915 32 85

Hi,

 

Need to add an inventory check code at collection.liquid (product display loop)

 

Example of code

{% for product in collection.products %}
  {% if product.available %}
    <!-- Your existing code to display product -->
  {% endif %}
{% endfor %}
To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Expert India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad