Create custom widget area in wordpress.
https://phpajaxhtml.blogspot.in/2018/04/create-custom-widget-in-wordpress.htmlTags: PHP, MySql, Wordpress
2340 days ago
Insert data through ajax into MySql database.
Insert data through ajax into MySql database.1. Create form.php and copy below code into file. <script type="text/javascript"> $(document).ready(function(){ $('#submit').click(function(){ var name= $('#name').val(); var email= $('#email').val(); var sdatatring='name1='+ name +'&emai...Tags: PHP, MySql, Wordpress, Ajax, Programming, Language
2340 days ago
Check product if already exist in to cart using woocommerce.
Check product if already exist in to cart using woocommerce.add_action( 'woocommerce_add_to_cart_validation', 'check_product_added_to_cart', 10, 3 );function check_product_added_to_cart( $passed, $product_id, $quantity) {foreach (WC()->cart->get_cart() as $cart_key => $cart_item ){// if ...Tags: PHP, MySql, Wordpress, woocommerce
2336 days ago