Plugin Directory

Changeset 2088420


Ignore:
Timestamp:
05/15/2019 03:29:14 PM (7 years ago)
Author:
ghostmonitor
Message:

AUTOMATED COMMIT, PLUGIN VERSION: 1.12.8

Location:
ghostmonitor
Files:
79 added
7 edited

Legend:

Unmodified
Added
Removed
  • ghostmonitor/trunk/config.json

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

    r2017796 r2088420  
    218218                $woocommerce->cart->add_to_cart($item['productId'], $item['qty']);
    219219            }
    220         }
    221 
    222         if (isset($_GET['ghostmonitor_session_id'])) {
    223             $validation = $this->gm_helper->validateDiscount($_GET['ghostmonitor_session_id']);
    224         } else {
    225             $validation = array('valid' => false);
    226         }
    227 
    228         if ($validation['valid'] && get_option('woocommerce_enable_coupons') === 'yes') {
    229 
    230             $coupon = new WC_Coupon($validation['discount_code']);
    231 
    232             if (!$coupon->is_valid()) {
    233                 # Add discount
    234                 $coupon = array(
    235                     'post_title' => $validation['discount_code'],
    236                     'post_type' => 'shop_coupon',
    237                     'post_status' => 'publish',
    238                     'post_author' => 1,
    239                     'post_excerpt' => $validation['discount_name'],
    240                 );
    241 
    242                 $new_coupon_id = wp_insert_post($coupon);
    243 
    244                 // Add meta
    245                 update_post_meta($new_coupon_id, 'discount_type', $validation['discount_type']);
    246                 update_post_meta($new_coupon_id, 'coupon_amount', $validation['amount']);
    247                 update_post_meta($new_coupon_id, 'individual_use', 'no');
    248                 update_post_meta($new_coupon_id, 'product_ids', '');
    249                 update_post_meta($new_coupon_id, 'exclude_product_ids', '');
    250                 update_post_meta($new_coupon_id, 'usage_limit', '1');
    251                 update_post_meta($new_coupon_id, 'expiry_date', date('Y-m-d', strtotime('+14 days')));
    252                 update_post_meta($new_coupon_id, 'apply_before_tax', 'no');
    253                 update_post_meta($new_coupon_id, 'free_shipping', 'no');
    254             }
    255 
    256             $woocommerce->cart->add_discount(sanitize_text_field($validation['discount_code']));
    257220        }
    258221
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/autoload.php

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

    r2017796 r2088420  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit8061d4c11e67610451f7b9af0fcd442e
     5class ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit8061d4c11e67610451f7b9af0fcd442e', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit8061d4c11e67610451f7b9af0fcd442e', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInitacc2a867c879dc2a47f6e13449410881', '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\ComposerStaticInit8061d4c11e67610451f7b9af0fcd442e::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInitacc2a867c879dc2a47f6e13449410881::getInitializer($loader));
    3131        } else {
    3232            $map = require __DIR__ . '/autoload_namespaces.php';
     
    4949
    5050        if ($useStaticLoader) {
    51             $includeFiles = Composer\Autoload\ComposerStaticInit8061d4c11e67610451f7b9af0fcd442e::$files;
     51            $includeFiles = Composer\Autoload\ComposerStaticInitacc2a867c879dc2a47f6e13449410881::$files;
    5252        } else {
    5353            $includeFiles = require __DIR__ . '/autoload_files.php';
    5454        }
    5555        foreach ($includeFiles as $fileIdentifier => $file) {
    56             composerRequire8061d4c11e67610451f7b9af0fcd442e($fileIdentifier, $file);
     56            composerRequireacc2a867c879dc2a47f6e13449410881($fileIdentifier, $file);
    5757        }
    5858
     
    6161}
    6262
    63 function composerRequire8061d4c11e67610451f7b9af0fcd442e($fileIdentifier, $file)
     63function composerRequireacc2a867c879dc2a47f6e13449410881($fileIdentifier, $file)
    6464{
    6565    if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • ghostmonitor/trunk/includes/ghostmonitor_helper/vendor/composer/autoload_static.php

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

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

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