Changeset 1858014
- Timestamp:
- 04/13/2018 05:53:38 PM (8 years ago)
- Location:
- wp-smsru/trunk
- Files:
-
- 3 edited
-
admin/classes/class-smsru-start-wc.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
-
wp-smsru.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-smsru/trunk/admin/classes/class-smsru-start-wc.php
r1787519 r1858014 34 34 $this->general_settings = get_option('smsru_settings'); 35 35 $this->wc_settings = get_option('smsru_wc_event_settings'); 36 36 37 37 if (isset($this->general_settings['api_id'])) { 38 38 $this->smsru = new SMSRU($this->general_settings['api_id']); … … 99 99 $data->text = $event['message']; 100 100 } 101 102 $this->$type[$func] = (object)array_merge((array)$this->data, (array)$data); 101 102 $result_data = (object)array_merge((array)$this->data, (array)$data); 103 104 switch($type) { 105 case 'current_admin_event'; 106 $this->current_admin_event[$func] = $result_data; 107 break; 108 case 'custom_wc_event_variable'; 109 $this->custom_wc_event_variable[$func] = $result_data; 110 break; 111 case 'custom_wc_status_event_variable'; 112 $this->custom_wc_status_event_variable[$func] = $result_data; 113 break; 114 case 'current_client_event'; 115 $this->current_client_event[$func] = $result_data; 116 break; 117 } 118 //$this->current_admin_event[$func] = (object)array_merge((array)$this->data, (array)$data); 119 120 //wp_mail('shelestov.a.s@gmail.com', 'проверка', print_r(array($event, $func, $type, (object)array_merge((array)$this->data, (array)$data), $this->current_admin_event), true)); 103 121 104 122 } … … 252 270 // для админа если оформлен новый заказ 253 271 public function admin_woocommerce_checkout_update_order_meta($order_id, $data) 254 { 272 { 255 273 $search = array('{NUM}', '{SUM}', '{EMAIL}', '{PHONE}', '{FIRSTNAME}', '{LASTNAME}', '{CITY}', '{ADDRESS}', '{BLOGNAME}'); 256 274 … … 271 289 272 290 $this->smsru->send($this->current_admin_event[__FUNCTION__]); 273 //wp_mail('shelestov.a.s@gmail.com', 'новый заказ', print_r(array($order, $data, $this->current_admin_event[__FUNCTION__]), true)); 291 292 /*wp_mail('shelestov.a.s@gmail.com', 'новый заказ', print_r(array( 293 $this->wc_settings['wc_event_admin'], 294 $this->current_admin_event, 295 $this->current_admin_event[__FUNCTION__], 296 $this->data 297 ), true));*/ 274 298 275 299 } -
wp-smsru/trunk/readme.txt
r1787683 r1858014 4 4 Requires at least: 3.0 5 5 Tested up to: 4.9.1 6 Stable tag: 1. 56 Stable tag: 1.6 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-smsru/trunk/wp-smsru.php
r1787519 r1858014 3 3 *Plugin Name: SMS.ru for Wordpress & WooCommerce 4 4 *Description: SMS уведомлений с использованием шлюза SMS.RU 5 *Version: 1. 55 *Version: 1.6 6 6 *Author: Anton Shelestov 7 7 *Author URI: http://verstaemvse.ru … … 14 14 } 15 15 16 define( 'SMSRU_VERSION', '1. 5' );16 define( 'SMSRU_VERSION', '1.6' ); 17 17 define( 'SMSRU_PREFIX_SLUG', 'smsru' ); 18 18 define( 'SMSRU_DIR_PATH', dirname( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.