Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #464692

    The navigation arrows on the side of the screen are truly brilliant. My issue is that products that are marked as ‘hidden’ on woocommerce are part of the navigation and I don’t want them to be shown. Hidden products are created when creating a grouped product with several purchase options.
    In my case, Recording A, (options: CD, Download, LP…)

    I only want Recording A displayed but when flicking through the catalogue with the side arrows, all options are shown on their own page (CD, Download, LP…)

    #465390

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #467392

    Hi there, here they are

    #467451

    Hey!

    Thanks for the access but doesn’t seem to work, please re-check it.

    Regards,
    Josue

    #467539

    Sorry, I added the user to the local installation! It should work now!

    Best,

    Alfonso

    #468852

    Hi!

    Sorry for the late reply!
    I set visibility to private and it does not show up any more. Please review your website now.

    Best regards,
    Yigit

    #468895

    Hi Yigit,

    Sorry, I don’t think I was clear. I don’t want to set the status to privately published. If I do that it won’t show at all under the options for a grouped product. i.e. now it doesn’t show here:
    http://www.dunedinconsort.com/dev/shop/recordings/mozart-requiem/

    Status needs to be published and the ‘Catalog visibility’, also under publish options, set to ‘hidden’, so it is not part of the main shop loop but still displays as an option under grouped products.

    The issue is that at the moment products that are set as published/catalog visibility hidden, show on the front end when clicking on the side arrows.

    Any thoughts?

    Thanks,

    Alfonso

    #471355

    Hey!

    Alright. The post navigation or the arrows on each side of the page can only filter same custom post types but it doesn’t recognize hidden products. You can set the arrows to filter products from the same categories and then edit the hidden products. Remove them from any categories temporarily. Add this in the functions.php file:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      if(is_singular('product')) {
        $settings['taxonomy'] = 'product_cat';
      }
    	$settings['same_category'] = true;
    	return $settings;
    }

    Since the hidden product doesn’t have any categories, it will not be included in the set of product items filtered by the post navigation.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.