Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #739597

    When I choose a certain Categorie, the products come up in a certain order. When I click in one of them and I want to use the arrows at the left and right site to navigate through all the items in this categorie, the order is very different. Is it possible to do something to arrange that the order in the overview-page of a categorie is the same as the order of pictures in the single page stream of the same categorie?

    #741252

    Hey!

    Please try adding this at the very end of your themes / child themes functions.php file in Appearance > Editor:

    add_filter('avia_post_nav_settings', 'avia_post_nav_settings_mod');
    function avia_post_nav_settings_mod($settings)
    {
      $settings['same_category'] = true;
      return $settings;
    }

    Best regards,
    Yigit

    #743489

    Hello Yigit,

    Thanks for your advise, but it doesn’t seem to be working.

    If I choose a category (‘liggend’ for instance) and then click on a picture to enter the single page mode, not only the order of the images is different from the overview, but also it’s a mixture of categories… :-(

    #743552

    Hey!

    I tried load your web site and it gets me to
    http://website.irisdepasse.nl/

    and not the proper web site

    Cheers!
    Basilis

    #743570

    That’s right, i’ve been creating it in a subdomain. But somehow it doesn’t load anymore. Provider sends me to you. Says it has something to do with the theme. Have been working on my site all day. Last thing I did was enter some code and then my website stopped loading.

    Can’t do a thing now…

    #743745

    Good news, my website is up and running again, by using a back up.

    Problem with categories still exists though.

    If I choose a category (‘liggend’ for instance) and then click on a picture to enter the single page mode, not only the order of the images is different from the overview, but also it’s a mixture of categories…

    Hope you know how to solve this (and on a mobile phone) the productcategories don’t show…

    #745383

    Hey!

    I’m very sorry for the inconvenience. The filter above was invalid so we modified it a bit. Please make sure that you get the code directly from this forum, not from your email.

    Cheers!
    Ismael

    #749391

    Hello Ismael, I added the modified code, but still the same problem. When I select a category (liggend), then select a single product and browse from there with the arrows at the side, it’s displaying products from a mix of categories.

    #752756

    Hi,

    My bad. We forgot to add the taxonomy settings. Please replace the code with the following:

    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['is_fullwidth'] = false;
      }
      $settings['same_category'] = true;
      return $settings;
    }

    If this is not working, please post the login details here so that we can check it.

    Best regards,
    Ismael

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