Posts

Showing posts from 2015

Make URLs seo friendly in Opencart in Live or Localhost in just few steps

LIVE  1. Rename your OpenCart .htaccess.txt file to  .htaccess 2. Do this given below changes in HTACCESS For stores installed in a subdirectory (i.e.  www.yoursitename.com/store/ ) Change  RewriteBase /   to   RewriteBase /store/ in HTACCESS For stores installed in a rootdirectory (i.e.  www.yoursitename.com/ )   For stores installed in a rootdirectory (i.e.  www.yoursitename.com/ ) Don't change anything in HTACCESS 3.  OpenCart admin panel and go to:  System->Settings->Edit->Click the “Server” Tab . The top option should be the one named “Use SEO URL’s”, simply click that to Yes and click Save. LOCALHOST 1. Rename your OpenCart folder .htaccess.txt file to  .htaccess 2. Do this given below changes in HTACCESS For stores installed in a subdirectory (i.e.  http://localhost/opencartstore ) Change  RewriteBase /  to   RewriteBase / opencartstore /  in HTACCESS Remember we have http://localhost/  is here wo

Redirect non-www to www URL's using htaccess and Vice Versa

# Redirect non-www to www: RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] www to non-www # Redirect www to non-www RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] Or try this link http://www.thesitewizard.com/apache/redirect-domain-www-subdomain.shtml

IP canonicalization

Image
IP canonicalization is a technique sometimes used for SEO (search engine optimization). When a site's IP address is canonicalized, the IP address redirects to the domain name.

Show google Map using Address with 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,

Show Google Map using Address with JQuery

Address: Locate

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

Multicart product extension

Hello Friends I released a Multicart product extension in Opencart please have a look at my new extension of Opencartand enjoy it from here:- http://www.opencart.com/index.php?route=extension/extension/info&extension_id=20409

Simple Interest Calculator Extension Released in Opencart

Hello Friends I released a new Extension module for opencart Simple Interest Calculator Version 1.1.0 you can download it from here:- http://www.opencart.com/index.php?route=extension/extension/info&extension_id=20221&filter_username=rahul2013sifa Enjoy my new Extension in Opencart

Version 2.1.0 Footer Special Extension

Hello User Greetings!! I updated my footer specail extension to new version for opencart version 2.1.0 you can download it free from here:- http://www.opencart.com/index.php?route=extension/extension/info&extension_id=14352&filter_username=rahul2013sifa please must review my new extension.

Event timeing codes

function eventTiming($time){ $time = time() - $time; $tokens = array (31536000 => 'year',2592000 => 'month',604800 => 'week',86400 => 'day',3600 => 'hour',60 => 'minute',1 => 'second'); foreach ($tokens as $unit => $text) { if ($time < $unit) continue; $numberOfUnits = floor($time / $unit); return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':'');}}

Real Player Script Code

<script src="realplayer/jquery_002.js" type="text/javascript"></script><script src="realplayer/chili-1.js" type="text/javascript"></script> <script src="realplayer/jquery.js" type="text/javascript"></script><script src="realplayer/jquery_003.js" type="text/javascript"></script> <script src="realplayer/swfobject.js" type="text/javascript"></script></code> <div class="media {width:400, height:250, params: {controls:'imagewindow,controlpanel'}}"><object data="my_eyes_open.ram" type="audio/x-pn-realaudio-plugin" width="400" height="250"> <param name="src" value="my_eyes_open.ram" /> <param name="bgColor" value="#ffffff" /> <param name="controls" value="imagewindow,controlpanel" />