Category Archives: Bil.hagenmedia.no

Hide “Back To” navigation link on single product page

In order to hide the ‘Back to’ navigation link I commented the above on /theretailer-child/woocommerce/content-single-product.php

[php]

if ($i >= 1) {
/*
?>

parent==0){
$j++;
if( $j slug . ‘”>’ . $term->name . ‘‘;
}
}
}
if(strlen($term_list) > 0){ echo ‘

‘; };
?>

<?php if (function_exists(‘be_previous_post_link’)) { ?>

<?php } ?>

</div>

<?php */} ?>

[/php]

And it’s in the dark…

Remove the “Back to..” link from product single page

On theretailer-child/woocommerce/content-single-product.php I have commented this line:
[php]
if(strlen($term_list) > 0){ echo ‘

‘; };
[/php]

On the same file I commented this block:
[php]
if ($i >= 1) {

?>

parent==0){
$j++;
if( $j slug . ‘”>’ . $term->name . ‘‘;
}
}
}
if(strlen($term_list) > 0){ echo ‘

‘; };
?>

<?php if (function_exists(‘be_previous_post_link’)) { ?>

<?php } ?>

</div>

<?php }
[/php]

And the “Back to …” gets hidden

Pending products invisible in admin

Even if the number of products (Published + Pending) is okay, when going to Pending page, products aren’t visible.

Went to woocommerce-seo-latest plugin and edited the woocommerce-seo-widgets.php like this:

[php]

/*
if( function_exists( ‘woocommerce_layered_nav_query’ ) ){
add_filter(‘loop_shop_post_in’, ‘woocommerce_layered_nav_query’);
} else { //woocommerce_layered_nav_query moved inside WC_Query class in Woocommerce 2.1
$wc_query = new WC_Query();
add_filter(‘loop_shop_post_in’, array( $wc_query, ‘layered_nav_query’ ) );
}
*/
add_filter(‘loop_shop_post_in’, ‘woocommerce_layered_nav_query’);
//daniel:: if above commented code is used, pending products aren’t visible in admin

[/php]

This seems to fix the problem