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

    (@sormano)

    Hi,

    I’ve taken a look at your website and the code as far as possible. I think your theme doesn’t have some actions where is suppose to have; to be more specific its probably missing these actions:

    woocommerce_before_shop_loop
    woocommerce_after_shop_loop

    Other possibility is that the position option is set to ‘none’ on the Products Per Page settings page, but I take it that isn’t the case.

    If you want to add the dropdown manually in the template you can use the following code;

    global $wppp;
    if ( class_exists( 'Woocommerce_Products_Per_Page' ) ) :
    	$wppp->wppp_dropdown();
    endif;

    Does that make sense?

    Groeten, Jeroen ??

    Thread Starter nowstyle

    (@nowstyle)

    Hi Jeroen,

    I tried adding it to my custom CSS field, but nothing happened.
    I’ve contacted the template builders to add this option to the template, but the want to wait for more requests.

    Any other way of getting this to work for me?

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    This code should be added to your CSS, but to your overwriting woocommerce template files.

    Understandable of your theme devs, doubt that there will be enough requests for them to add it.

    You can ask them if there is an hook available that should be at the position of ‘woocommerce_before_shop_loop’ or ask them if they can add that hook anyways (its a general hook thats used by a lot of plugins)

    If there is another hook available, you can add this code to your functions.php and re place the before_shop_loop code by the available hook (your devs will know where this is about ;-):

    global $wppp;
    add_action( 'woocommerce_before_shop_loop', array( $wppp, 'wppp_dropdown' ) );

    Hope this helps!
    Jeroen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Products per page" not showing’ is closed to new replies.