WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] Double Pagination and Sorting Above the Catalog

[Resolved] Double Pagination and Sorting Above the Catalog

Viewing 9 replies - 1 through 9 (of 9 total)
  • GOT IT! Just change a little bit code on woocommerce-hooks.php

    Hi vickyhestyanto,

    Can you please let us know what you changed to remove the double pagination?
    Thanks!

    -David

    Yes can you please explain how you went about this, as I have double sorting products drop down above my products.

    Open woocommerce-hooks.php , and then erase this codes :

    /**
    	 * Products Loop
    	 *
    	 * @see woocommerce_show_messages()
    	 * @see woocommerce_result_count()
    	 * @see woocommerce_catalog_ordering()
    	 */
    	add_action( 'woocommerce_before_shop_loop', 'woocommerce_show_messages', 10 );
    	add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
    	add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );

    AND

    /**
    	 * Pagination after shop loops
    	 *
    	 * @see woocommerce_pagination()
    	 */
    	add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );

    It works 🙂

    hi there!

    this does solve the issue! but every time a woocommerce upgrade comes out and i update, it reverts back to the default code and i get the double pagination again.

    is there somewhere to remove it so i don’t have to keep going in to edit with each update?

    Hello, with the most recent woocommerce update, this bit of coding is no longer the same, but the double pagination appears.

    Anyone know what to modify the duplicate pagination in the new code?

    Add the following line to your themes functions.php file to remove double pagination.

    remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );

    Natasha, I’ve tried to add it to functions, but that didn’t work at all. Any ideas?

    sanket.realistic

    @sanketrealisticyahooin

    Hi
    I have customize a plugin and i not able to see the pagination below the product page i have hook in to the woocommerce-hooks.php and function.php but noting happeing.

    Regards
    Sanket

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Double Pagination and Sorting Above the Catalog’ is closed to new replies.
Skip to toolbar