Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified phpunit.xml
100755 → 100644
Empty file.
12 changes: 10 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ Tags: vindi, cobrança-recorrente, vindi-woocommerce, assinaturas, woocommerce-s
Author URI: https://vindi.com.br/ | https://mentores.com.br
Author: Vindi | Mentores Digital
Requires at least: 4.4
Tested up to: 6.4
Tested up to: 6.8
WC requires at least: 3.0.0
WC tested up to: 8.6.1
Requires PHP: 5.6
Stable Tag: 1.3.7
Stable Tag: 1.3.9
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -39,6 +39,14 @@ Para dúvidas e suporte técnico, entre em contato com a equipe Vindi através d
5. Configurações de pagamentos via cartão de crédito

== Changelog ==
= 1.3.9 - 05/06/2025 =
-Lançamento da versão de patch.
- **Melhoria:** Adaptando o plugin para HPos.

= 1.3.8 - 24/04/2025 =
-Lançamento da versão de patch.
- **Correção:** Alteração no test up de 6.4 para 6.8.

= 1.3.7 - 05/11/2024 =
-Lançamento da versão de patch.
- **Correção:** Alteração no método de pagamento para assinaturas ativas.
Expand Down
25 changes: 14 additions & 11 deletions src/assets/js/editpost.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
jQuery(document).ready(function ($) {
let side = document.querySelector(".page-title-action");
if (side && orderData.typePost == "shop_order") {
let button = document.createElement('a');
button.className = 'button button-primary';
button.style.marginLeft = '10px';
button.style.marginTop = '10px';
button.setAttribute("target", "_blank");
button.innerText = "Gerar Link de Pagamento";
button.setAttribute("href", `${location.origin}/wp-admin/post-new.php?post_type=shop_order&vindi-payment-link=true`);
side.after(button);
if (orderData.isOrderPage) {
let side = document.querySelector(".page-title-action");
if (side && !document.querySelector('#vindi-payment-link-btn')) {
let button = document.createElement('a');
button.id = 'vindi-payment-link-btn';
button.className = 'button button-primary';
button.style.marginLeft = '10px';
button.style.marginTop = '10px';
button.setAttribute("target", "_blank");
button.innerText = "Gerar Link de Pagamento";
button.setAttribute("href", `${location.origin}/wp-admin/post-new.php?post_type=shop_order&vindi-payment-link=true`);
side.after(button);
}
}
})
});
Loading
Loading