How work this function?
This function allows you to display the order list on the WooCommerce account page with a shortcode.
In other words, you can add the list of orders placed by the client anywhere on your custom WooCommerce 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.
How to configure?
Once you have created the custom account page, just follow these steps:
1º Activate the function making the slider show in green
2º Click on the function box, It will display the advanced options
3º Copy the shortcode by clicking on the Copy shortcode button
4º Set the number of orders per page to be displayed in the list
5º Save the settings to apply the changes
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 custom 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 page as my account page.
Remember to save the changes.
2º The Orders list has an advanced action (View 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 after clicking on the “VIEW” button and reloading the page, the user will keep seeing the Orders list and the details of the order, you will need the addon WSHK PRO
This addon for WSHK offers a function to manage redirections for advanced actions of the WooCommerce account.
You can see how this PRO function works from here.
Video
If you want to expand the possibilities of your account page, you can do it with the following functions included in this section.

