• Resolved blacksheep581

    (@blacksheep581)


    First of – fantastic plugin. Using it for more than 2 years now. But just noticed one issue – on the page i have only 3 active product categories in the filter, however the source code of the page contains all of the categories available – those containing 0 products. That means code is overloaded with all available product categories which is not good for SEO as relevancy of the page is decreased in such way.

    How can i make that in the source code only filter parameters containing products are present?

    • This topic was modified 2 years, 2 months ago by blacksheep581.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nick McReynolds

    (@woobewoo)

    Hello @blacksheep581,

    The code contains only those categories that can potentially be used on this page. Or is it not right on your page?

    Thread Starter blacksheep581

    (@blacksheep581)

    Hi Nick @woobewoo !

    It was not right on my page as we dont need empty paramaters (0 products) listed on the page’s source code. So basically the plugin excluded these parameters from front-end but still kepts them in source code.

    We had to make a code modification in woo-product-filter/modules/woofilters/views/woofilters.php in order to exclude them from source code of the page. Our version of the plugin is 2.1.1

    https://drive.google.com/file/d/1zaqDP7YMu1TZJZcHTvwXLin_mTkb6sAV/view?usp=sharing

    May be you have a look and check out if the new version of the plugin got that fixed?

    Plugin Author Nick McReynolds

    (@woobewoo)

    Hi,

    We will test your modification and add a fix to the plugin in one of the next updates if there are no problems.

    Plugin Author Nick McReynolds

    (@woobewoo)

    Hi,

    We analyzed the code – it does not take into account a lot of things, it works only for a specific case and is not always correct.

    Try visiting a page with a pre-installed filter in the address bar, for example by color: https://waxashop.ru/zhidkaya-kozha/?wpf_count=24&wpf_filter_color-ftr=zolotoj

    Only one category will be displayed on the page, and this seems to be correct, but now try to remove the set filter by color – and then all the other categories (namely three) should appear, but they will not appear, since they are not on the page and you only need to refresh the page to change it.

    Thread Starter blacksheep581

    (@blacksheep581)

    Hi Nick! Thanks a lot for following up my ticket. Yes you are very right – this behavior shouldnt work like that. This is because it was a very quick, hands-on fix just to eliminate the major problem of precense of empty categories in the source code. I was just hoping that my solution could highlight the problem and solution for your investigation and including into the plugin update. I was not pretending to create a perfect code as it would require a lot of testing. And you have a better knowledge of course.

    May i ask if you are planning to address that issue into coming release?

    Hope I made it clear that precense of names of all the categories in the code makes the SEO of the page extremely difficult.

    Thanks in advance

    Plugin Author Nick McReynolds

    (@woobewoo)

    Hi @blacksheep581,

    We are working on a solution to this issue, most likely it will take 1-2 weeks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Empty categories/filter attrributes are on the page source code’ is closed to new replies.