Author: darshakkumar
-
Magento 2 Remove Phone Number field from checkout page
In Magento 2.2 admin panel, there is a facility to disable Phone number field. But what about in Magento 2.0? You can do via code. Please follow the steps. Please take a back up of checkout_index_index.xml (vendor/magento/module-checkout/view/frontend/layout/) Copy checkout_index_index.xml to app/design/frontend/<vendor-name>/<theme-name>/Magento_Checkout/layout/ Add/replace following code in checkout_index_index.xml <item name=”telephone” xsi:type=”array”> <item name=”visible” xsi:type=”boolean”>false</item> <item name=”config”…
-
Redirection after login in Magento 1.9 without extension
Hello Reader, Happy New Year! This tutorial explains how to redirect to other page after login in Magento 1.9 without extension. I know in Magento marketplace there are lots of extensions available. But we don’t want to use such kinds of extension. Just follow my step are as follow : Please download observer extension. In…
-
Auto save form using PHP, jQuery
This blog is regarding how to auto save form using PHP, jQuery. There are many tutorial available but it is very simple method. HTML Form : <form id=”auto-save-form”> Name : <input name=”name” type=”text” /> Email : <input name=”email” type=”text”> <input name=”submit” type=”submit”/> </form> JQuery Code: /*Form Auto Submit Logic*/ var changeFlag = false; var focusFlag…
-
PHP v/s .net
This blog I write today that about to PHP vs .NET. I’m ex. Microsoft Student Partner and Microsoft Certified Developers even if I’m oppose to .NET. Why? Find my answers below. PHP is a free open source. So, we should not need to pay any fees for PHP. PHP is runs on various operating system.…
-
Desktop v/s Web Application
Hello Folks! I hope you are all enjoying my blog. Today, I am sharing views on Desktop v/s Web Application. There are many advantages and disadvantages of both the applications. Both the applications are good and have their own great characteristics. What is Desktop Application? A Desktop application is an application that runs on various…
-
printing webpage without opening new window using jQuery
Print is a create a big problem to mostly developers (I’m one of them). The problem like “print without opening new window”. Today, in this post I write a solutions of same problem. The solutions is : Use Jquery/Javascript with iframe elements. Small code for solution is below. var theUrl=”print.html”; $(“<iframe>”) // create a new…
-
Text to Speech | Synthesizer in PHP
I hope you all are well and enjoy my blog. After long time a write a one blog for my best blog reader. This post is regarding to text to speech. Its simply speech synthesizer. There are many things available but its limited to free.(open source). In, this blog there is a free open source…
-
how to handle dynamic multiple checkbox in php
<?php if($_SERVER[‘REQUEST_METHOD’]==’POST’) { $str=””; // if the chkbox selected then selected checkbox values are come otherwise its not come foreach($_POST[‘chkbox’] as $chkbox) { $str .=$chkbox.”,”; } echo $str; echo substr($str,0,-1);//remove last one char (, comma) from this string } ?> <!– suppose you have dynamic checkbox. Those comes from database . So, you can use…
-
Remove the elements from array in php
<?php $String_array=array(“a”,”b”,”c”,”d”); $string_search=”c”; echo “<pre>”; print_r($String_array); /* OUTPUT OF print_r($string_array); Array ( [0] => a [1] => b [2] => c [3] => d ) Now, We have to remove “c” value of element [2] from array */ unset($String_array[array_search($string_search, $String_array)]); /* * From Above code : * first search the element from the array using…
-
Rotate Image using Jquery & PHP
Many Library available for rotating the image object. But, here we are rotating the image object using Jquery, Ajax and PHP. Here using PHP GD library for rotating the image object. There are many options to rotate the image object. But, here we using simple method. Note: In this example We used jpeg format Image.…
