Posts

ADD COLUMN IN TABLE IN MYSQL IN OPENCART

Image

Get langitude and latitude using address in php

 <?php   $location = 'chandigarh';   $address = urlencode($location);   $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true";   $xml = simplexml_load_file($request_url) or die("url not loading");   $status = $xml->status;   if ($status=="OK") {       $ravilat = $xml->result->geometry->location->lat;       $ravilon = $xml->result->geometry->location->lng;         } ?> <script src="http://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var grayStyles = [         {           featureType: "all",           stylers: [            { hue: '#aaaaaa' },       { lightness: -15 },       { saturation: 99 }           ]         },       ];   var mapProp = {     center:new google.maps.LatLng(<?php echo $ravilat; ?>,<?php echo $ravilon; ?>),     zoom:10,

WEBSITE OPTIMIZATION

Page Speed: -  https://developers.google.com/speed/pagespeed/insights/ Html Validator: - https://validator.w3.org/ Seo Checking :- https://www.woorank.com/

Deny all Folder Exclude single folder HTACCESS

PUBLIC HTML ROOT FOLDER HTACCESS CODE <IfModule mod_rewrite.c>    RewriteEngine on    RewriteCond %{SERVER_PORT} 80    RewriteCond %{REQUEST_URI} /verify    RewriteCond %{REQUEST_URI} !(checkacheck/verify)    RewriteRule  /verify  - [F,L]    RewriteRule    ^$ app/webroot/    [L]    RewriteRule    (.*) app/webroot/$1 [L]         </IfModule> AddHandler x-httpd-php5 .php AddHandler x-httpd-php .php4 IN WHICH FOLDER WANTS TO ALLOW HTACCESS CODE <IfModule mod_rewrite.c>     RewriteEngine On     RewriteCond %{REQUEST_FILENAME} !-d     RewriteCond %{REQUEST_FILENAME} !-f     RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule>

Shoe Store Theme

Hi Friends, Today I released a new theme of Opencart. URL is :  http://www.opencart.com/index.php?route=extension/extension/info&extension_id=22532 This theme is for shoe store.

Magento can't login in admin with right username and password in localhost

If you are having trouble to get logged in with the correct username and password, here are some ideas. If you have used google chrome to install magento, use firefox to open magento and edit the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory and comment those below lines $cookieParams = array ( 'lifetime' => $cookie -> getLifetime (), 'path' => $cookie -> getPath () // 'domain' => $cookie->getConfigDomain(), // 'secure' => $cookie->isSecure(), // 'httponly' => $cookie->getHttponly() ); And use your credentials to log in. I hope this works for you!!!

Important Sites Bookmark

Curl Examples: -  http://www.php.net/manual/en/function.curl-setopt.php . Google Map Script Code: -  https://developers.google.com/maps/documentation/javascript/examples/ Jquery Light boxes :-  http://www.jquerycode.com/lightboxes/shadowbox-js/ FLV Player Code:-  http://www.gdd.ro/free-flash-flv-player/html-code-generator Tinyscrollbar :-  http://baijs.com/tinyscrollbar/ Htaccess :-  https://gist.github.com/ScottPhillips/1721489 Check best Browser Live :-  http://www.browserstack.com/start#os=android&os_version=4.0&device=Motorola+Razr&url=http%3A%2F%2Fsearchandsellfloridarealestate.com%2F&speed=1 Wordpress Genesis Framework: -  http://designsbynickthegeek.com/tutorials/genesis-explained-the-framework Audio & Video Player all support:-  http://mediaelementjs.com/ All types of sound clip examples: -  http://www.bigsoundbank.com/sound-0786-workbook.html Google Autocomplete Address Field :-  http://www.findsourcecode.com/google/how-to-make-an-autocomplete-a