2023] woocommerce order history within Line
Here is an example of displaying a woocommerce order history list in Line's mini-appli "LIFF", a feature briefly introduced in Chapter 1. Retrieving order history with a single Hook You can retrieve the entire order history by executing only the hook "woocommerce_account_orders_endpoint". protected function do_action() { add_filter('woocommerce_my_account_my_orders_query', ); ob_start(); do_action('woocommerce_account_orders_endpoint'); $this->main_contents .= '<h3>注文履歴</h3>'; $this->main_contents .= ob_get_clean(); $this->main_contents .= sprintf( '<h5>直近の注文履歴から最大 %s 件を表示します。</h5>', self::ORDER_NUM_LIMIT ); remove_filter('woocommerce_my_account_my_orders_query', ); return true; } Customizing Order History Retrieval Conditions To display the history of a specific user in Line's mini-application, which has a ...
Read more