Changeset 2215856
- Timestamp:
- 12/20/2019 05:09:50 PM (6 years ago)
- Location:
- oometrics/trunk
- Files:
-
- 1 deleted
- 5 edited
-
assets/images/chat.svg (deleted)
-
inc/activity-class.php (modified) (2 diffs)
-
inc/oometrics-class.php (modified) (1 diff)
-
inc/session-class.php (modified) (1 diff)
-
oometrics.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oometrics/trunk/inc/activity-class.php
r2215597 r2215856 82 82 83 83 $settings = get_option($this->option_name); 84 if(!oo_is_filtered() && $settings['main_user'] != $this->act_uid){84 if(!oo_is_filtered()){ 85 85 if($this->is_landed()) 86 86 { … … 125 125 public function add_activity($data = array()) 126 126 { 127 global $wpdb;128 127 // echo $this->table.'ssssss'; 129 $wpdb->insert($this->table,$data); 130 $this->act_id = $wpdb->insert_id; 128 if($settings['main_user'] != $this->act_uid){ 129 global $wpdb; 130 $wpdb->insert($this->table,$data); 131 $this->act_id = $wpdb->insert_id; 132 } 133 131 134 } 132 135 public function update_activity($data = array()) -
oometrics/trunk/inc/oometrics-class.php
r2215597 r2215856 156 156 157 157 } 158 159 // check if a session is stored in database for cart manipulation at the begining160 public function woo_session(){161 if ( null === WC()->session ) {162 $session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );163 WC()->session = new $session_class();164 WC()->session->init();165 WC()->session->set_customer_session_cookie( true );166 } else {167 WC()->session->set_customer_session_cookie( true );168 }169 }170 158 171 159 // registers a new sidebar -
oometrics/trunk/inc/session-class.php
r2215597 r2215856 249 249 return false; 250 250 } 251 251 252 // check if a session is stored in database for cart manipulation at the begining 253 public function woo_session(){ 254 if ( null === WC()->session ) { 255 $session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' ); 256 WC()->session = new $session_class(); 257 WC()->session->init(); 258 WC()->session->set_customer_session_cookie( true ); 259 } else { 260 WC()->session->set_customer_session_cookie( true ); 261 } 262 } 263 252 264 public function add(){ 253 265 $this->woo_session(); 254 266 global $wpdb; 255 267 $now = time(); -
oometrics/trunk/oometrics.php
r2215597 r2215856 3 3 * Plugin Name: OOMetrics 4 4 * Description: WooCommerce Smart Metrics and Live Customer Channel; Set discounts, coupons and pop ups remotely and individually while you are watching statistics! 5 * Version: 1.0. 45 * Version: 1.0.5 6 6 * Author: OOMetrics 7 7 * Author URI: https://oometrics.com … … 21 21 22 22 if(!defined('OOMETRICS_PLUGIN_VERSION')) 23 define('OOMETRICS_PLUGIN_VERSION', '1.0. 4');23 define('OOMETRICS_PLUGIN_VERSION', '1.0.5'); 24 24 if(!defined('OOMETRICS_URL')) 25 25 define('OOMETRICS_URL', plugin_dir_url( __FILE__ )); … … 169 169 add_option('oometrics_templates_table','created'); 170 170 171 update_option('oometrics_core_version','10 3');171 update_option('oometrics_core_version','105'); 172 172 // add_option('oometrics_debug_table','created'); 173 173 } … … 280 280 update_option('oometrics_options',$settings); 281 281 } 282 $OOMetrics = new OOMetrics(); 283 add_action('init',array($OOMetrics,'init'),100); 284 add_action( 'woocommerce_init', array($OOMetrics,'woo_session') ); 282 283 add_action('init',array(new OOMetrics(),'init'),100); 285 284 } 286 285 } -
oometrics/trunk/readme.txt
r2215597 r2215856 5 5 Requires at least: 4.0 6 6 Tested up to: 5.3 7 Stable tag: 1.0. 47 Stable tag: 1.0.5 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 37 37 38 38 == Push Sale Price, Specifically or Globally == 39 This is absolutely odd! You can change product prices dynamically! Sometimes it is obvious from user nehavior that the price is an issue and you can do something about it! so with OOMetrics, you can do it right away or apply a global sale price to whole store for this specific session only39 This is absolutely odd! You can change product prices dynamically! Sometimes it is obvious from user behavior that the price is an issue and you can do something about it! so with OOMetrics, you can do it right away or apply a global sale price to whole store for this specific session only 40 40 41 41 == Coupons for Cart of somebody! == … … 138 138 * Fixed - Main user (administrator) activities not storing in database 139 139 * Dev - Customer profile tab info 140 141 = 1.0.5 = 142 * Fixed - conflicting OOMetrics session and WooCoomerce session interupts session connection for chat and push 140 143 == Upgrade Notice == 141 144
Note: See TracChangeset
for help on using the changeset viewer.