Plugin Directory

Changeset 2215856


Ignore:
Timestamp:
12/20/2019 05:09:50 PM (6 years ago)
Author:
oometrics
Message:

1.0.5

  • Fixed - conflicting OOMetrics session and WooCoomerce session interupts session connection for chat and push
Location:
oometrics/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • oometrics/trunk/inc/activity-class.php

    r2215597 r2215856  
    8282
    8383        $settings = get_option($this->option_name);
    84         if(!oo_is_filtered() && $settings['main_user'] != $this->act_uid){
     84        if(!oo_is_filtered()){
    8585            if($this->is_landed())
    8686            {
     
    125125    public function add_activity($data = array())
    126126    {
    127         global $wpdb;
    128127        // 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
    131134    }
    132135    public function update_activity($data = array())
  • oometrics/trunk/inc/oometrics-class.php

    r2215597 r2215856  
    156156
    157157  }
    158 
    159     // check if a session is stored in database for cart manipulation at the begining
    160     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     }
    170158
    171159    // registers a new sidebar
  • oometrics/trunk/inc/session-class.php

    r2215597 r2215856  
    249249        return false;
    250250    }
    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   
    252264    public function add(){
    253 
     265        $this->woo_session();
    254266        global $wpdb;
    255267        $now = time();
  • oometrics/trunk/oometrics.php

    r2215597 r2215856  
    33 * Plugin Name:       OOMetrics
    44 * 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.4
     5 * Version:           1.0.5
    66 * Author:            OOMetrics
    77 * Author URI:        https://oometrics.com
     
    2121
    2222if(!defined('OOMETRICS_PLUGIN_VERSION'))
    23     define('OOMETRICS_PLUGIN_VERSION', '1.0.4');
     23    define('OOMETRICS_PLUGIN_VERSION', '1.0.5');
    2424if(!defined('OOMETRICS_URL'))
    2525    define('OOMETRICS_URL', plugin_dir_url( __FILE__ ));
     
    169169        add_option('oometrics_templates_table','created');
    170170
    171         update_option('oometrics_core_version','103');
     171        update_option('oometrics_core_version','105');
    172172        // add_option('oometrics_debug_table','created');
    173173    }
     
    280280                update_option('oometrics_options',$settings);
    281281            }
    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);
    285284        }
    286285    }
  • oometrics/trunk/readme.txt

    r2215597 r2215856  
    55Requires at least: 4.0
    66Tested up to: 5.3
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    3737
    3838== 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 only
     39This 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
    4040
    4141== Coupons for Cart of somebody! ==
     
    138138* Fixed - Main user (administrator) activities not storing in database
    139139* 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
    140143== Upgrade Notice ==
    141144
Note: See TracChangeset for help on using the changeset viewer.