Changeset 3261479
- Timestamp:
- 03/25/2025 11:21:35 AM (12 months ago)
- Location:
- doppler-for-woocommerce
- Files:
-
- 90 added
- 3 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/LICENSE.txt (added)
-
tags/1.2.4/README.txt (added)
-
tags/1.2.4/admin (added)
-
tags/1.2.4/admin/class-doppler-for-woocommerce-admin.php (added)
-
tags/1.2.4/admin/css (added)
-
tags/1.2.4/admin/css/doppler-for-woocommerce-admin.css (added)
-
tags/1.2.4/admin/css/doppler-for-woocommerce-admin.scss (added)
-
tags/1.2.4/admin/css/fonts (added)
-
tags/1.2.4/admin/css/fonts.css (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Bold.eot (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Bold.ttf (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Bold.woff (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-BoldIt.eot (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-BoldIt.ttf (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-BoldIt.woff (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Regular.eot (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Regular.ttf (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-Regular.woff (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-RegularIt.eot (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-RegularIt.ttf (added)
-
tags/1.2.4/admin/css/fonts/ProximaNova-RegularIt.woff (added)
-
tags/1.2.4/admin/img (added)
-
tags/1.2.4/admin/img/ajax-synch.gif (added)
-
tags/1.2.4/admin/img/icon-doppler-menu.png (added)
-
tags/1.2.4/admin/img/loading.gif (added)
-
tags/1.2.4/admin/img/logo-doppler.svg (added)
-
tags/1.2.4/admin/index.php (added)
-
tags/1.2.4/admin/js (added)
-
tags/1.2.4/admin/js/doppler-for-woocommerce-admin.js (added)
-
tags/1.2.4/admin/js/doppler-styles.js (added)
-
tags/1.2.4/admin/partials (added)
-
tags/1.2.4/admin/partials/doppler-for-woocommerce-settings.php (added)
-
tags/1.2.4/admin/partials/hub.php (added)
-
tags/1.2.4/admin/partials/lists.php (added)
-
tags/1.2.4/admin/partials/mapping.php (added)
-
tags/1.2.4/doppler-for-woocommerce.php (added)
-
tags/1.2.4/includes (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-ac.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-activator.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-admin-notice.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-app-connect.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-deactivator.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-dependency-check.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-i18n.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-loader.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-rest-controller.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce-visited-products.php (added)
-
tags/1.2.4/includes/class-doppler-for-woocommerce.php (added)
-
tags/1.2.4/includes/index.php (added)
-
tags/1.2.4/index.php (added)
-
tags/1.2.4/languages (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_AR.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_AR.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CL.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CL.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CO.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CO.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CR.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_CR.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_DO.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_DO.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_EC.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_EC.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_ES.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_ES.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_GT.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_GT.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_MX.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_MX.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_PE.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_PE.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_PR.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_PR.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_UY.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_UY.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_VE.mo (added)
-
tags/1.2.4/languages/doppler-for-woocommerce-es_VE.po (added)
-
tags/1.2.4/languages/doppler-for-woocommerce.pot (added)
-
tags/1.2.4/public (added)
-
tags/1.2.4/public/class-doppler-for-woocommerce-public.php (added)
-
tags/1.2.4/public/css (added)
-
tags/1.2.4/public/css/doppler-for-woocommerce-public.css (added)
-
tags/1.2.4/public/css/doppler-for-woocommerce-public.scss (added)
-
tags/1.2.4/public/index.php (added)
-
tags/1.2.4/public/js (added)
-
tags/1.2.4/public/js/doppler-for-woocommerce-public.js (added)
-
tags/1.2.4/public/partials (added)
-
tags/1.2.4/public/partials/doppler-for-woocommerce-public-display.php (added)
-
tags/1.2.4/uninstall.php (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/admin/class-doppler-for-woocommerce-admin.php (modified) (4 diffs)
-
trunk/doppler-for-woocommerce.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
doppler-for-woocommerce/trunk/README.txt
r3226554 r3261479 4 4 Tags: email marketing woocommerce 5 5 Requires at least: 4.9 6 Tested up to: 6.7. 17 Stable tag: 1.2. 36 Tested up to: 6.7.2 7 Stable tag: 1.2.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 WC requires at least: 3.3.2 11 WC tested up: 7.5.111 WC tested up: 8.7.0 12 12 13 13 Submit your WooCommerce customers and buyers to a Doppler List. 14 == 1.2.4 == 15 * Update: Add counter for synchronized contacts 14 16 == 1.2.3 == 15 17 * Update: Apply Doppler's style library -
doppler-for-woocommerce/trunk/admin/class-doppler-for-woocommerce-admin.php
r3166529 r3261479 395 395 if(!empty($buyer_list_id) && isset($last_synch['buyers'][$buyer_list_id])) { 396 396 $last_synch['buyers'][$buyer_list_id] = 0; 397 $last_synch['buyers']['counter'] = 0; 397 398 } 398 399 … … 403 404 $last_synch['contacts'][$contact_list_id]['orders'] = 0; 404 405 $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; 436 407 } 437 408 … … 862 833 $last_synch['buyers'][$list_id] = $last_id; 863 834 } 835 $last_synch['buyers']['counter'] += count($subscribers['items']); 864 836 update_option('dplrwoo_last_synch', $last_synch); 865 837 } … … 963 935 $response = json_decode($subscriber_resource->importSubscribers($list_id, $subscribers)['body']); 964 936 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; 966 939 } 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']); 969 944 update_option('dplrwoo_last_synch', $last_synch); 970 945 } -
doppler-for-woocommerce/trunk/doppler-for-woocommerce.php
r3166529 r3261479 17 17 * Plugin URI: https://www.fromdoppler.com/ 18 18 * Description: Connect your WooCommerce customers with your Doppler Lists. 19 * Version: 1.2. 319 * Version: 1.2.4 20 20 * Author: Doppler LLC 21 21 * License: GPL-2.0+ … … 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.2. 3');37 define('DOPPLER_FOR_WOOCOMMERCE_VERSION', '1.2.4'); 38 38 define('DOPPLER_FOR_WOOCOMMERCE_URL', plugin_dir_url(__FILE__)); 39 39 define('DOPPLER_FOR_WOOCOMMERCE_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.