Plugin Directory

Changeset 3095899


Ignore:
Timestamp:
05/31/2024 09:55:14 PM (22 months ago)
Author:
fxholl
Message:

added feature to Allow deactivation by sending sale to Kiskadi

Location:
kiskadi/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • kiskadi/trunk/includes/class-kiskadi.php

    r3094720 r3095899  
    1212
    1313    /** @var string */
    14     public $version = '1.1.5';
     14    public $version = '1.2.0';
    1515
    1616    /** @var self */
  • kiskadi/trunk/includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php

    r2800910 r3095899  
    4141                'default'     => '',
    4242            ),
    43             'enable_cashback' => array(
    44                 'title'       => __( 'Cashback', 'kiskadi' ),
    45                 'type'        => 'checkbox',
    46                 'label'       => __( 'Enable cashback at checkout page', 'kiskadi' ),
    47                 'default'     => 'yes',
    48                 'description' => __( 'Enable the cashback option for customers at checkout', 'kiskadi' ),
    49             ),
     43            'enable_cashback' => array(
     44                'title'       => __( 'Cashback', 'kiskadi' ),
     45                'type'        => 'checkbox',
     46                'label'       => __( 'Enable cashback at checkout page', 'kiskadi' ),
     47                'default'     => 'yes',
     48                'description' => __( 'Enable the cashback option for customers at checkout', 'kiskadi' ),
     49            ),
     50            'enable_transactions' => array(
     51                'title'       => __( 'Transactions', 'kiskadi' ),
     52                'type'        => 'checkbox',
     53                'label'       => __( 'Enable the transactions sending to Kiskadi', 'kiskadi' ),
     54                'default'     => 'yes',
     55                'description' => __( 'Enable the option to send transaction to Kiskadi', 'kiskadi' ),
     56            ),
    5057            'debug'           => array(
    5158                'title'       => __( 'Debug Log' ),
     
    8087        return true;
    8188    }
     89
     90    public function is_transactions_enable() : bool {
     91        if ( 'no' === $this->get_option( 'enable_transactions' ) ) {
     92            return false;
     93        }
     94
     95        return true;
     96    }
    8297}
  • kiskadi/trunk/includes/integration/woocommerce/class-order-status.php

    r2800910 r3095899  
    3939            return;
    4040        }
     41
     42        $is_transactions_enable = ( new Kiskadi_Integration_Admin() )->is_transactions_enable();
     43        if ( false === $is_transactions_enable ) {
     44            return;
     45        }
    4146
    4247        try {
  • kiskadi/trunk/kiskadi.php

    r3094720 r3095899  
    88 * Text Domain:     kiskadi
    99 * Domain Path:     /languages
    10  * Version:         1.1.5
     10 * Version:         1.2.0
    1111 *
    1212 * @package         Kiskadi
  • kiskadi/trunk/languages/kiskadi-pt_BR.po

    r2800910 r3095899  
    135135"compra"
    136136
     137#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:51
     138msgid "Transactions"
     139msgstr "Transações"
     140
    137141#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:53
     142msgid "Enable the transactions sending to Kiskadi"
     143msgstr "Ative o envio de transações para Kiskadi"
     144
     145#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:55
     146msgid "Enable the option to send transactions to Kiskadi"
     147msgstr "Ative a opção de evniar as transações para o Kiskadi"
     148
     149#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:60
    138150msgid "Enable logging"
    139151msgstr "Ativar registros de log"
    140152
    141 #: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:55
     153#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:62
    142154msgid "Log events such as API requests"
    143155msgstr "Eventos de log, como solicitações de API"
  • kiskadi/trunk/languages/kiskadi.pot

    r2800910 r3095899  
    125125msgstr ""
    126126
     127#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:51
     128msgid "Transactions"
     129msgstr ""
     130
    127131#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:53
     132msgid "Enable the transactions sending to Kiskadi"
     133msgstr ""
     134
     135#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:55
     136msgid "Enable the option to send transactions to Kiskadi"
     137msgstr ""
     138
     139#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:60
    128140msgid "Enable logging"
    129141msgstr ""
    130142
    131 #: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:55
     143#: includes/integration/woocommerce/admin/class-kiskadi-integration-admin.php:62
    132144msgid "Log events such as API requests"
    133145msgstr ""
  • kiskadi/trunk/readme.txt

    r3094720 r3095899  
    66Tested up to: 6.4.3
    77Requires PHP: 7.2
    8 Stable tag: 1.1.5
     8Stable tag: 1.2.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
     37= 1.2.0 =
     38* Feature - Allow deactivation by sending the sale to Kiskadi
     39
    3740= 1.1.5 =
    3841* Fix - Commented validation due to error generation
Note: See TracChangeset for help on using the changeset viewer.