• Resolved lucytech

    (@lucytech)


    I’m using the storefront theme.

    I need the pagination eg page 1 out of 12

    to show also under the product-categories listings.

    In my archive.php I have this code:

    <?php ??? /*** woocommerce_after_shop_loop hook.? ?** @hooked woocommerce_pagination - 10*/ ?????????????????????? do_action( 'woocommerce_after_shop_loop' ); ?? ?>

    but it is not showing.

    I tried to add this to functions.php but it didn’t help.

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

    How do I add the pagination to the end of the page?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @lucytech

    Thanks for reaching out!

    I understand that you would like to add pagination to the bottom of your product category pages using the code snippets above, however, it is not working as expected, correct?

    This is a bit of a complicated topic that would need some customization to address. Unfortunately, custom coding is not something we can assist with directly. However, I’ll keep this thread open for a bit to see if anyone from the community can lend a hand.

    If you have any other questions related to development or custom coding, don’t hesitate to reach out to some of the great resources we have available for support. The WooCommerce community is filled with talented open-source developers, and many of them are active on the channels listed below:

    Hope this helps!

    Thread Starter lucytech

    (@lucytech)

    I managed to find the code thanks.

    add_action( ‘after_setup_theme’, function() {
    add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_result_count’, 9 );
    add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
    } );

    Hi there!

    I’m glad to hear that you found a code that works well for your use case.

    In this case, I’m setting this topic as resolved for now, but feel free to get back to us anytime if you need further help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add pagination to end of archive page’ is closed to new replies.