Home › Forums › WoodMart support forum › How can i Show ony Instock Products
How can i Show ony Instock Products
- This topic has 12 replies, 3 voices, and was last updated 2 years, 5 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
September 28, 2022 at 1:34 am #408912
Bilal HussainParticipantHi, Hope you are doing fine. We have many out of stock products in our store and we would like to know if there is any option in your theme OR if we can use “In-Stock” filter by default to show only in-stock products in our store. we cannot use the woocommerce option “Hide out of stock items” because it is bad for the SEO. so we were wondering if we can make default display to show only in stock items using your theme filter “In-Stock”.
Please see attached screenshot.
Thank You
Bilal HussainAttachments:
You must be logged in to view attached files.September 28, 2022 at 11:20 am #408977
Aizaz Imtiaz AwanKeymasterHello,
Sorry but there is no option in Theme Settings available for that.
It requires customization and this is out of our theme support scope.
Best Regards
September 28, 2022 at 3:16 pm #409021
Bilal HussainParticipantok
September 28, 2022 at 8:43 pm #409075
loptixParticipantHello Bilal, just passing there,
We had the same problem. Actually what you could do is add order condition in the loop to get the out of stock product showing at the end of the loop.
That way the product in Stock will show first, without changing the product order which you assigned first.
Tested and actually working on our website. If it can help.
Best regards.
September 28, 2022 at 8:52 pm #409077
loptixParticipantHey, got a flashback, the stock statut is declared in the css class of grid items.
So you can hide out-of-stock products with simple .css if you really want :
.product-grid-item.outofstock {
display: none; }Best regards.
September 28, 2022 at 9:12 pm #409080
Bilal HussainParticipantHi Loptix, Awesome!
The code snippet we are already using to display OOS items at the end but it still does not enough for a cleaner look.although i tried the CSS and it worked. Do you have any knowledge if this effects on the SEO?
Thanks alot!
September 28, 2022 at 9:19 pm #409086
loptixParticipantThere is no effect, it is just going to hide your product in the loop so.
To mention, Your product pages are still available, so there is no problem with SEO.
To go deeper : maybe only if you end with empty Categories it could be a problem for google (if all your products from a catgory are out of stock then it will show a blank loop). And yes this is not good, so care about that.
Best regards
September 28, 2022 at 9:26 pm #409090
Bilal HussainParticipantOk got that! Thanks alot! it was really helpful!!
September 28, 2022 at 9:33 pm #409092
loptixParticipantAfter thought, my solution is maybe not the best because :
1/ If you use ajax filter it will still showing attributes of the out of stock products. So you could end up with empty loop… And this is not good.
2/ It is still gonna rendering html so that is definitly not the best way for performance.So I think you have only 2 viable solutions:
1/ Use the Woocommerce option to hide out of stock products.
2/ What we’ve done :
– Showing OOS product last in loop
– Grey out out-of-stock product with CSS
– Adding Back-in-stock notification. Making your out-of-stock product pages still OK to use, and SEO friendly!we cannot use the woocommerce option “Hide out of stock items” because it is bad for the SEO
If you could explain what you’ve read about that? Im curious In which way hiding out of stock product is bad for SEO as the product pages are still available to crawl from google?
Ps : Dropping here some advices for handle SEO and out-of-stock products (Screenshot, Source: Yoast)
-
This reply was modified 2 years, 5 months ago by
loptix.
September 28, 2022 at 9:43 pm #409094
Bilal HussainParticipantOur SEO team told us that, we cannot use that feature it is probably because it hides the urls as well of out of stock products.
the other solution i am thinking is to put &stock_status=instock filter in all the navigation links (using custom category links coz when i use that filter and even i change categories it shows in stock items only.
but i have not tested it thoroughly
September 28, 2022 at 9:46 pm #409095
loptixParticipantUpload problem, here are advices.
Attachments:
You must be logged in to view attached files.September 28, 2022 at 10:15 pm #409102
loptixParticipantI personnaly do not think adding query strings (like “&stock_status=instock”) is good, especially for SEO.
First bcs those URL normaly should not be crawled (for doubled content).
Another example is from WP Rocket which DO NOT cache the page with query strings, that would make all your pages slow and unoptimized for your clients (if you use WP rocket ofc, but note that there is still an option to cache querystrings URL with WP Rocket).
+ I think this is not SEO Friendly but ask your team about that :))))
Just my thoughts 🙂
September 29, 2022 at 11:25 am #409215
Aizaz Imtiaz AwanKeymasterHello,
Thanks for your collaboration with each other.
Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Have a wonderful day.
Topic Closed.
Best Regards -
This reply was modified 2 years, 5 months ago by
-
AuthorPosts
The topic ‘How can i Show ony Instock Products’ is closed to new replies.
- You must be logged in to create new topics. Login / Register