Google Map API set marker to current user location

How to get current user location using Google map API and set the google map marker to the current user location with Info window.  Yes, it is possible to get the current user location using Google map API.

Continue reading Google Map API set marker to current user location

Drupal Ubercart hook after complete purchase order object saved.

Ubercart is the best and highly used e-commerce framework for Drupal. Ubercart provides awesome hook functionality. Using hook we can able to change some functionality without touching or modify the Ubercart code file.

Continue reading Drupal Ubercart hook after complete purchase order object saved.

Javascript validation to allow the only numeric value in the text field.

How to set the validation to allow only numeric value in the HTML text field using JAVASCRIPT. We can set the validation using window keycode event on JAVASCRIPT. Like we want to allow the user only able to enter the numeric value in the text field just we need to set JAVASCRIPT function called on KeyPress like below.

Continue reading Javascript validation to allow the only numeric value in the text field.

PHP get latitude and longitude from address using Google geolocation API

How to get¬†latitude and longitude from address using Google geolocation API PHP. Many times we need to get the latitude and longitude from the address given by the user. Let’s see the example of getting the latitude and longitude from address using Google geolocation API.

Continue reading PHP get latitude and longitude from address using Google geolocation API

Laravel create excel file directly from blade view using Laravel Excel Maatwebsite

Laravel create the excel file directly from the blade view HTML table. It’s too easy and the fastest way to generate excel file from HTML table. Without blade view file we need to create the code for the generating the excel file. We need to set the array to the proper column format for generating the excel sheet. Now, forget all those things and just create the table on the Laravel blade view file.

Continue reading Laravel create excel file directly from blade view using Laravel Excel Maatwebsite