Support » Plugin: WooCommerce » Woocommerce Custom Endpoint with pagination 404

  • Resolved odedta

    (@odedta)


    Hello,

    I have created a custom endpoint called Customers, in that page I create a new WP_Query to pull all the Customers and add pagination, when I get to the second page I get a 404, any idea why?
    1. I already saved permalinks.
    2. My URL looks like this /my-account/customers/page/2

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there!

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    1. WooCommerce Slack Community: https://woocommerce.com/community-slack/
    2. Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    Hello,
    It seems that when I changed the customers endpoint to my-customers it worked, I have no idea why “customers” didn’t work.

    I have another question regarding my-account orders page, is it possible for admin to view all orders on that page? I tried looking in google for some help with that but couldn’t find anything.
    Thanks

    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    I’m glad you solved it!

    I have another question regarding my-account orders page, is it possible for admin to view all orders on that page? I tried looking in google for some help with that but couldn’t find anything.

    I’m not quite sure what you’re looking for – do you want admins to view customer specific My Account pages to see customer orders?

    Hello Hannah,
    I wanted to create a frontend interface for admin to view all shop orders in a table, after some google search that came up empty and quite a few tries I gave up and ditched Woocommerce “my account” area.
    I created my own page to view the orders and implemented Datatables.js for that, here’s how it looks:

    This was very painful to achieve using the wp_query for pagination and searchable content in my-account area.

    Thanks anyway!

    • This reply was modified 3 months, 2 weeks ago by  odedta.
    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Wow – that’s really neat to see, thank you for sharing!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.