WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Double Pagination and Sorting Above the Catalog (10 posts)

  1. vickyhestyanto
    Member
    Posted 1 year ago #

    Hello,

    After I updated the newest version of woocommerce, the interface of my website is slightly changes. The link is : http://www.toko77.com/

    Above the catalog, there is a sorting about my products. How to get rid of it?
    http://www.toko77.com/wp-content/uploads/2013/03/sort.jpg

    Under the catalog, there is double pagination. How to get rid of it?
    http://www.toko77.com/wp-content/uploads/2013/03/double-pagination.jpg

    I've already looked on woocommerce settings, but it didn't help.

    Can you help me with this problem? Thank you..

    http://wordpress.org/extend/plugins/woocommerce/

  2. vickyhestyanto
    Member
    Posted 1 year ago #

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

  3. David Lano
    Member
    Posted 1 year ago #

    Hi vickyhestyanto,

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

    -David

  4. key_uk
    Member
    Posted 1 year ago #

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

  5. vickyhestyanto
    Member
    Posted 1 year ago #

    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 :)

  6. relativist
    Member
    Posted 1 year ago #

    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?

  7. relativist
    Member
    Posted 1 year ago #

    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?

  8. Natasha Cross
    Member
    Posted 1 year ago #

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

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

  9. ctrlshift.ru@gmail.com
    Member
    Posted 1 year ago #

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

  10. sanket.realistic
    Member
    Posted 7 months ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic