-
AuthorPosts
-
August 18, 2017 at 1:52 am #840697
Hi Team,
All my hidden products have started showing in the shop. Assuming this started when I updated Woo a couple of days ago.
They are hidden in the default shop but not the pages that use the Product Grid from the Advanced Layout builder.If you go to this page http://cathypope.co.nz/collections/stonestruck/ the product “Chrysophase Silver Necklace” is displaying despite being set to hidden.
Any help would be much appreciated.
Thanks!August 19, 2017 at 8:24 pm #841396August 21, 2017 at 2:04 am #841808Hi Victoria,
That thread is about the product slider in particular, however I tried the suggestions it made about changing theme, removing css and deactivating plugins to try to find a conflict. None of this helped me narrow it down and had no effect on my hidden products being hidden. Any ideas for where to go from here?
Cheers,
August 23, 2017 at 6:09 am #842868Hi,
How did you hide the product? There is no option for that by default if I am not mistaken. Are you using a third party plugin to toggle the visibility of the product?
Best regards,
IsmaelAugust 23, 2017 at 11:08 pm #843317Hi Ismael,
I can see the option by either clicking on Quick Edit:Visibility:Hidden or clicking into the product and on the right hand side there’s the option to hide the product. See screenshot: http://imgur.com/a/cV1rn
As far as I’m aware, all Woo products have this option. They were hiding fine until the latest Woo update, however when I contacted them they said to talk to you as they hide in the default Woo shop but not on pages using the Product Grid.Any help would be much appreciated :)
August 24, 2017 at 1:36 pm #843477Hi,
Ah. Alright. I’m sorry I missed that option. However, I still can’t reproduce the issue on my own installation, “hidden” products are not displaying on product grid and slider. Did you add any filter to change the product grid query?
Best regards,
IsmaelAugust 24, 2017 at 10:59 pm #843726Hi Ismael,
We haven’t added any filters that would affect the product grid that I’m aware of, and I haven’t made any changes in the site recently except for updating Woocommerce. So I’m at a loss!Thanks,
Jessie @ TankerAugust 26, 2017 at 5:46 am #844288Hi,
I would like to check the settings but the login credentials are not working anymore. Please check it.
Best regards,
IsmaelAugust 28, 2017 at 2:57 am #844610Great, thanks, made a new password made for you:
August 28, 2017 at 7:03 am #844688Hi,
Thank you for the update.
The product is also “out of stock”. We enabled the Woocommerce > Settings > Products > Inventory > “Out of stock visibility” option.
Best regards,
IsmaelAugust 28, 2017 at 11:57 pm #845108Hi Ismael,
The issue with that is that my client doesn’t want ALL out of stock items hidden from the website. Items which will be coming back in stock are left visible (with an out of stock badge), and out of stock items that aren’t coming back soon are hidden.
I’ll advise my client that if she wants them hidden they’re better to be turned to draft instead.
Cheers,
August 30, 2017 at 7:46 am #845653Hi,
If that’s the case, please try this filter in the functions.php file.
add_filter('avia_product_slide_query', 'avia_product_slide_query_mod', 10, 2); function avia_product_slide_query_mod($query, $params) { $hidden_term = get_term_by( 'name', 'exclude-from-catalog', 'product_visibility' ); if( $hidden_term instanceof WP_Term ) { $query['tax_query'][] = array( 'taxonomy' => 'product_visibility', 'field' => 'name', 'terms' => 'exclude-from-catalog', 'operator' => 'NOT IN' ); } return $query; }
Best regards,
IsmaelAugust 31, 2017 at 1:50 am #846049Eep, unfortunately that code just brings up a “HTTP ERROR 500” page until it’s removed.
September 1, 2017 at 10:00 am #846753Hi,
Please make sure that the “avia_product_slide_query_mod” function is not duplicated.
Best regards,
IsmaelSeptember 11, 2017 at 4:43 pm #850573Dear Kriese Team.
I had the same issue…i searched the forum…and the solution was already there!!!
I copied the code to the function.php. Great guys wahat a support!I guess in the next update this wil be solved?
Regards
Gilbert
http://www.celebrationevents.nl- This reply was modified 7 years, 2 months ago by CelebrationEvents.
September 12, 2017 at 8:52 am #850870 -
AuthorPosts
- You must be logged in to reply to this topic.