Plugin Directory

Changeset 3229848


Ignore:
Timestamp:
01/27/2025 06:02:56 PM (12 months ago)
Author:
tecnologiavirtuaria
Message:

Versão 1.0.2

Location:
virtuaria-pagbank-split
Files:
41 added
4 edited

Legend:

Unmodified
Added
Removed
  • virtuaria-pagbank-split/trunk/class-virtuaria-pagbank-split.php

    r3068942 r3229848  
    44 * Plugin URI: https://virtuaria.com.br
    55 * Description: Este plugin adiciona split de pagamento via Crédito, Pix ou Boleto do PagSeguro a sua loja virtual Woocommerce. O pagamento é distribuído entre sua conta do PagBank e as respectivas contas da sua rede de parceiros de negócios. É um plugin de fácil adoção. Normalmente não é necessário alterar nada no tema para usá-lo.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author: Virtuaria
    88 * Author URI: https://virtuaria.com.br/
  • virtuaria-pagbank-split/trunk/includes/class-virtuaria-receivers.php

    r3068942 r3229848  
    939939                && ! $this->current_user_is_receiver() ) {
    940940                $settings = get_option(
    941                     'woocommerce_virt_pagseguro_settings'
    942                 );
     941                    'woocommerce_virt_pagseguro_settings',
     942                    array()
     943                );
     944
     945                if ( ! is_array( $settings ) ) {
     946                    $settings = array();
     947                }
    943948
    944949                $settings['marketplace'] = sanitize_text_field(
     
    959964                    true
    960965                );
     966
     967                if ( ! is_array( $receiver ) ) {
     968                    $receiver = array();
     969                }
    961970
    962971                $receiver['account'] = sanitize_text_field(
     
    10011010            );
    10021011
     1012            if ( ! is_array( $receiver ) ) {
     1013                $receiver = array();
     1014            }
     1015
    10031016            if ( isset( $this->settings['environment'] )
    10041017                && 'sandbox' === $this->settings['environment'] ) {
  • virtuaria-pagbank-split/trunk/readme.txt

    r3158097 r3229848  
    44Requires at least: 4.7
    55Tested up to: 6.6.2
    6 Stable tag: 1.0.1
     6Stable tag: 1.0.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    188188
    189189== Changelog ==
     190= 1.0.2 2024-01-27 =
     191* Ajuste - Processo de conexão do seller e gestor da loja.
    190192= 1.0.1 2024-04-11 =
    191193* Liberado o acesso ao painel wp-admin quando em uso com Dokan;
  • virtuaria-pagbank-split/trunk/templates/split-settings.php

    r3055221 r3229848  
    2424                    <fieldset>
    2525                        <legend class="screen-reader-text"><span>Habilitar</span></legend>
    26                         <input type="checkbox" name="woocommerce_virt_pagseguro_split_enabled" id="split" value="yes" <?php echo checked( 'yes', $options['split_enabled'] ); ?>>
     26                        <input
     27                            type="checkbox"
     28                            name="woocommerce_virt_pagseguro_split_enabled"
     29                            id="split"
     30                            value="yes"
     31                            <?php echo isset( $options['split_enabled'] ) ? checked( 'yes', $options['split_enabled'] ) : ''; ?>>
    2732                        <p class="description">
    2833                            Ativa o Split de pagamentos. Após ativar, é obrigatório ir até a aba Integração e fazer uma conexão / reconexão com o PagSeguro para o sistema reconhecer a conta principal.
     
    3843                    <fieldset>
    3944                        <legend class="screen-reader-text"><span>Taxa Geral</span></legend>
    40                         <input class="input-text regular-input wc_input_price" step="0.01" min="0" type="number" name="woocommerce_virt_pagseguro_main_fee" id="woocommerce_virt_pagseguro_main_fee" value="<?php echo isset( $options['main_fee'] ) ? esc_attr( $options['main_fee'] ) : ''; ?>" >
     45                        <input
     46                            class="input-text regular-input wc_input_price"
     47                            step="0.01"
     48                            min="0"
     49                            type="number"
     50                            name="woocommerce_virt_pagseguro_main_fee"
     51                            id="woocommerce_virt_pagseguro_main_fee"
     52                            value="<?php echo isset( $options['main_fee'] ) ? esc_attr( $options['main_fee'] ) : ''; ?>" >
    4153                        <p class="description">
    4254                            Define a taxa padrão descontada das vendas dos sellers.
     
    95107                                    name="woocommerce_virt_pagseguro_hide_shipping_method"
    96108                                    id="woocommerce_virt_pagseguro_hide_shipping_method"
    97                                     <?php checked( 'yes', $options['hide_shipping_method'] ); ?>
     109                                    <?php isset( $options['hide_shipping_method'] ) ? checked( 'yes', $options['hide_shipping_method'] ) : ''; ?>
    98110                                    value="yes">
    99111                                <label for="woocommerce_virt_pagseguro_hide_shipping_method">
     
    105117                                    name="woocommerce_virt_pagseguro_hide_cpf"
    106118                                    id="woocommerce_virt_pagseguro_hide_cpf"
    107                                     <?php checked( 'yes', $options['hide_cpf'] ); ?>
     119                                    <?php isset( $options['hide_cpf'] ) ? checked( 'yes', $options['hide_cpf'] ) : ''; ?>
    108120                                    value="yes">
    109121                                <label for="woocommerce_virt_pagseguro_hide_cpf">
     
    115127                                    name="woocommerce_virt_pagseguro_hide_address"
    116128                                    id="woocommerce_virt_pagseguro_hide_address"
    117                                     <?php checked( 'yes', $options['hide_address'] ); ?>
     129                                    <?php isset( $options['hide_address'] ) ? checked( 'yes', $options['hide_address'] ) : ''; ?>
    118130                                    value="yes">
    119131                                <label for="woocommerce_virt_pagseguro_hide_address">
     
    125137                                    name="woocommerce_virt_pagseguro_hide_coupons"
    126138                                    id="woocommerce_virt_pagseguro_hide_coupons"
    127                                     <?php checked( 'yes', $options['hide_coupons'] ); ?>
     139                                    <?php isset( $options['hide_coupons'] ) ? checked( 'yes', $options['hide_coupons'] ) : ''; ?>
    128140                                    value="yes">
    129141                                <label for="woocommerce_virt_pagseguro_hide_coupons">
     
    152164                                    name="woocommerce_virt_pagseguro_hide_unpurchasable_products"
    153165                                    id="woocommerce_virt_pagseguro_hide_unpurchasable_products"
    154                                     <?php checked( 'yes', $options['hide_unpurchasable_products'] ); ?>
     166                                    <?php isset( $options['hide_unpurchasable_products'] ) ? checked( 'yes', $options['hide_unpurchasable_products'] ) : ''; ?>
    155167                                    value="yes">
    156168                                <label for="woocommerce_virt_pagseguro_hide_unpurchasable_products">
     
    162174                                    name="woocommerce_virt_pagseguro_hide_reputation"
    163175                                    id="woocommerce_virt_pagseguro_hide_reputation"
    164                                     <?php checked( 'yes', $options['hide_reputation'] ); ?>
     176                                    <?php isset( $options['hide_reputation'] ) ? checked( 'yes', $options['hide_reputation'] ) : ''; ?>
    165177                                    value="yes">
    166178                                <label for="woocommerce_virt_pagseguro_hide_reputation">
     
    172184                                    name="woocommerce_virt_pagseguro_hide_total_sales"
    173185                                    id="woocommerce_virt_pagseguro_hide_total_sales"
    174                                     <?php checked( 'yes', $options['hide_total_sales'] ); ?>
     186                                    <?php isset( $options['hide_total_sales'] ) ? checked( 'yes', $options['hide_total_sales'] ) : ''; ?>
    175187                                    value="yes">
    176188                                <label for="woocommerce_virt_pagseguro_hide_total_sales">
Note: See TracChangeset for help on using the changeset viewer.