Changeset 3090863
- Timestamp:
- 05/22/2024 12:02:23 PM (20 months ago)
- Location:
- wc-order-analytics-add-on
- Files:
-
- 6 edited
-
tags/1.0.0/includes/admin/class-oa-addon-admin-main.php (modified) (1 diff)
-
tags/1.0.0/includes/admin/pages/report-orders/class-oa-addon-report-orders.php (modified) (1 diff)
-
trunk/bfs-wc-extend-reports.php (modified) (2 diffs)
-
trunk/includes/admin/class-oa-addon-admin-main.php (modified) (1 diff)
-
trunk/includes/admin/pages/report-orders/class-oa-addon-report-orders.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-order-analytics-add-on/tags/1.0.0/includes/admin/class-oa-addon-admin-main.php
r3069966 r3090863 86 86 public static function get_order_meta_keys() { 87 87 global $wpdb; 88 $meta_keys = $wpdb->get_col( "SELECT DISTINCT(meta_key) FROM wp_wc_orders_meta WHERE order_id IN (SELECT ID FROM wp_posts WHERE post_type = 'shop_order_placehold')" ); 88 89 $meta_keys = array('billing_address', 'shipping_address', 'email_address'); 90 91 $db_meta_keys = $wpdb->get_col("SELECT DISTINCT(meta_key) FROM {$wpdb->prefix}wc_orders_meta WHERE order_id IN (SELECT ID FROM {$wpdb->prefix}posts WHERE post_type = 'shop_order_placehold')"); 92 93 $meta_keys = array_merge($meta_keys, $db_meta_keys); 94 89 95 return $meta_keys; 90 96 } -
wc-order-analytics-add-on/tags/1.0.0/includes/admin/pages/report-orders/class-oa-addon-report-orders.php
r3069966 r3090863 64 64 65 65 } 66 $billing_address = $order->get_formatted_billing_address(); 67 $billing_address = str_replace( '<br/>', "\n", $billing_address ); 68 69 $shipping_address = $order->get_formatted_shipping_address(); 70 $shipping_address = str_replace( '<br/>', "\n", $shipping_address ); 71 72 $response->data['billing_address'] = $billing_address; 73 $response->data['shipping_address'] = $shipping_address; 74 $response->data['email_address'] = $order->get_billing_email(); 66 75 return $response; 67 76 } -
wc-order-analytics-add-on/trunk/bfs-wc-extend-reports.php
r3069966 r3090863 4 4 * Plugin URI: 5 5 * Description: Include a personalized column within the WC Analytics report. 6 * Version: 1.0. 06 * Version: 1.0.1 7 7 * Requires at least: 6.3 8 8 * Tested up to: 6.4 … … 34 34 35 35 define( 'WCOAA_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); 36 define( 'WCOAA_VERSION', '1.0. 0' );36 define( 'WCOAA_VERSION', '1.0.1' ); 37 37 define( 'WCOAA_TEMPLATE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) . '/templates/' ); 38 38 define( 'WCOAA_PLUGIN_PATH', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) ); -
wc-order-analytics-add-on/trunk/includes/admin/class-oa-addon-admin-main.php
r3069966 r3090863 86 86 public static function get_order_meta_keys() { 87 87 global $wpdb; 88 $meta_keys = $wpdb->get_col( "SELECT DISTINCT(meta_key) FROM wp_wc_orders_meta WHERE order_id IN (SELECT ID FROM wp_posts WHERE post_type = 'shop_order_placehold')" ); 88 89 $meta_keys = array('billing_address', 'shipping_address', 'email_address'); 90 91 $db_meta_keys = $wpdb->get_col("SELECT DISTINCT(meta_key) FROM {$wpdb->prefix}wc_orders_meta WHERE order_id IN (SELECT ID FROM {$wpdb->prefix}posts WHERE post_type = 'shop_order_placehold')"); 92 93 $meta_keys = array_merge($meta_keys, $db_meta_keys); 94 89 95 return $meta_keys; 90 96 } -
wc-order-analytics-add-on/trunk/includes/admin/pages/report-orders/class-oa-addon-report-orders.php
r3069966 r3090863 64 64 65 65 } 66 $billing_address = $order->get_formatted_billing_address(); 67 $billing_address = str_replace( '<br/>', "\n", $billing_address ); 68 69 $shipping_address = $order->get_formatted_shipping_address(); 70 $shipping_address = str_replace( '<br/>', "\n", $shipping_address ); 71 72 $response->data['billing_address'] = $billing_address; 73 $response->data['shipping_address'] = $shipping_address; 74 $response->data['email_address'] = $order->get_billing_email(); 66 75 return $response; 67 76 } -
wc-order-analytics-add-on/trunk/readme.txt
r3070135 r3090863 4 4 Tested up to: 6.4 5 5 Requires PHP: 7.4 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 8 8
Note: See TracChangeset
for help on using the changeset viewer.