-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona plano da Vindi nas Assinaturas Variáveis (#118)
* Adicionado plano da Vindi nas variações * Adicionado plano padrão da Vindi na aba geral para assinaturas variáveis * Alterado nome do campo do plano de variação * Corrigido bug que não trocava de 12 meses para 1 ano nas variações * Adicionado novo hook para Assinatura Simples * Assinaturas simples salvam o valor conforme o plano da vindi. * Versão 5.5.0
- Loading branch information
1 parent
5eae7c3
commit 2123811
Showing
7 changed files
with
179 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
templates/admin-variable-product-subscription-fields.html.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php if (!defined( 'ABSPATH')) exit; ?> | ||
<div class="options_group vindi-subscription_pricing show_if_variable-subscription"> | ||
|
||
<?php | ||
woocommerce_wp_select(array( | ||
'id' => 'vindi_variable_subscription_plan[' . $loop . ']', | ||
'label' => __('Plano da Vindi', VINDI_IDENTIFIER), | ||
'options' => $plans['names'], | ||
'description' => __('Selecione o plano da Vindi que deseja relacionar a esse produto', VINDI_IDENTIFIER), | ||
'desc_tip' => true, | ||
'value' => $selected_plan, | ||
'class' => 'select short variable_vindi_subscription_plan' | ||
)); | ||
?> | ||
</div> | ||
<div class="show_if_subscription clear"></div> |
Oops, something went wrong.