Skip Navigation

[Closed] custom products archive not displaying stock status correctly

This support ticket is created 3 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Author
Posts
#2093425

On the following category page the products are all out of stock: hidden link

So these products should all appear (which they do), but the buttons should say "Read More" rather than "Add to Cart."

#2093667

So these products should all appear (which they do)
This is true, Toolset integration to WooCommerce will not exclude the out-of-stock products until you define it on a filter on the archive. By default, it will display all products.

but the buttons should say "Read More" rather than "Add to Cart."
This is not true. As you can read in the wpv-woo-buy-or-select shortcode documentation, nothing says that it will display different labels for out-of-stock products. Instead, it will display different labels per product type(simple, variable, external)
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-woo-buy-or-select

Our sincere apologies if the documentation was not clear and let you think that it will display a different string for the out-of-stock products.

I hope this helps. Let me know if you have any questions.

#2094791

It always worked this way for me with Woocommerce Views up through version 2.8. I am still using 2.8 on my live site for this reason, so you can see the same page on the live site at hidden link.

You'll notice that on that page the "add to cart" button is replaced with "read more".

#2095563

I understand what you say. But that is not what we should expect to get. Maybe the 2.8 version is falsely returning "Read more" instead of "Add to cart".
The documentation is not explaining anything about the stock status for the wpv-woo-buy-or-select shortcode.

If you would like to provide a copy of your website, before the update, at version 2.8. I can escalate this to our 2nd Tier and ask for further assistance. This way if we escalate this to the developers, they can see both cases, before and after the update. Sounds good?
I am setting your next message to be private to let you share a copy of your website, or credentials to let us take the copy manually.

The topic ‘[Closed] custom products archive not displaying stock status correctly’ is closed to new replies.