Plugin Directory

Changeset 2187739


Ignore:
Timestamp:
11/07/2019 01:30:39 PM (6 years ago)
Author:
rfbastos
Message:

Correção ao montar campanha, trazendo dados completos do usuario

Location:
track-for-buzzlead/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • track-for-buzzlead/trunk/readme.txt

    r2187719 r2187739  
    1010Tested up to: 5.2.4
    1111Requires PHP: 7.0
    12 Version: 1.0.3
    13 Stable tag: 1.0.3
     12Version: 1.0.4
     13Stable tag: 1.0.4
    1414License: GPLv3 or later
    1515License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131== Changelog ==
    3232= 1.0.3
     33* Correção ao montar campanha, trazendo dados completos do usuario
     34= 1.0.3
    3335* Correção no retorno dos dados para montar o JS
    3436= 1.0.2
  • track-for-buzzlead/trunk/track-for-buzzlead.php

    r2187738 r2187739  
    44 * Plugin URI: http://www.buzzlead.com.br
    55 * Description: Tracking de conversão Buzzlead para sua loja virtual Woocommerce - Marketing de Indicações
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * License: GPLv3 or later
    88 * Author: Rodrigo Fleury Bastos
     
    7070            //Adicionando os Scripts na pagina de sucesso
    7171            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.'"}});' );
    7373        }
    7474       
Note: See TracChangeset for help on using the changeset viewer.