jquery ajax form

jQuery(document).ready(function() { jQuery(".submit_customer_btn").click(function() { /**************** Register ***************************/ jQuery("#notic_add_customer.alert").hide(); //on focus jQuery("#add_customer_form .isrequired, #add_customer_form .isrequired").focus(function(){ jQuery(this).removeClass('error'); }); //on blur jQuery("#add_customer_form .isrequired, #add_customer_form .isrequired").blur(function() { if(jQuery(this).val().trim() == '') { jQuery(this).addClass('error'); } else { jQuery(this).removeClass('error'); } }); if(jQuery("#firstname").val().trim() == '' || jQuery("#lastname").val().trim() == '' || jQuery("#mobile").val().trim() == '' || jQuery("#email").val().trim() == '' || jQuery("#streetaddress1").val().trim() == '' || jQuery("#zip").val().trim() … Continue reading jquery ajax form

How to use custom metabox form and ajax

function.php add code <?php // Register Custom Post Type function custom_post_type_order_book() { $labels = array( 'name' => _x( 'Book Orders', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Book Order', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Book Orders', 'text_domain' ), 'name_admin_bar' => __( 'Book Order', 'text_domain' ), 'archives' => __( 'Item … Continue reading How to use custom metabox form and ajax

Product inquiry woocommerce

<?php /* Plugin Name: Product inquire Version: 1.0 Author: Name Description: This pluging provide to product inquire */ function product_inquire_scripts() { wp_register_style( 'product-inquire-style', plugins_url('css/product-inquire.css', __FILE__) ); wp_enqueue_style( 'product-inquire-style' ); } add_action( 'wp_enqueue_scripts', 'product_inquire_scripts' ); /* Creating Menus */ function product_inquire_Menu() { /* Adding menus */ add_menu_page(__('Inquire List'),'Inquire List', 8,'proinq/inquirelist.php', 'inquire_list', "", 26); /* Adding Sub … Continue reading Product inquiry woocommerce