This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
/*CRIE UM ARQUIVO CHAMADO limpacarrinho.php e coloque o script PHP abaixo.. salve na pasta raiz do wordpress*/ | |
<?php | |
require_once('wp-load.php'); | |
global $woocommerce; | |
$woocommerce->cart->empty_cart(); |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<script> | |
const addToCartButtons = document.querySelectorAll('.add_to_cart_button'); | |
addToCartButtons.forEach(button => { | |
button.addEventListener('click', () => { | |
button.innerText = 'Adicionado'; | |
button.style.backgroundColor = 'green'; |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<script src="https://code.jquery.com/jquery-3.6.0.slim.js" integrity="sha256-HwWONEZrpuoh951cQD1ov2HUK5zA5DwJ1DNUXaM6FsY=" crossorigin="anonymous"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.0.272/jspdf.debug.js"></script> | |
/*COMPONENTE DE BOTÃO PARA CHAMAR O DOWNLOAD*/ | |
<button id="btn-download">Download PDF</button> | |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<style> | |
.aberto, .fechado, .lista-horarios{ | |
display: none; | |
} | |
</style> | |
<script> | |
window.onload = function() { |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
/* | |
Declare o #conteudo no campo a ser copiado | |
Declare o #copiar no botão que ao ser clicado vai copiar o conteúdo do campo #conteudo | |
*/ | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | |
<script> |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
/* | |
Coloque o name id do campo a ser copiado = conteudo | |
*/ | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | |
<script> | |
jQuery(document).ready(function(){ |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
/* | |
Coloque o name id do campo que deseja copiar = conteudo | |
*/ | |
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> | |
<script> | |
jQuery(document).ready(function(){ |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<?php | |
include('wp-load.php'); | |
remove_user_by_id($_GET['id'],$_GET['redirect']); | |
function remove_user_by_id($id,$redirect) { | |
global $wpdb; | |
$wpdb->delete( $wpdb->users, array( 'ID' => $id ) ); | |
$wpdb->delete( $wpdb->usermeta, array( 'user_id' => $id ) ); |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<?php | |
$cep = $_POST['cep']; | |
$conexao = mysqli_connect('localhost', 'user', 'senha', 'ceps'); | |
$query = "SELECT * FROM ceps WHERE cep = '$cep'"; |
This file contains hidden or 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
/*BY: ASK JARVIS + DANTE TESTA */ | |
<script> | |
jQuery(document).ready(function(){ | |
var btn = 'form[name=F1] button'; /*INFORME O SELETOR DO BOTÃO*/ | |
var checkbox = '#form-field-aceite'; /*INFORME O NOME DO ID DO CHECKBOX*/ | |