View backup-codigo-carrinho.js
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
<div id="counter"></div> | |
<script> | |
jQuery(document).ready(function() { | |
function calcularSubtotalDoItem(itemElemento) { | |
var valorTextoElemento = jQuery(itemElemento).find('.sn_valor2 .jet-listing-dynamic-field__content').text().trim(); | |
var valorNumerico = parseFloat(valorTextoElemento); | |
var quantidadeInput = jQuery(itemElemento).find('.qtd-input.sn_qtd'); | |
var quantidadeNumerica = parseFloat(quantidadeInput.val()); |
View Envio de E-mail - Catalogo de Produtos.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
// Adicionar coluna personalizada | |
add_filter('manage_pedidos_posts_columns', function ($columns) { | |
$columns['reenviar_email'] = 'Reenviar por E-mail'; | |
return $columns; | |
}); | |
// Exibir conteúdo na coluna personalizada | |
add_action('manage_pedidos_posts_custom_column', function ($column, $post_id) { | |
if ($column == 'reenviar_email') { | |
echo '<a href="#" class="reenviar-email" data-post-id="' . $post_id . '">Reenviar</a>'; |
View script - pedido.js
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
<div id="counter"></div> | |
<script> | |
jQuery(document).ready(function() { | |
function calcularSubtotalDoItem(itemElemento) { | |
var valorTextoElemento = jQuery(itemElemento).find('.sn_valor2 .jet-listing-dynamic-field__content').text().trim(); | |
var valorNumerico = parseFloat(valorTextoElemento); | |
var quantidadeInput = jQuery(itemElemento).find('.qtd-input.sn_qtd'); | |
var quantidadeNumerica = parseFloat(quantidadeInput.val()); |
View JONES Taxonomia Hierarquica.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
function show_taxonomy_lista() { | |
$nome_tax = 'estados'; | |
$CSS = ' | |
<style> | |
.tax-style { | |
font-size: 16px; | |
color: #333333; | |
} | |
.tax-parent { |
View Ajax Complete - Whatsapp Message.js
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
<script> | |
jQuery(document).ready(function() { | |
// Função para definir o link do WhatsApp | |
function setWhatsAppLinks() { | |
jQuery('.jet-listing-grid__item').each(function() { | |
var zapLugar = jQuery(this).find('.zap_lugar .jet-listing-dynamic-field__content').text().trim(); | |
var siteURL = window.location.href; | |
var message = `Olá, vi uma publicação no site ${siteURL}, gostaria de mais informações.`; | |
var whatsappURL = `https://wa.me/55${zapLugar}?text=${encodeURIComponent(message)}`; |
View Unfold Script para Elementor.js
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
/* CSS | |
Em uma seção/container nomei a class css para = box-content | |
Dentro dela coloque um outro container ou componente de texto com a class = unfold-content | |
Dentro dessa mesma área coloque um botão com a class = unfold-btn | |
*/ | |
/* |
View Alterar campos padrão do WordPress via Options Pages.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
/* Esse código permite que através do options page | |
seja possível fazer um update nos campos padrão do WordPress */ | |
function update_site_info_from_options_page() { | |
// Obter o array dos metafields do JetEngine | |
$options = get_option('site-config'); | |
// Definir os nomes dos metafields |
View Paginação de Listing Grid.js
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
/* | |
PAGINAÇÃO DE LISTING GRID | |
Siga as intruções abaixo: | |
Adicione o ID: #lista em seu listing grid do JetEngine | |
Crie 1 botão com ID = #anterior | |
Crie 1 botão com ID = #proximo | |
vídeo de instruções |
View V2 - Paginação de Conteúdos para Elementor.js
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
/* | |
PAGINAÇÃO DE CONTEÚDO | |
Siga as intruções abaixo: | |
Crie containers com a class = .pg-conteudo | |
Crie 1 botão com ID = #anterior | |
Crie 1 botão com ID = #proximo | |
vídeo de instruções | |
*/ |
View V1 - Paginação de Conteúdos para Elementor.js
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
/*PAGINAÇÃO DE CONTEÚDO | |
Siga as intruções abaixo: | |
Crie containers com a class = .pg-conteudo | |
Crie 1 botão com ID = #anterior | |
Crie 1 botão com ID = #proximo | |
vídeo de instruções |
NewerOlder