Plugin Directory

Changeset 3261479


Ignore:
Timestamp:
03/25/2025 11:21:35 AM (12 months ago)
Author:
fromdoppler
Message:

update plugin version 1.2.4

Location:
doppler-for-woocommerce
Files:
90 added
3 edited

Legend:

Unmodified
Added
Removed
  • doppler-for-woocommerce/trunk/README.txt

    r3226554 r3261479  
    44Tags: email marketing woocommerce
    55Requires at least: 4.9
    6 Tested up to: 6.7.1
    7 Stable tag: 1.2.3
     6Tested up to: 6.7.2
     7Stable tag: 1.2.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 3.3.2
    11 WC tested up: 7.5.1
     11WC tested up: 8.7.0
    1212
    1313Submit your WooCommerce customers and buyers to a Doppler List.
     14== 1.2.4 ==
     15* Update: Add counter for synchronized contacts
    1416== 1.2.3 ==
    1517* Update: Apply Doppler's style library
  • doppler-for-woocommerce/trunk/admin/class-doppler-for-woocommerce-admin.php

    r3166529 r3261479  
    395395            if(!empty($buyer_list_id) && isset($last_synch['buyers'][$buyer_list_id])) {
    396396                $last_synch['buyers'][$buyer_list_id] = 0;
     397                $last_synch['buyers']['counter'] = 0;
    397398            }
    398399
     
    403404                $last_synch['contacts'][$contact_list_id]['orders'] = 0;   
    404405                $last_synch['contacts'][$contact_list_id]['users'] = 0;
    405             }
    406            
    407             update_option('dplrwoo_last_synch', $last_synch);
    408         } else {
    409             return false;
    410         }
    411     }
    412 
    413     /**
    414      * Get the WooCommerce customer's fields.
    415      */
    416     public function sync_all_buyers()
    417     {
    418         $last_synch = get_option('dplrwoo_last_synch');
    419        
    420         //Synch!
    421         if(!empty($last_synch)) {
    422            
    423             //bayers reset
    424             $buyer_list_id = get_option('dplr_subscribers_list')['buyers'];
    425 
    426             if(!empty($buyer_list_id) && isset($last_synch['buyers'][$buyer_list_id])) {
    427                 $last_synch['buyers'][$buyer_list_id] = 0;
    428             }
    429 
    430             //contacts reset
    431             $contact_list_id = get_option('dplr_subscribers_list')['contacts'];
    432 
    433             if(!empty($contact_list_id) && isset($last_synch['contacts'][$contact_list_id])) {
    434                 $last_synch['contacts'][$contact_list_id]['orders'] = 0;   
    435                 $last_synch['contacts'][$contact_list_id]['users'] = 0;
     406                $last_synch['contacts']['counter'] = 0;
    436407            }
    437408           
     
    862833                $last_synch['buyers'][$list_id] = $last_id;   
    863834            }
     835            $last_synch['buyers']['counter'] += count($subscribers['items']);
    864836            update_option('dplrwoo_last_synch', $last_synch);
    865837        }
     
    963935        $response = json_decode($subscriber_resource->importSubscribers($list_id, $subscribers)['body']);
    964936        if(!empty($response->createdResourceId)) {
    965             if(!empty($last_order_id)) { $last_synch['contacts'][$list_id]['orders'] = $last_order_id;
     937            if(!empty($last_order_id)){
     938                $last_synch['contacts'][$list_id]['orders'] = $last_order_id;
    966939            }   
    967             if(!empty($last_user_id)) { $last_synch['contacts'][$list_id]['users'] = $last_user_id;
    968             }
     940            if(!empty($last_user_id)) {
     941                $last_synch['contacts'][$list_id]['users'] = $last_user_id;
     942            }
     943            $last_synch['contacts']['counter'] += count($subscribers['items']);
    969944            update_option('dplrwoo_last_synch', $last_synch);
    970945        }
  • doppler-for-woocommerce/trunk/doppler-for-woocommerce.php

    r3166529 r3261479  
    1717 * Plugin URI:        https://www.fromdoppler.com/
    1818 * Description:       Connect your WooCommerce customers with your Doppler Lists.
    19  * Version:           1.2.3
     19 * Version:           1.2.4
    2020 * Author:            Doppler LLC
    2121 * License:           GPL-2.0+
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.2.3');
     37define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.2.4');
    3838define('DOPPLER_FOR_WOOCOMMERCE_URL', plugin_dir_url(__FILE__));
    3939define('DOPPLER_FOR_WOOCOMMERCE_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.