I want to remove "in stock" / availability from my product

Solved

I want to remove "in stock" / availability from my product

Minais
Excursionist
21 2 2

Hello, I have a product I wish to remove the availability from aka the "in stock", as the product is only available in-store and cannot be ordered online. I am worried it'll be an issue for my customers if they think an item is in stock, and then go to order only to find that it cannot be purchased online. 

 

I have found a similar thread, however my issue is not that the "in stock" shows next to the product after having clicked on it, but rather in my collections when you hover over it, like this: 

 

Skærmbillede 2023-07-04 091550.png

 

I wish to remove the "in stock" circled in red - I have already customised it before to remove the price, but now I am stuck with this instead.

 

Any tips?

 

 

Accepted Solution (1)
Minais
Excursionist
21 2 2

This is an accepted solution.

Hi! Thank you both for the offer to help, but I got it figured out. 🙂 

 

If anyone in the future experiences the same issue, all I did to solve it was to use the Google Devtools, hover over the area I wanted to change or hide, and see what kind of element it was. In my case, the custom codes that included "product-grid_inventory-stock" or "product-grid_availability" did not work, because the "in stock" area displayed was contained in a div block. So I copied the element using Devtools, created a custom code and put it in the theme editor's custom code, and done!

 

For future reference, or for anyone needing it. the code looks like this. 🙂 

 

Skærmbillede 2023-07-04 122501.png

 

It worked for me so it might work for someone else as well. 

View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
4964 1316 1598

Hey @Minais 
Kindly share your Store URL and Password if enabled

-Need a Shopify Specialist? Chat on WhatsApp
- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

zaczee
Globetrotter
855 46 42

Hi,

 

Can you share your store url

 

Minais
Excursionist
21 2 2

This is an accepted solution.

Hi! Thank you both for the offer to help, but I got it figured out. 🙂 

 

If anyone in the future experiences the same issue, all I did to solve it was to use the Google Devtools, hover over the area I wanted to change or hide, and see what kind of element it was. In my case, the custom codes that included "product-grid_inventory-stock" or "product-grid_availability" did not work, because the "in stock" area displayed was contained in a div block. So I copied the element using Devtools, created a custom code and put it in the theme editor's custom code, and done!

 

For future reference, or for anyone needing it. the code looks like this. 🙂 

 

Skærmbillede 2023-07-04 122501.png

 

It worked for me so it might work for someone else as well.