Changeset 2187739
- Timestamp:
- 11/07/2019 01:30:39 PM (6 years ago)
- Location:
- track-for-buzzlead/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
track-for-buzzlead.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
track-for-buzzlead/trunk/readme.txt
r2187719 r2187739 10 10 Tested up to: 5.2.4 11 11 Requires PHP: 7.0 12 Version: 1.0. 313 Stable tag: 1.0. 312 Version: 1.0.4 13 Stable tag: 1.0.4 14 14 License: GPLv3 or later 15 15 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 == Changelog == 32 32 = 1.0.3 33 * Correção ao montar campanha, trazendo dados completos do usuario 34 = 1.0.3 33 35 * Correção no retorno dos dados para montar o JS 34 36 = 1.0.2 -
track-for-buzzlead/trunk/track-for-buzzlead.php
r2187738 r2187739 4 4 * Plugin URI: http://www.buzzlead.com.br 5 5 * Description: Tracking de conversão Buzzlead para sua loja virtual Woocommerce - Marketing de Indicações 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * License: GPLv3 or later 8 8 * Author: Rodrigo Fleury Bastos … … 70 70 //Adicionando os Scripts na pagina de sucesso 71 71 wp_enqueue_script( 'wbg-buzzlead-tracker', 'https://test.buzzlead.com.br/tracker.js', array(), '1.0' ); 72 wp_add_inline_script( 'wbg-buzzlead-tracker', 'window.Tracker({campaignId:" <?php echo carbon_get_theme_option( \'wbg_id_campanha\' ); ?>",total:"<?php echo $order->get_total();?>",numeroPedido:"<?php echo $order_id;?>",cliente:{nome:"<?php echo $nomeCliente;?>",email:"<?php echo $order->get_billing_email();?>",documento:"<?php echo $cpfCliente.$cnpjCliente;?>"}});' );72 wp_add_inline_script( 'wbg-buzzlead-tracker', 'window.Tracker({campaignId:" '.carbon_get_theme_option( 'wbg_id_campanha' ).'",total:" '.$order->get_total().'",numeroPedido:"'.$order_id.'",cliente:{nome:"'.$nomeCliente.'",email:"'.$order->get_billing_email().'",documento:"'.$cpfCliente.$cnpjCliente.'"}});' ); 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.