Home › Forums › Themes Support › Claue › Hide product, with variations out of stock in filter and on image
- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by
Harry.
-
AuthorPosts
-
-
May 7, 2020 at 3:13 pm #36281
Hi!
My first post here, and my first time with Claue theme.
We have setup a small page for selling mostly footwear.
The design is great, but I would like to have the home page, that would look like this demo:
We already have all our products setup, so we can not import demo data.
Where can I find a template, to do this?
And the main problem:
On the side we have put a filter, to filter by size.
This is one of the most used features by our customers.
But the problem is with variable items, where a size variation is out of stock:
- you select your size in filter
- it populates the shop page with items having that size variation
- but it shows also items with selected size variation, even if it is not on stock
After a few days of trying, researching and crying, I have came across this text:
This is currently a ‘wontfix’ item – I’ll briefly explain why it’s not possible to do this at this point.
Attributes (your shoe sizes) are terms.
The terms are not directly tied to a ‘variation’, they are tied to a parent variable product.
When querying products using widgets like layered nav, they look at the parents only. They cannot look at the variations because the variations are not assigned to the term.
Since the query cannot look at the variation, it cannot check its stock level and exclude it.
In the future we may try to revisit this, but as it stands, looping over all variations during layered nav queries would be a massive bottleneck and would cause too large of a performance issue to warrant it’s inclusion. It may be possible once product tables are in WooCommerce core, but right now it’s not possible.Since this is really a huge problem for us, I would like to ask you to help as much as you can in resolving this issue.
Thank you!
-
May 7, 2020 at 4:46 pm #36283
Hi Peter,
Thank you for choose our theme.
1. Please download attach file and import via Tools > Import > WordPress Import and use claue-elementor.WordPress.xml.zip if you use Elementor and use claue-page-WPBakery.wordpress.xml.zip if you use WPBaekry PageBuilder
2. This issue related to plugin WooCommere and they still didn’t fix this. Please try this solution https://github.com/ctuxboy/Woocommerce-out-of-stock-variations-loop
Kind regards
Attachments:
You must be logged in to view attached files.Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.