Viewing 9 posts - 1 through 9 (of 9 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.



    I have a similar query…

    I am trying to setup the shop in Enfold similar to your grouped product here…

    I have noticed that all the “single” products listed on yours don’t show up in the previous/next arrows but for some reason in mine they are please see the site I have attached in the private content… in this site the single products of the grouped ones are showing up in previous and next how can I hide these like your demp store?

    Many thanks – Rachel



    not sure what you mean @greenlinkweb because I can’t see any previous and next button on the link you have provided in private content. Could you already fix it?



    Hi Andy I did hide the previous/next using the above filters as I couldn’t work out why the single products of the grouped ones were showing up when they didn’t in your test I will un-hide so you can see what I mean? see private link if you click the “next” button it takes you to the single product of the grouped one on that page whereas your test site doesn’t show the single products of the grouped one in the previous/next buttons or the catalog.



    sorry, but I can see a coming soon page only. I think we might need admin access, to see what you mean, right? post login details here as private reply.

    Best regards,


    Hi Andy good idea! I will private message login details thanks Rachel



    you can hide it using this code in Quick CSS field:

    a.avia-post-nav.avia-post-next.with-image {
    display: none;

    Hope this helps.


Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Single Product View Showing Hidden Products’ is closed to new replies.