Changeset 2668557
- Timestamp:
- 01/28/2022 07:56:45 PM (4 years ago)
- Location:
- powers-triggers-of-woo-to-chat/trunk
- Files:
-
- 2 added
- 4 edited
-
admin/class-wwp-admin.php (modified) (4 diffs)
-
admin/js/mod_wooreminders.js (added)
-
admin/js/script.js (modified) (1 diff)
-
class-wwp-wooreminder.php (added)
-
readme.txt (modified) (3 diffs)
-
wc-whatsapp-powers.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
powers-triggers-of-woo-to-chat/trunk/admin/class-wwp-admin.php
r2650668 r2668557 17 17 add_action( 'wp_ajax_wwp_view_cartbounty', array( $this, 'wwp_view_cartbounty' ) ); 18 18 add_action( 'wp_ajax_wwp_send_from_cartbounty', array( $this, 'wwp_send_from_cartbounty' ) ); 19 add_action( 'wp_ajax_wwp_wooreminders', array( $this, 'wwp_send_from_wooreminders' ) ); 19 20 20 21 … … 29 30 if (wwp_is_plugin_active('woo-save-abandoned-carts/cartbounty-abandoned-carts.php') and $_GET['page']=='cartbounty' and ( !isset($_GET['tab']) or $_GET['tab']=='carts')){ 30 31 $this->wwp_mod_cartbounty_abandoned_carts(); 32 } 33 if (wwp_is_plugin_active('woo-reminder/woo-reminder.php') and $_GET['page']=='woo-reminder'){ 34 $this->wwp_mod_wooreminders(); 31 35 } 32 36 … … 127 131 <?php 128 132 } 133 129 134 function wwp_woocommerce_chk_perms_save($post_id, $post){ 130 $post_type = $post->post_type; 131 if($post_id && $post_type=='shop_order' and isset($_POST['wwp_woocommerce_update_flag'])) { 132 if(isset($_POST['wwp_woocommerce_chk_perms'])){ 133 update_post_meta($post_id,'wwp_notify_whatsapp',1); 134 } else { 135 delete_post_meta($post_id,'wwp_notify_whatsapp'); 136 } 137 } 138 } 135 $post_type = $post->post_type; 136 if($post_id && $post_type=='shop_order' and isset($_POST['wwp_woocommerce_update_flag'])) { 137 if(isset($_POST['wwp_woocommerce_chk_perms'])){ 138 update_post_meta($post_id,'wwp_notify_whatsapp',1); 139 } else { 140 delete_post_meta($post_id,'wwp_notify_whatsapp'); 141 } 142 } 143 } 144 145 146 //Woocommerce WooReminders 147 function wwp_mod_wooreminders (){ 148 wp_enqueue_script('wwp-mod-wooreminders', plugin_dir_url( __FILE__ ) . 'js/mod_wooreminders.js', array('jquery'), rand(0,1000), true ); 149 wp_localize_script( 'wwp-mod-wooreminders', 'wwp_mod_wooreminders_object', 150 array( 151 'wpp_enable' => get_option( 'wpp_enable_wooreminders', false ), 152 ) 153 ); 154 } 139 155 140 156 //Woocommerce Cartbounty … … 190 206 exit(); 191 207 } 208 209 function wwp_send_from_wooreminders($wpp_enable = ''){ 210 if ( ( !$_POST or empty($_POST['wpp_enable']) ) and empty($wpp_enable)) { return;} 211 if (!empty($_POST['wpp_enable'])) { 212 $wpp_enable = $_POST['wpp_enable']; 213 } 214 215 if (update_option('wpp_enable_wooreminders', $wpp_enable, FALSE)) { 216 $up = add_option('wpp_enable_wooreminders', $wpp_enable); 217 } 218 219 if ($up=== FALSE) { 220 return false; 221 } 222 return true; 223 } 224 192 225 function wwp_send_from_cartbounty($wwp_id = ''){ 193 226 if ( ( !$_POST or empty($_POST['wwp_id']) ) and empty($wwp_id)) { return;} -
powers-triggers-of-woo-to-chat/trunk/admin/js/script.js
r2650668 r2668557 1 1 jQuery(document).ready(function($) { 2 2 //abrir media 3 var file_frame; 4 var wp_media_post_id = wp.media.model.settings.post.id; 5 var set_to_post_id = 0; 6 var targetURL; 3 7 4 $('.pac_open_media').on('click', function( event ){ 5 var file_frame; 6 var wp_media_post_id = wp.media.model.settings.post.id; 7 var set_to_post_id = 0; 8 var targetURL; 8 9 event.preventDefault(); 9 10 targetURL = $('#'+$(this).attr('data-url-target')); -
powers-triggers-of-woo-to-chat/trunk/readme.txt
r2652371 r2668557 3 3 Tags: woocommerce and whatsapp , woocommerce , whastsapp , woocommerce integration with whatsapp ,woocommerce Order to whatsapp, Contact Form 7 4 4 Requires at least: 4.0.1 5 Tested up to: 5. 6.25 Tested up to: 5.9 6 6 Stable tag: 2.0.0 7 7 License: GPLv2 or later … … 16 16 * CartBounty – Save and recover abandoned carts for WooCommerce 17 17 * JetBooking 18 * Woo Reminder 18 19 19 20 - Reconquiste clientes enviando um cupom por whastsapp automático quando o pedido for cancelado; 20 21 - Crie mensagens personlizadas com mais de 30 variáveis disponíveis; 21 22 - Envie o código de rastreio automaticamente com o link para acompanhar; 23 - Diversas integrações com plugins terceiros; 22 24 23 25 == Como funciona == … … 54 56 55 57 == Changelog == 58 * 1.9.7 59 * Correção de bug de JS 60 * Nova integração com Woo Reminder 56 61 * 1.9.6 57 62 * Corrigido bug da mensagem de alerta -
powers-triggers-of-woo-to-chat/trunk/wc-whatsapp-powers.php
r2652371 r2668557 4 4 * Plugin URI: https://wordpress.org/plugins/powers-triggers-of-woo-to-chat/ 5 5 * Description: Automatiza envio de mensagens Whatsapp. 6 * Version: 1.9. 66 * Version: 1.9.7 7 7 * Author: Felipe Peixoto 8 8 * Author URI: http://felipepeixoto.tecnologia.ws/projetos/plugins-para-wordpress/notificacoes-de-pedidos-por-whatsapp/ … … 141 141 } 142 142 } 143 } 144 if (wwp_is_plugin_active('woo-reminder/woo-reminder.php')){ 145 include_once('class-wwp-wooreminder.php'); 146 add_action('wrmdr_mail_time', array(new Woowhatspowers_wooreminder_Front, 'wwp_send_cron'),1); 147 } 143 148 144 }145 149 } 146 150
Note: See TracChangeset
for help on using the changeset viewer.