Plugin Directory

Changeset 3024763


Ignore:
Timestamp:
01/21/2024 05:34:14 PM (2 years ago)
Author:
pechenki
Message:

1.14.10

  • fix error empty wooccommerce short tag
Location:
telsender/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • telsender/trunk/clasess/TelsenderCore.php

    r3023994 r3024763  
    4747        $this->telegram = new Telegransender;
    4848
    49         $this->telegram->Pechenki_key = $this->tscfwc_setting_newtoken;
    5049        $this->telegram->Chat_id = $this->tscfwc_setting_chatid;
    5150        $this->telegram->Token = $this->tscfwc_setting_token;
     
    258257                $this->telegram->Chat_id = $wc_chek['wooc_chat_id'];
    259258            }
     259
     260
    260261
    261262            if ($isSendn && $isSendn != '-1') {
  • telsender/trunk/clasess/TelsenderWc.php

    r3023994 r3024763  
    7676            $ed = explode('-', preg_replace('/\{|\}/', '', $item));
    7777
     78
    7879            if (count($ed) > 1) {
    7980
    8081                $this->replace[$item] = (string)$this->order->data[$ed[0]][$ed[1]];
    8182
     83
    8284            } else {
    8385
    84                 $res = preg_replace('/\{|\}/', '', $item);
     86                $res = trim(preg_replace('/\{|\}/', '', $item));
    8587
    86                 if (isset($this->order->data[$res])) {
     88                if (key_exists($res,$this->order->data)) {
    8789                    $_result = $this->order->data[$res];
     90
     91
    8892                }else{
    8993                    $_result = null;
    9094                }
     95
    9196
    9297
     
    98103
    99104
    100 
    101 
    102105            }
    103106
    104107        });
     108
    105109
    106110        $this->replace = apply_filters('tscf_filter_codetemplate', $this->replace, $this->order_id);
  • telsender/trunk/index.php

    r3023994 r3024763  
    55 */
    66/*
    7 Plugin Name: TelSender
     7Plugin Name: TelSender - Wp to telegram  СF 7, Events, Wpforms, Wooccommerce
    88Description: Плагін відправляє заявки з форм у телеграм канал
    99Author: Pechenki
    10 Version: 1.14.9
     10Version: 1.14.10
    1111Author URI: https://coder.org.ua/dev/wordpress/telsender
    1212*/
  • 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 ===
    22Contributors: pechenki
    33Tags: telegram, Сontact form 7 to telegram, Сontact form 7, wooccommerce to telegram, Wpforms to telegram, wpforms to telegram
     
    55Requires PHP: 7.4
    66Tested up to: 6.4
    7 Stable tag: 1.14.9
     7Stable tag: 1.14.10
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    7474
    7575== Changelog ==
     76= 1.14.10 =
     77 - fix error empty wooccommerce short tag
     78
    7679= 1.14.9 =
    7780 - add log file
Note: See TracChangeset for help on using the changeset viewer.