Plugin Directory

Changeset 2108754


Ignore:
Timestamp:
06/19/2019 09:48:12 AM (7 years ago)
Author:
ghostmonitor
Message:

AUTOMATED COMMIT, PLUGIN VERSION: 1.12.9

Location:
ghostmonitor
Files:
79 added
7 edited

Legend:

Unmodified
Added
Removed
  • ghostmonitor/trunk/config.json

    r2088420 r2108754  
    44    "settingsUrl": "https://api.recart.com/tracking/v2/settings/",
    55    "cdnUrl": "https://cdn.ghostmonitor.com",
    6     "version": "v1.12.8",
     6    "version": "v1.12.9",
    77    "logentriesToken": "d3695c56-67af-4c86-8c7d-26c6c252987b",
    88    "env": "production"
  • ghostmonitor/trunk/includes/class-wc-ghostmonitor.php

    r2088420 r2108754  
    209209        global $woocommerce;
    210210
     211        if (!$woocommerce->cart) {
     212            return false;
     213        }
     214
    211215        $woocommerce->cart->empty_cart();
    212216
     
    257261            return false;
    258262        }
    259         $ghostmonitor_data = $this->collect_ghostmonitor_data_from_order($order_id, $gm_session_data['session_id']);
     263
    260264        $this->gm_helper->logDebug(array(
    261265            'ACTION STARTED: woocommerce_order_status_processing',
     
    263267            $gm_session_data,
    264268        ));
    265         $this->gm_helper->sendGhostData($ghostmonitor_data);
    266269        $this->gm_helper->sendConversionData($gm_session_data);
     270
     271        $ghostmonitor_data = $this->collect_ghostmonitor_data_from_order($order_id, $gm_session_data['session_id']);
     272        if ($ghostmonitor_data) {
     273            $this->gm_helper->sendGhostData($ghostmonitor_data);
     274        } else {
     275            $this->gm_helper->log('Could not collect ghostmonitor_data in send_conversion()', 'warning');
     276        }
    267277    }
    268278
     
    303313        global $wp_version;
    304314
    305         $is_cart_empty = WC()->cart->cart_contents_count > 0 ? false : true;
     315        if (WC()->cart && WC()->cart->cart_contents_count > 0) {
     316            $is_cart_empty = false;
     317        } else $is_cart_empty = true;
    306318
    307319        $debug_lines = '';
     
    331343        $order = $order->get_order($order_id);
    332344
     345        if (!$order) {
     346            return false;
     347        }
     348
    333349        $order_items = $order->get_items();
    334350
     
    338354            $product = new WC_Product_Factory();
    339355            $product = $product->get_product($i['variation_id'] == '0' ? $i['product_id'] : $i['variation_id']);
     356
     357            if (!$product) {
     358                continue;
     359            }
    340360
    341361            $thumb_id = get_post_thumbnail_id($product->get_id());
     
    402422        if ($gm_session_id === false) {
    403423            $this->gm_helper->log('Could not find ghostmonitor_session_id cookie in send_cart_data()', 'warning');
    404 
     424            return false;
     425        }
     426
     427        if (!WC()->cart) {
    405428            return false;
    406429        }
    407430
    408431        foreach (WC()->cart->get_cart() as $cart_item_key => $cart_item_data) {
    409 
    410432            $gm_cart_item = array();
    411433
     
    661683      $discount_code = $url_subitems[1];
    662684 
    663       if (!WC()->cart->is_empty() && !WC()->cart->has_discount($discount_code)) {
     685      if ($WC()->cart && !WC()->cart->is_empty() && !WC()->cart->has_discount($discount_code)) {
    664686          WC()->cart->add_discount($discount_code);
    665687      } else {
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/autoload.php

    r2088420 r2108754  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881::getLoader();
     7return ComposerAutoloaderInitffea62b8c134ec6dbcc1aefd1954f7d9::getLoader();
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/autoload_real.php

    r2088420 r2108754  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881
     5class ComposerAutoloaderInitffea62b8c134ec6dbcc1aefd1954f7d9
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInitffea62b8c134ec6dbcc1aefd1954f7d9', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInitffea62b8c134ec6dbcc1aefd1954f7d9', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInitacc2a867c879dc2a47f6e13449410881::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInitacc2a867c879dc2a47f6e13449410881::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequireacc2a867c879dc2a47f6e13449410881($fileIdentifier, $file);
     56            composerRequireffea62b8c134ec6dbcc1aefd1954f7d9($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequireacc2a867c879dc2a47f6e13449410881($fileIdentifier, $file)
     63function composerRequireffea62b8c134ec6dbcc1aefd1954f7d9($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/autoload_static.php

    r2088420 r2108754  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInitacc2a867c879dc2a47f6e13449410881
     7class ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9
    88{
    99    public static $files = array (
     
    4646    {
    4747        return \Closure::bind(function () use ($loader) {
    48             $loader->prefixLengthsPsr4 = ComposerStaticInitacc2a867c879dc2a47f6e13449410881::$prefixLengthsPsr4;
    49             $loader->prefixDirsPsr4 = ComposerStaticInitacc2a867c879dc2a47f6e13449410881::$prefixDirsPsr4;
    50             $loader->prefixesPsr0 = ComposerStaticInitacc2a867c879dc2a47f6e13449410881::$prefixesPsr0;
     48            $loader->prefixLengthsPsr4 = ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9::$prefixLengthsPsr4;
     49            $loader->prefixDirsPsr4 = ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9::$prefixDirsPsr4;
     50            $loader->prefixesPsr0 = ComposerStaticInitffea62b8c134ec6dbcc1aefd1954f7d9::$prefixesPsr0;
    5151
    5252        }, null, ClassLoader::class);
  • ghostmonitor/trunk/readme.txt

    r2088420 r2108754  
    44Requires at least: 3.9
    55Tested up to: 5.0.0
    6 Stable tag: 1.12.8
     6Stable tag: 1.12.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • ghostmonitor/trunk/woocommerce-ghostmonitor.php

    r2088420 r2108754  
    66 * Author: Ghostmonitor INC
    77 * Author URI: http://www.recart.com
    8  * Version: v1.12.8
     8 * Version: v1.12.9
    99 */
    1010
     
    4444        global $wp_version;
    4545
    46         $version = 'v1.12.8';
     46        $version = 'v1.12.9';
    4747
    4848        $discount_enabled = get_option('woocommerce_enable_coupons') === 'yes' ? 'true' : 'false';
Note: See TracChangeset for help on using the changeset viewer.