Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #215287

    Hi Kriesi,

    When viewing a product in die single product view, there’s two navigation items that shows either the previous or next product in line. This works fine except that it also shows products that is set to “hidden” in the visibility section of the product (in the backend).

    Please see screenshot for more info at:

    Thanks in advance


    PS – to see this in action, compare the following pages:

    Single Product View:
    Overall Shop View:

    You’ll notice that in the Overall Shop View, there is no product entitled “Auto Job Suggest” – this is because it’s been set to hidden in the backend…



    Yes, unfortunately these buttons will ignore the “hidden” product settings. We use the standard wordpress get_previous_post() and get_next_post() post functions to query the previous/next product posts and these functions ignore the “special” WooCommerce data fields like “catalog visibility”, etc.

    The only solution I can provide is to completely remove the next/previous buttons from the single product pages if you want to avoid that users can view hidden products. Open up functions.php and insert following code

    add_filter('avia_post_nav_settings','avia_remove_next_prev_from_products', 10, 1);
    function avia_remove_next_prev_from_products($settings)
    if(is_product()) $settings['is_fullwidth'] = true;
    return $settings;

    at the very bottom of the file.


Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.