Support » Plugin: WooCommerce » Double Pagination and Sorting Above the Catalog

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter vickyhestyanto

    (@vickyhestyanto)

    GOT IT! Just change a little bit code on woocommerce-hooks.php

    David Lano

    (@davidlano)

    Hi vickyhestyanto,

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

    -David

    key_uk

    (@key_uk)

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

    Thread Starter vickyhestyanto

    (@vickyhestyanto)

    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 ‘Double Pagination and Sorting Above the Catalog’ is closed to new replies.