Changeset 3438726
- Timestamp:
- 01/13/2026 03:10:17 PM (2 months ago)
- Location:
- order-list-table-elementor-widget
- Files:
-
- 10 added
- 4 edited
-
tags/3.0.1 (added)
-
tags/3.0.1/css (added)
-
tags/3.0.1/css/custom-style.css (added)
-
tags/3.0.1/css/fontawesome.min.css (added)
-
tags/3.0.1/date-ago-function.php (added)
-
tags/3.0.1/index.php (added)
-
tags/3.0.1/order-list-table-elementor-widget.php (added)
-
tags/3.0.1/order-list-table-register.php (added)
-
tags/3.0.1/readme.txt (added)
-
tags/3.0.1/widgets-loader.php (added)
-
trunk/order-list-table-elementor-widget.php (modified) (1 diff)
-
trunk/order-list-table-register.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
order-list-table-elementor-widget/trunk/order-list-table-elementor-widget.php
r3323793 r3438726 4 4 * Description: Order List Table use for to show Woocommerce recent order list on a table, just use this Elementor Widget/Addon. 5 5 * Plugin URI: https://wpmethods.com/order-list-table-elementor-widget 6 * Version: 3.0. 06 * Version: 3.0.1 7 7 * Author: WP Methods 8 8 * Author URI: https://wpmethods.com/ -
order-list-table-elementor-widget/trunk/order-list-table-register.php
r3323680 r3438726 466 466 'default' => [ 467 467 'value' => 'fa fa-times', 468 'library' => 'solid', 469 ], 470 ] 471 ); 472 473 474 //Status Refunded Icon 475 $this->add_control( 476 'set_status_refunded_icon', 477 [ 478 'label' => esc_html__('Status Refunded Icon', 'order-list-table-elementor-widget'), 479 'type' => \Elementor\Controls_Manager::ICONS, 480 'default' => [ 481 'value' => 'fa fa-undo', 468 482 'library' => 'solid', 469 483 ], … … 1712 1726 $set_status_onhold_icon = $settings['set_status_onhold_icon']; 1713 1727 $set_status_faild_icon = $settings['set_status_faild_icon']; 1728 $set_status_refunded_icon = $settings['set_status_refunded_icon']; 1729 1714 1730 1715 1731 … … 1871 1887 <?php 1872 1888 $sl = 1; 1889 1873 1890 foreach ($customer_orders as $customer_order) { 1891 1892 // Get order object 1874 1893 $order = $is_hpos_enabled ? $customer_order : wc_get_order($customer_order->ID); 1875 if (!$order) continue; 1894 if ( ! $order ) continue; 1895 1896 // 🔥 IMPORTANT: Handle refunded orders 1897 if ( $order instanceof WC_Order_Refund ) { 1898 $order = wc_get_order( $order->get_parent_id() ); 1899 if ( ! $order ) continue; 1900 } 1901 1876 1902 $order_date = $order->get_date_created(); 1903 1904 // Customer name fallback 1905 $first_name = $order->get_billing_first_name(); 1906 $last_name = $order->get_billing_last_name(); 1907 $customer_name_display = trim($first_name . ' ' . $last_name); 1908 if ( empty($customer_name_display) ) { 1909 $customer_name_display = 'Guest'; 1910 } 1877 1911 ?> 1878 <tr style="text-align:<?php echo esc_ html($oltew_table_td_alignment); ?>;">1879 1912 <tr style="text-align:<?php echo esc_attr($oltew_table_td_alignment); ?>;"> 1913 1880 1914 <!-- Serial Number --> 1881 1915 <?php if ($hide_order_sl !== 'yes') { ?> 1882 <td class="order_sl" data-column="SL"><?php echo esc_html($sl++); ?></td> 1883 <?php }; ?> 1884 1916 <td class="order_sl" data-column="SL"> 1917 <?php echo esc_html($sl++); ?> 1918 </td> 1919 <?php } ?> 1920 1885 1921 <!-- Customer Name --> 1886 1922 <?php if ($hide_customer_title !== 'yes') { ?> 1887 <td class="customer_name" data-column="<?php echo esc_html($customer_name); ?>">1923 <td class="customer_name" data-column="<?php echo esc_attr($customer_name); ?>"> 1888 1924 <div class="body_content"> 1889 <div class="order_list_icon"><?php \Elementor\Icons_Manager::render_icon($customer_list_icon, ['aria-hidden' => 'true']); ?></div> 1890 <?php echo esc_html($order->get_billing_first_name() . ' ' . $order->get_billing_last_name() ?: 'Guest'); ?> 1925 <div class="order_list_icon"> 1926 <?php \Elementor\Icons_Manager::render_icon( 1927 $customer_list_icon, 1928 ['aria-hidden' => 'true'] 1929 ); ?> 1930 </div> 1931 <?php echo esc_html($customer_name_display); ?> 1891 1932 </div> 1892 1933 </td> 1893 <?php } ;?>1934 <?php } ?> 1894 1935 1895 1936 <!-- Sell Time --> … … 1940 1981 <span class="st_cancelled status_odd"><span class="status_icon"><?php \Elementor\Icons_Manager::render_icon($set_status_faild_icon, ['aria-hidden' => 'true'])?></span> Failed</span> 1941 1982 <?php } 1983 1984 //Refunded Status 1985 if ( $order->get_total_refunded() > 0 && $order_status !== 'refunded' ) { ?> 1986 <span class="st_cancelled status_odd"><span class="status_icon"><?php \Elementor\Icons_Manager::render_icon($set_status_refunded_icon, ['aria-hidden' => 'true'])?></span> Refunded</span> 1987 <?php } 1988 1989 1942 1990 ?> 1943 1991 </td> -
order-list-table-elementor-widget/trunk/readme.txt
r3323793 r3438726 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 3.0. 07 Stable tag: 3.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 70 70 71 71 == Changelog == 72 = 2.0.0 (2026-01-13) = 73 - Fixed Order Status Refunded Issue 74 - Fixed some minor issues 75 72 76 = 2.0.0 (2025-01-02) = 73 77 - Fixed not showing order list some website. -
order-list-table-elementor-widget/trunk/widgets-loader.php
r3323793 r3438726 8 8 final class Plugin { 9 9 10 const VERSION = '3.0. 0';10 const VERSION = '3.0.1'; 11 11 const MINIMUM_ELEMENTOR_VERSION = '3.7.0'; 12 12 const MINIMUM_PHP_VERSION = '7.4';
Note: See TracChangeset
for help on using the changeset viewer.