Changeset 3024763
- Timestamp:
- 01/21/2024 05:34:14 PM (2 years ago)
- Location:
- telsender/trunk
- Files:
-
- 4 edited
-
clasess/TelsenderCore.php (modified) (2 diffs)
-
clasess/TelsenderWc.php (modified) (2 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telsender/trunk/clasess/TelsenderCore.php
r3023994 r3024763 47 47 $this->telegram = new Telegransender; 48 48 49 $this->telegram->Pechenki_key = $this->tscfwc_setting_newtoken;50 49 $this->telegram->Chat_id = $this->tscfwc_setting_chatid; 51 50 $this->telegram->Token = $this->tscfwc_setting_token; … … 258 257 $this->telegram->Chat_id = $wc_chek['wooc_chat_id']; 259 258 } 259 260 260 261 261 262 if ($isSendn && $isSendn != '-1') { -
telsender/trunk/clasess/TelsenderWc.php
r3023994 r3024763 76 76 $ed = explode('-', preg_replace('/\{|\}/', '', $item)); 77 77 78 78 79 if (count($ed) > 1) { 79 80 80 81 $this->replace[$item] = (string)$this->order->data[$ed[0]][$ed[1]]; 81 82 83 82 84 } else { 83 85 84 $res = preg_replace('/\{|\}/', '', $item);86 $res = trim(preg_replace('/\{|\}/', '', $item)); 85 87 86 if ( isset($this->order->data[$res])) {88 if (key_exists($res,$this->order->data)) { 87 89 $_result = $this->order->data[$res]; 90 91 88 92 }else{ 89 93 $_result = null; 90 94 } 95 91 96 92 97 … … 98 103 99 104 100 101 102 105 } 103 106 104 107 }); 108 105 109 106 110 $this->replace = apply_filters('tscf_filter_codetemplate', $this->replace, $this->order_id); -
telsender/trunk/index.php
r3023994 r3024763 5 5 */ 6 6 /* 7 Plugin Name: TelSender 7 Plugin Name: TelSender - Wp to telegram СF 7, Events, Wpforms, Wooccommerce 8 8 Description: Плагін відправляє заявки з форм у телеграм канал 9 9 Author: Pechenki 10 Version: 1.14. 910 Version: 1.14.10 11 11 Author URI: https://coder.org.ua/dev/wordpress/telsender 12 12 */ -
telsender/trunk/readme.txt
r3023994 r3024763 1 === TelSender - Сontact form 7, Events, Wpforms and wooccommerce to telegram bot===1 === TelSender - Wp to telegram СF 7, Events, Wpforms, Wooccommerce === 2 2 Contributors: pechenki 3 3 Tags: telegram, Сontact form 7 to telegram, Сontact form 7, wooccommerce to telegram, Wpforms to telegram, wpforms to telegram … … 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4 7 Stable tag: 1.14. 97 Stable tag: 1.14.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 74 74 75 75 == Changelog == 76 = 1.14.10 = 77 - fix error empty wooccommerce short tag 78 76 79 = 1.14.9 = 77 80 - add log file
Note: See TracChangeset
for help on using the changeset viewer.