Changeset 2211499
- Timestamp:
- 12/13/2019 10:57:29 AM (6 years ago)
- Location:
- oometrics/trunk
- Files:
-
- 5 edited
-
assets/css/admin.css (modified) (1 diff)
-
inc/ajax-class.php (modified) (5 diffs)
-
inc/session-class.php (modified) (7 diffs)
-
oometrics.php (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oometrics/trunk/assets/css/admin.css
r2211190 r2211499 81 81 .oo-dashboard-sidebar-footer{position: absolute;left: 0;bottom: 0;width: 100%;padding: 30px 15px 20px 15px} 82 82 .oo-dashboard-footer{width: 100%;padding: 0;display: inline-block;} 83 .oo-dashboard-sidebar-body .oo-session-list{overflow-y: auto;height: calc( 100vh - 268px ); }83 .oo-dashboard-sidebar-body .oo-session-list{overflow-y: auto;height: calc( 100vh - 268px );padding-bottom: 5em} 84 84 .reports .oo-dashboard-sidebar-body .oo-session-list{overflow-y: auto;height: calc( 100vh - 245px );} 85 85 -
oometrics/trunk/inc/ajax-class.php
r2211190 r2211499 457 457 $session_key = $session_obj['key_hash']; 458 458 $session_content = $session_obj['session']; 459 $cart_data = unserialize($session_content['cart']); 460 461 $totals = unserialize($session_content['cart_totals']); 462 $cart['cart_items'] = (empty($cart_data)) ? 0 : count($cart_data); 463 $cart['cart_total'] = wc_price($totals['total']); 459 $cart['cart_items'] = 0; 460 $cart['cart_totals'] = 0; 461 if(!empty($session_content['cart']) && !empty($session_content['cart_totals'])){ 462 $cart_data = unserialize($session_content['cart']); 463 464 $totals = unserialize($session_content['cart_totals']); 465 $cart['cart_items'] = (empty($cart_data)) ? 0 : count($cart_data); 466 $cart['cart_total'] = wc_price($totals['total']); 467 } 464 468 465 469 if($session->ses_uid == 0 ){ … … 478 482 $cart['purchased_total'] = wc_price(wc_get_customer_total_spent( $session->ses_uid )); 479 483 } 484 480 485 $chat = new OOChat(); 481 486 $rels = $chat->get_conversations(true,array('ses_id'=>$ses_id)); … … 719 724 $session_key = $session_obj['key_hash']; 720 725 $session_content = $session_obj['session']; 721 $session_cart = unserialize($session_content['cart']);726 $session_cart = empty($session_content['cart']) ? null : unserialize($session_content['cart']); 722 727 723 728 $cart_item_keys = []; … … 729 734 730 735 731 736 if($pid_str == ',' || empty($pid_str)){ 737 738 foreach ($cart_item_keys as $key => $cart_item_key) { 739 // if(!in_array($cart_item_key,$keys)){ 740 unset($session_cart[$cart_item_key]); 741 // } 742 } 743 $result = $ses->update_actual_cart($session_key,$data); 744 wp_send_json( array('status'=>$result) ); 745 } 732 746 $pids = explode(',',$pid_str); 733 747 $vids = explode(',',$vid_str); … … 784 798 $status = 0; 785 799 } 800 786 801 wp_send_json( array('status'=>$status) ); 787 802 } -
oometrics/trunk/inc/session-class.php
r2211190 r2211499 106 106 $this->ses_debug = $session->ses_debug; 107 107 $this->ses_expired = 0; 108 // session_id($session->ses_id);109 108 return $this; 110 109 } … … 297 296 $wpdb->insert($this->table,$data); 298 297 $this->ses_id = $wpdb->insert_id; 299 // session_id($this->ses_id); 298 300 299 return $this; 301 300 } … … 418 417 "DELETE FROM $this->table 419 418 WHERE ses_value <= '%d' && ses_date < '%d'", 420 array(0,$now - 15)419 array(0,$now - 20) 421 420 ) 422 421 ); 423 422 } 423 424 $wpdb->query( 425 $wpdb->prepare( 426 "DELETE FROM $this->table 427 WHERE ses_resolution IS NULL && ses_date < '%d'", 428 array($now - 30) 429 ) 430 ); 424 431 425 432 return true; … … 701 708 $wpdb->prepare( 702 709 "SELECT * FROM $this->table 703 WHERE ses_expired = '%d' AND ses_uid != '%d' AND ses_last_act > '%d' 710 WHERE ses_expired = '%d' AND ses_uid != '%d' AND ses_last_act > '%d' AND ses_value >= '%d' AND ses_resolution IS NOT NULL 704 711 ORDER BY $order_by DESC", 705 array(0,$this->receiver_id,$diff )712 array(0,$this->receiver_id,$diff,0) 706 713 ) 707 714 ); … … 803 810 $wpdb->prepare( 804 811 "SELECT COUNT(*) FROM $this->table 805 WHERE ses_expired = '%d' AND ses_uid != '%d' AND ses_last_act > '%d' 812 WHERE ses_expired = '%d' AND ses_uid != '%d' AND ses_last_act > '%d' AND ses_value >= '%d' AND ses_resolution IS NOT NULL 806 813 ORDER BY ses_last_act DESC", 807 array(0,$this->receiver_id,$diff )814 array(0,$this->receiver_id,$diff,0) 808 815 ) 809 816 ); … … 818 825 $wpdb->prepare( 819 826 "SELECT COUNT(*) FROM $table 820 WHERE act_date > '%d'", 827 WHERE act_date > '%d' 828 ", 821 829 $day 822 830 ) … … 831 839 $wpdb->prepare( 832 840 "SELECT COUNT(*) FROM $this->table 833 WHERE ses_date > '%d' 834 GROUP BY ses_ip 841 WHERE ses_date > '%d' AND ses_value > '%d' AND ses_resolution IS NOT NULL 835 842 ORDER BY ses_last_act DESC", 836 time() - 86400843 array(time() - 86400,0) 837 844 ) 838 845 ); -
oometrics/trunk/oometrics.php
r2211190 r2211499 245 245 'chat_interval' => 2000, 246 246 'session_interval' => 5000, 247 'session_lifetime' => ini_get("session.gc_maxlifetime") ? ini_get("session.gc_maxlifetime") : 600,247 'session_lifetime' => 300, //ini_get("session.gc_maxlifetime") ? ini_get("session.gc_maxlifetime") : 600, 248 248 'session_value_base' => 15, 249 249 'clean_zero_values' => 'yes', -
oometrics/trunk/readme.txt
r2211197 r2211499 1 === OOMetrics - WooCommerce Analytics, Chats and Live Interactions===1 === WooCommerce Live Analytics, Chat and CRM All in One === 2 2 Contributors: oometrics 3 Donate link: http s://oometrics.com/donate3 Donate link: http://oometrics.com/donate 4 4 Tags: ecommerce, e-commerce, Analytics, chat, CRM, woocommerce live, statistics, customer relationship, woocommerce 5 5 Requires at least: 4.0 … … 14 14 == Description == 15 15 16 Make WooCommerce Live 16 Turn your WooCommerce Store into a LIVE one! OOMetrics captures every activity and gives you tools to offer something; right away! 17 18 19 = Make WooCommerce Live = 17 20 You can observe your store and customer activities with powerfull tools to communicate and offer something right away! Even for specific customer only. 18 21 19 Push Stuff to The Session, Remotely, Individually 22 = Push Stuff to The Session, Remotely, Individually = 20 23 You can push Discounts, Coupons and Popups to any session instantly and for each session INDIVIDUALLY. Only the customer selected will see the price changes and other features! You can even pop a chat. 21 24 22 All in ONE 23 We designed a software which provides a solution! Powerful features, modern approach and quality UI/UX are parts of it! You have your store statistics, customer activities and a chat panel all in one page to give you speed.25 = All in ONE = 26 We designed a software which provides a solution! Powerful features, modern approach and quality UI/UX are parts of it! You have your WooCommerce store statistics, customer activities and a push panel all in one page to give you speed. Customr digital info, shopping info and activities alongside powerfull chat and instant push system will give you the tools and speed to interact. Mix your customer activity, shopping history and dynamic content to increase your customer retention. 24 27 25 Manipulate Cart Content Remotely 26 You have the ability to manipulate customer cart content, you can edit, add or delete items in order to assist or give special offers dynamically. 28 = Manipulate Cart Content Remotely = 29 You have the ability to manipulate customer cart content, you can edit, add or delete items in order to assist or give special offers dynamically. As mentioned before you can apply sales prices for each product and customer , apply coupon to customer cart and you can always send the most related pop! 27 30 28 Reports and Analytics 29 OOMetrics will keep the data for every customer so you can look back by using reports page. 31 = WooCommerce Reports and Analytics = 32 OOMetrics is a Realtime WooCommerce Analytics with the ability to store the data so you can look back by using reports page. These informations are: Which products the customer landed, visited and what did he/she do (added to cart, visit specific page and ...), shopping history, which pop up delivered and which one clicked, which sessions are the successfull one and ... 33 34 == Powerfull UI/UX == 35 Storing user activity is serious and we optimized it. Changing tab, leaving the window and such event is taken into account on storing data and activity accuracy. All the features are accessible on only one page! 30 36 31 37 32 Key Features: 38 == Key Features: == 33 39 34 40 * Store Analytics + Website Statistics … … 50 56 51 57 Automatic installation is the easiest option -- WordPress will handles the file transfer, and you won’t need to leave your web browser. To do an automatic install of OOMetrics, log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New.” 52 58 53 59 In the search field type “OOMetrics,” then click “Search Plugins.” Once you’ve found us, you can view details about it such as the point release, rating, and description. Most importantly of course, you can install it by! Click “Install Now,” and WordPress will take it from there. 54 60 … … 60 66 * Configure your settings via new dashboard menu item "OOMetrics" > Settings 61 67 62 68 PLEASE make sure to configure OOMetrics first (Navigation: WP Dashboard / OOMetrics / Settings) 63 69 == Frequently Asked Questions == 64 70 … … 67 73 Sure, OOMetrics is compatible with GA 68 74 69 = How accurate is the data = 75 = How accurate is the data = 70 76 71 77 We will clean the data and block most bots and crawlers and remove unneccessary visits 72 78 There is an option in settings. 73 79 74 80 75 81 76 82 == Screenshots == 77 83 78 84 1. OOMetrics main dashboard 79 2. Push Types 85 2. Push Types 80 86 3. Push Type: Product Sale Options 81 87 4. Push Type: PopUp Options
Note: See TracChangeset
for help on using the changeset viewer.