From 2d74254681188c301f5cec77cc1f5c863221e1ef Mon Sep 17 00:00:00 2001 From: Victor Brito Date: Wed, 22 Jan 2020 17:45:39 -0300 Subject: [PATCH 1/2] atualiza versionamento --- CHANGELOG.md | 5 +++++ readme.txt | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0903be..43dfa7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Notas das versões +## [5.5.3 - 22/01/2020](https://github.com/vindi/vindi-woocommerce-subscriptions/releases/tag/5.5.3) + +### Corrigido +- Corrige exibição de plano apenas para produtos de assinatura + ## [5.5.2 - 09/01/2020](https://github.com/vindi/vindi-woocommerce-subscriptions/releases/tag/5.5.2) ### Corrigido diff --git a/readme.txt b/readme.txt index bb8e187..ad60444 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Requires at least: 4.4 Tested up to: 5.2.1 WC requires at least: 3.0.0 WC tested up to: 3.6.4 -Stable Tag: 5.5.2 +Stable Tag: 5.5.3 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -27,6 +27,9 @@ Para dúvidas e suporte técnico, entre em contato com a equipe Vindi através d == Changelog == += 5.5.3 - 22/01/2020 = +- Corrige exibição de plano apenas para produtos de assinatura + = 5.5.2 - 09/01/2020 = - Corrige exibição de datas no plugin From a61cf4878b74435919b8267d67c9e0705986d35e Mon Sep 17 00:00:00 2001 From: Victor Brito Date: Wed, 22 Jan 2020 17:46:26 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Corrige=20exibi=C3=A7=C3=A3o=20de=20planos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...imple-product-subscription-fields.html.php | 37 +++++++++++++------ vindi-woocommerce-subscriptions.php | 4 +- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/templates/admin-simple-product-subscription-fields.html.php b/templates/admin-simple-product-subscription-fields.html.php index 67f5485..4668ea7 100644 --- a/templates/admin-simple-product-subscription-fields.html.php +++ b/templates/admin-simple-product-subscription-fields.html.php @@ -22,22 +22,35 @@ if (preg_match('/variable-subscription/', $product_type)) { $label = __('Plano padrão da Vindi', VINDI_IDENTIFIER); $description = __('Selecione o plano padrão da Vindi que deseja relacionar a esse produto caso não especifique na variação', VINDI_IDENTIFIER); - } else { + + woocommerce_wp_select(array( + 'id' => 'vindi_subscription_plan', + 'label' => $label, + 'options' => $plans['names'], + 'description' => $description, + 'desc_tip' => true, + 'value' => $selected_plan, + 'custom_attributes' => array( + 'data-plan-info' => json_encode($plans['infos']) + ) + )); + } else if (preg_match('/simple-subscription/', $product_type)) { $label = __('Plano da Vindi', VINDI_IDENTIFIER); $description = __('Selecione o plano da Vindi que deseja relacionar a esse produto', VINDI_IDENTIFIER); + + woocommerce_wp_select(array( + 'id' => 'vindi_subscription_plan', + 'label' => $label, + 'options' => $plans['names'], + 'description' => $description, + 'desc_tip' => true, + 'value' => $selected_plan, + 'custom_attributes' => array( + 'data-plan-info' => json_encode($plans['infos']) + ) + )); } - woocommerce_wp_select(array( - 'id' => 'vindi_subscription_plan', - 'label' => $label, - 'options' => $plans['names'], - 'description' => $description, - 'desc_tip' => true, - 'value' => $selected_plan, - 'custom_attributes' => array( - 'data-plan-info' => json_encode($plans['infos']) - ) - )); ?>
diff --git a/vindi-woocommerce-subscriptions.php b/vindi-woocommerce-subscriptions.php index 6103387..3e6da95 100755 --- a/vindi-woocommerce-subscriptions.php +++ b/vindi-woocommerce-subscriptions.php @@ -3,7 +3,7 @@ * Plugin Name: Vindi Woocommerce * Plugin URI: * Description: Adiciona o gateway de pagamentos da Vindi para o WooCommerce. - * Version: 5.5.2 + * Version: 5.5.3 * Author: Vindi * Author URI: https://www.vindi.com.br * Requires at least: 4.4 @@ -39,7 +39,7 @@ class Vindi_WooCommerce_Subscriptions /** * @var string */ - const VERSION = '5.5.2'; + const VERSION = '5.5.3'; /** * @var string