This function allows you to display the order list on the my account page with a shortcode. In other words, you can add the list of orders placed by the client anywhere on the My Account page, without the need to use the shortcode that WooCommerce has by default. You can also control the number of orders shown per page, by default they are 15, but you can make them all show on the same page or for example if the amount added is 6 and you have 18 orders, then the orders will be shown in the list. from 6 to 6 being able to navigate between 3 pages in the order list.
Once you have created the custom account page, just follow these steps:
1º Activate the function making the slider show in green
2º It displays the advanced options of the function
3º Copy the shortcode by clicking on the button
4º Set the number of orders per page to be displayed in the list
5º Scroll to the end, where you will find the button to save the settings
For a correct use of the function, 2 important factors must be taken into account:
1º This shortcode will only work if you are on an account page, so your new account page must be assigned as the WooCommerce account page. To assign it, you just have to go to the WooCommerce settings, access the Advanced tab and select the new page as my account page. Remember to save the changes.
2º The list of orders has an advanced action (See orders) which is accessed by clicking on the “VIEW” button that appears in each order. When you click on the “VIEW” button using this shortcode, a page refresh occurs and after the new load the order details will appear just below the order list. So that after clicking on the “VIEW” button and reloading the page, the user will keep seeing the list of orders and the details of the order, you will need the addon Woo Shortcodes Kit PRO, which offers a function to manage redirections for advanced actions of the WooCommerce account.
You can see how this PRO function works from here.
If you want to expand the possibilities of your account page, you can do it with the following functions included in this section.