• Resolved zackeryfretty

    (@zackeryfretty)


    Hello!

    I’m trying to get this rolling on my site, but, for whatever reason it doesn’t seem to be working.

    There’s nothing in my theme that seems to be overriding it from what I can tell and when I deactivate all other plugins outside of WooCommerce and this one it still shows 12 products irregardless of what I do (and I’m not sure where that number is coming from.)

    I’m using WooCommerce 3.3.5 and WordPress 4.9.5 and building the site locally (so I can’t share a URL – sorry!) but I am using Sage 8 as the theme.

    I have not customized it too much yet so I’m not sure what could be causing it, again, I don’t see anything in the functions or anywhere else that could be causing this override.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Does it work when you switch themes to a default WP theme?
    You did mention deactivating all plugins (great!), but not switching themes..

    You can also give this snippet a try to see if that does work to verify the hooks etc; https://docs.woocommerce.com/document/change-number-of-products-displayed-per-page/

    Let me know your findings!

    Jeroen

    Thread Starter zackeryfretty

    (@zackeryfretty)

    Hey!

    Thanks for your reply – yes – it does seem to work when I deactivate the theme — and no — that snippet doesn’t work even when I bump up the priority.

    I’ve grepped my theme for references to, “pre_get_posts” and get no hits.

    Is there anything else I should be looking for that might cause issues?

    Plugin Author Jeroen Sormani

    (@sormano)

    posts_per_page, loop_shop_per_page are others you can try and search for. There seems to be something in your theme that is causing it,, you’ll have to find it in there..

    Regards,
    Jeroen

    Thread Starter zackeryfretty

    (@zackeryfretty)

    Hmm — Neither of those show up either, any other ideas?

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Zack,

    I don’t have any further immediate suggestions, you’d want to look through the theme code itself for any other references that influence it..

    Sorry I can’t be of more help here!

    – Jeroen

    Thread Starter zackeryfretty

    (@zackeryfretty)

    Just wanted to note here I finally figured this out — believe it or not — all that was needed was to declare WooCommerce support in Sage 8 via the normal method:

    https://github.com/woocommerce/woocommerce/wiki/Declaring-WooCommerce-support-in-themes

    As soon as I did that everything worked fine, I’m not sure why this specific base theme required me to do that – but – something to note!

    Thanks again for your help, meant a lot!

    If anyone else has the same issue, I needed to declare WooCommerce support to get this working, too.

    products per page plugin issue resolved
    Yes this code worked for me – added in the appropriate area to functions php

    add_theme_support(‘woocommerce’);

    Thanks for the good advice – products per page plugin is is now working again.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not Changing Products’ is closed to new replies.