What is google plus one

SEO
Google was introduced around with the name "+1" for an upcoming social product. At that time, we were told it was sort of like Google’s version of the "like" or "retweet" button. Google took a great decision to compete with Social Media giants like Facebook and Twitter. Google introducing +1 Button which is something in the similar lines of Facebook Like button. +1 Button will soon appear beside to search results and Google Adwords Advertisements. By clicking on this button, you can see how many of your friends liked this website/content/page/post etc.., it will also inform to your friends if you share a link online. When you're signed into your Google account, every Google search result will now have a +1 icon next to it. If you find the search…
Read More

Get Magento URL and Path

Magento
When you work or develop magento site so many places you need to some magento URL. Magento URL and magento path is very helpful to make development easy. When you want to create magento static block and you want to show some image or set any page link then you need to set exact path for that. Maegnto provide some basic path or URL by default. Here I want to show you magento path and URL. Use magento URL in static block get SKIN URL [php]{{skin url='images/sampleimage1.png'}}[/php] get Media URL [php]{{media url='/sampleimage1.png'}}[/php] get Store URL [php]{{store url='contact.html'}}[/php] get Base URL [php]{{base url='yourstore/contact.html'}}[/php] Use magento URL path in PHTML get Homepage URL [php]<?php $home_url = Mage::helper('core/url')->getHomeUrl(); ?>[/php] Or check current page is homepage [php]<?php if( Mage::getSingleton('cms/page')->getIdentifier() == 'home' && Mage::app()->getFrontController()->getRequest()->getRouteName() ==…
Read More

How to create custom module in magento

Magento
Magento is best eCommerce system now a days which is offering rich customization possibilities by extensions and modules. Magento is built on a fully modular model that influences an unlimited scalability and flexibility for your store. Ajaxform and Ajaxsubmit There are many things custom modules can do, from editing your Database, to handling module upgrades to overriding classes (Blocks, Controllers, Models) … and more! Magento is an open source solution. So you can write new modules for Magento by yourself. Here I want to show you how to create simple costume module magento. In Magento all modules are organized under a package. This package is nothing but a simple folder under codepool containing different modules. For example all core modules of magento system is kept under package “Mage” (open the…
Read More

AjaxForm and AjaxSubmit Options

JQuery
Ajaxform uses progressive enhancement, users without JavaScript can still use the form in a traditional way users with JavaScript will get a more sophisticated experience.AjaxForm takes zero or one argument. The single argument can be either a callback function or an Options Object. [code lang="js"]$('#myFormId').ajaxForm();[/code] AjaxForm and AjaxSubmit support numerous options which can be provided using an Options Object. The Options Object is simply a JavaScript object that contains properties with values set as follows: urlURL to which the form data will be submitted.Default value: value of form's action attributetypeThe method in which the form data should be submitted, 'GET' or 'POST'.Default value: value of form's method attribute (or 'GET' if none found)targetIdentifies the element(s) in the page to be updated with the server response. This value may be specified…
Read More

XML Sitemap for SEO

SEO
XML sitemap are best an easy method to inform search engines about the website content/pages. XML sitemap lists URLs for a website along with additional information like: date of update, how frequently usually changes, and importance. XML sitemap offer the ability for you to give a priority ranking to all your webpages on a scale from 0.0 to 1.0, with 1.0 being the most important and 0.5 being the default neutral rank. For example your index page you would give a ranking of 1.0 to, while your terms of service page you would probably want to assign a 0.1 to. This point value system helps the search engines by giving them and their bots a way to know which pages on your site you value most and therefore which to…
Read More

Benefits of SEO

SEO
SEO is a process where you can improve your site by ranking higher in search engines. It brings motivated buyers to you online and offline both. It sustains traffic to the site and builds a brand reputation of the same. Free article writing services can help you with SEO content for your site. =>Boost your trafficGet news coverage of your business and your site, Become active in bulletin boards and chat rooms focusing on your industry. =>Long term positioningOnce a website obtains a position through an SEO campaign, it should stay there for the long term as opposed to PPC (Pay Per Click). SEO is a cheaper and long-term solution than any other search engine marketing strategy. =>Increase VisibilityOnce a website has been optimized, it will increase the visibility of…
Read More

Add Remove CSS Class Mouseover with JQuery

JQuery
Sometimes we need to change css class on mouseover and mouseout event some of div, images, paragraph for the set any effect or beautiful looks. If you want to change any css class on mouseover this is possible to make very easily using of Jquery. Only three to four lines of code need write in jquery function to make or set any mouseover event to change css style class. Change style class on mouseover with Jquery Here is the one div which is shows navigation menu. [sourcecode language="plain"] <div clas="leftside"> <div class="navOut"><a href="#">ITEM 1</a></div> <div class="navOut"><a href="#">ITEM 2</a></div> <div class="navOut"><a href="#">ITEM 3</a></div> <div class="navOut"><a href="#">ITEM 4</a></div> </div> [/sourcecode] Here is the jQuery function to add rollover effects to this navigation: [code lang="js"] <script type="text/javascript"> $("div.navOut").mouseover(function(){ $(this).removeClass().addClass("navOver"); }).mouseout(function(){ $(this).removeClass().addClass("navOut"); }); </script>…
Read More

Change image on mouse hover effect with jquery

JQuery
This is possible to many way change image on mouse hover effect like javascript. But it will take time and much coding compare to do with jquery. This is very easy to make mouse hover effect with jquery. How to change image mouse over effect with jquery we first need to add the jquery library script [code lang="js"]<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>[/code] [code lang="js"]<img src="logo.png" alt="juswebdevelopment" class="logo" />[/code] This is jquery function for shows change hover effect [code lang="js"] <script type='text/javascript'> $(document).ready(function(){ $(".logo").hover( function() {$(this).attr("src","logo-hover.png");}, function() {$(this).attr("src","logo.png"); }); }); </script> [/code] This function is working with image class="logo". When mouse hover on class logo that time its call this function and change the image as per code.
Read More

Get attribute name and value magento

Magento
In magento you can create as many custom attributes for your products as you want.Suppose you want to add or display brand color for every product on home, category or product page. So this is very easy to do with custom attributes. If we were to create a new custom attribute called "brand_color" and the attribute was of a "Text Field" type, we could do something like the following at a product level to obtain its value. [php]<?php echo $_product->getBrandColor(); ?>[/php] Get attribute collection [php]<?php $attribute = $_product->getResource()->getAttribute('my_attribute'); ?>[/php] Get attribute type [php]<?php $attribute = $_product->getResource()->getAttribute('my_attribute')->getAttributeType(); ?>[/php] Get attribute Label [php]<?php $attribute = $_product->getResource()->getAttribute('my_attribute')->getFrontendLabel(); ?>[/php] Attribute is visible or not [php]<?php $attribute = $_product->getResource()->getAttribute('my_attribute')->getIsVisible(); ?>[/php] Attribute is required [php]<?php $attribute = $_product->getResource()->getAttribute('my_attribute')->getIsRequired(); ?>[/php] Get attribute value [php]<?php $attributeValue = Mage::getModel('catalog/product')->load($_product->getId())->getMyAttribute();?>[/php]…
Read More

Excute custom query in magento

Magento
Magento has provide us very good features for handling or interacting with Database tables. Magento give all the data by default but some time we need to get or insert some custom data.So for this we need to write custom query. Database Connections In Magento [php] <?php // fetch read database connection that is used in Mage_Core module $read= Mage::getSingleton('core/resource')->getConnection('core_read'); // fetch write database connection that is used in Mage_Core module $write = Mage::getSingleton('core/resource')->getConnection('core_write'); ?> [/php] How to excute custom query in magento [php] <?php // fetch read database connection that is used in Mage_Core module $read= Mage::getSingleton('core/resource')->getConnection('core_read'); $value=$read->query("SELECT ...."); $row = $value->fetch(); echo "<pre>";print_r($row);echo "</pre>"; // As Array ?> [/php] Insert custom data in magento tabel [php] <?php // fetch write database connection that is used in Mage_Core module…
Read More