Home › Forums › WoodMart support forum › Make hidden products available in wish list › Reply To: Make hidden products available in wish list

Artem Temos
Compare page doesn’t have products loop as other shop pages including wishlist. In other words, Wishlist page uses same products PHP files as on the shop page. And it is not easy to change this on the wishlist only. But here is an instruction that may help you to achieve this
1. Add the following line to the file woodmart\inc\integrations\woocommerce\functions.php
http://prntscr.com/szv6i9
'is_wishlist' => false,
2. Add this line to file woodmart\inc\integrations\woocommerce\modules\wishlist\class-ui.php
https://prnt.sc/szv6s9
woodmart_set_loop_prop( 'is_wishlist', true );
3. Replace this line
if ( empty( $product ) || ! $product->is_visible() ) {
with this one
if ( ( empty( $product ) || ! $product->is_visible() ) && ! woodmart_loop_prop( 'is_wishlist' ) ) {
in the file woodmart\woocommerce\content-product.php
4. Remove the following code from the file woodmart\inc\modules\search.php
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) && $post_type == 'product' ) {
$query_args['meta_query'][] = array( 'key' => '_stock_status', 'value' => 'outofstock', 'compare' => 'NOT IN' );
}