PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.6.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.6.4
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / templates / app-templates / app-checkout.php

app-checkout.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.6.4, at templates/app-templates/app-checkout.php

51 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) exit; // Exit if accessed directly
3 get_header();
4 ?>
5 <div id="wp-chatbot-app-checkout-container">
6 <?php
7 wp_enqueue_script( 'wc-checkout');
8 remove_action( 'wpcommerce_cart_collaterals', 'wpcommerce_cross_sell_display' );
9 echo do_shortcode('[wpcommerce_checkout]');
10 ?>
11 </div>
12 <?php
13 get_footer();
14 ?>
15 <script>
16 // jQuery(function ($) {
17 // var ajaxurl = '<?php // echo admin_url('admin-ajax.php'); ?>';
18 // var nonce = '<?php // wp_create_nonce('login_nonce'); ?>';
19 // $("#wp-chatbot-app-checkout-container").parents("body").addClass("wpchatbot-app-checkout");
20 // $(document).on('click', '.wpcommerce-form-login input[type="submit"]', function (event) {
21 // event.preventDefault();
22 // var validatorDom=$('.wpcommerce-form-login>p').first();
23 // var validate="";
24 // var NonceName=$('#_wpnonce').attr('name');
25 // var NonceVal=$('#_wpnonce').val();
26 // var userName=$('#username').val();
27 // var password=$('#password').val();
28 // if(userName=="" || password=="" ){
29 // validate+='<p style="color:red"> User name & Password are required. </p>';
30 // }
31 // if(validate==""){
32 // var data = {'action': 'qcld_wb_chatbot_checkout_user_login','user_name': userName,'user_pass': password,'nonce_name': NonceName,'nonce_val':NonceVal};
33 // jQuery.post(ajaxurl, data, function (response) {
34 // if(response=='yes'){
35 // window.location.reload(true);
36 // }else{
37 // validatorDom.html('<p style="color:red"> User name Or Password or both are incorrect. </p>');
38 // setTimeout(function () {
39 // validatorDom.html('');
40 // },5000);
41 // }
42 // });
43 // }else{
44 // validatorDom.html(validate);
45 // setTimeout(function () {
46 // validatorDom.html('');
47 // },5000);
48 // }
49 // });
50 // });
51 </script>