Adding a Twitter feed in Magento

Posted By admin   |   Posted On January 19th, 2012

As most of the Magento users would be aware of, there is no default option for twitter feed in Magento. If you wish to have twitter feed in your site, you will need to create it manually.  We have discussed in this Blog the simple steps of adding a twitter feed in magento.

Step 1:

Go to the following site and include your Twitter Username: http://twitter.com/about/resources/widgets/widget_profile. Once done, click finish and grab the code. The script code will generate a copy of it.

Step 2:

The next step will be creating a static block for your twitter feed.

In magento admin panel:

Go-> CMS->Static block->add new block

Name : twitter

Id : twitter

Status : enabled

Step 3:

If you wish to show the twitter feed in homepage, you will need to copy and paste the code given below in CMS->Page->Homepage->content

Code:

Code:

  1. {{block type="cms/block" block_id="twitter"}}

In a similar fashion, you will need to call a static block in sidebar as well.

For left sidebar: app/design/frontend/default/yourtheme/layout/catalog.xml

  1. <reference name=”left”>
  2.  
  3. <block type="cms/block"> <actionmethod="setBlockId"><block_id>twitter</block_id></action></block>
  4.  
  5. </reference>

Output:

magentotwitter

Stay tuned to our Cogzidel templates Blog for more sparkling news and updates!!

  • Share/Bookmark

New PHPMotion 3.5 Template: Love Videos

Posted By admin   |   Posted On January 19th, 2012

Cogzideltemplates.com known for offering bulk of templates flooded with rocking designs and bright colors has added a new theme titled Love Videos in PHPmotion 3.5 category. This crisp template has been designed to look clean and high-tech which is meant to attract the customers on their first visit to the site. This template will turn out to be an excellent choice for building social network sites where people can meet and share the videos, images and much more.

love_birds(1)

As this template is custom friendly, you can customize it as per your requirement and we can guarantee that your members will totally love this one! You can submit your suggestions on this fresh template to us.
To purchase this Php motion template, please follow this link, http://www.cogzideltemplates.com/templates/view/469

  • Share/Bookmark

How to display Minified login form in Magento homepage?

Posted By admin   |   Posted On January 5th, 2012

In Magento, the default homepage has got sidebars and main only.  Login page will not be available by default in the magento homepage. As most of the clients or customers are interested to have login form in the homepage so as to create a quick login area for their users, you will need to apply the below code in cms.xml file. Once the steps given below are followed, you will get the minified login page in magento homepage.

Path:

  1. app/design/frontend/default/your theme /layout/cms.xml

In Cms.xml file, search for the following line given below:

  1. <reference name=”content”>  <block type="cms/page"/> </reference>

Replace the above line with the following lines:

  1. <reference name=”content”>
  2.  
  3. <block type="customer/form_login" template="customer/form/mini.login.phtml" />
  4.  
  5. <block type="cms/page"/>
  6.  
  7. </reference>

Please refer to the screen shot given below for pictorial representation of this Blog:

minifiedlogin

  • Share/Bookmark

Are you looking to Display Customer login form in Magento homepage?

Posted By admin   |   Posted On January 5th, 2012

We would like to share the simple steps involved to display the customer login page in the homepage in Magento. Follow the path and attain it with ease so that the existing Customers can login using their username, password and the new customers can create an account quickly.

Path:

  1. app/design/frontend/default/your theme /layout/cms.xml

In Cms.xml file, search for the following line given below:

  1. <reference name=”content”>  <block type="cms/page"/> </reference>

Replace the above line with the lines given below:

  1. <reference name=”content”>
  2.  
  3. <block type="customer/form_login" template="customer/form/login.phtml"/>
  4.  
  5. <block type="cms/page"/>
  6.  
  7. </reference>

Once the above steps are completed, the customer login form will be displayed in the homepage.

image_magento

  • Share/Bookmark

Free Dolphin 7.0.8 Templates

Posted By admin   |   Posted On January 5th, 2012

Cogzidel Templates is happy to announce that all the free Dolphin Templates have been upgraded to the latest version of Dolphin – Dolphin 7.0.8. Sounds interesting right? The wide choice of amazing free Dolphin templates can be availed in few steps using the URL given below:

free_dolphin_temp_ver708
•  Dolphin Free Templates
url: http://www.cogzideltemplates.com/download_free/templates/38

  • Share/Bookmark

Premium Dolphin 7.0.8 Templates

Posted By admin   |   Posted On January 5th, 2012

Cogzidel Templates is proud to announce that the Premium Dolphin Templates have been updated from Dolphin 7.0.7 version to 7.0.8 version. If you feel that it’s the right time to move on from the current look and avail the premium templates available in the latest version of dolphin, go ahead and review our list of premium dolphin templates using the url given below:

• Dolphin Premium Templates
url:http://www.cogzideltemplates.com/template/CMS_Templates/Dolphin_7_Templates

premium_dolp_temp_ver708

  • Share/Bookmark

Steps to add SKU & Short Description in the Description page in Magento

Posted By admin   |   Posted On November 23rd, 2011

In default Magento, SKU and the short description details are given in the backend side. But it’s value will not be shown in the front page. We would like to discuss in this blog post about the steps in fetching the individual data and displaying them in the description page. Please check with the code given below:

Sku

  1. <?=$_product->getSku()?>

Short Description

  1. <?=$_product->getShortDescription()?>

Similarly, you can also show the Full description in the description page. You will only need to remove the word short in the above code. The code is given below for reference;

  1. <?=$_product->getDescription()?>

A Screenshot given below for reference

magento sku and short description

  • Share/Bookmark

Individual code for Quantity, Price, & Add to cart for description page in Magento

Posted By admin   |   Posted On November 23rd, 2011

In Magento, it is not possible to split the code as per the design in the Description page. We would like to share our knowledge on splitting the code individually for Quantity, Price and Add to Cart. Please find below the codes using which you can attain it with ease.

Quantity:

  1. <?php echo $this->__('quantity:') ?>
  2. <input name="qty" id="qty" maxlength="5" value="<?php echo $this->getMinimalQty($_product)== null?1:$this->getMinimalQty($_product) ?>"/>

Price:

  1. <?php echo $this->getPriceHtml($_product, true) ?>

Add to cart:

  1. <?if($_product->isSaleable()):?>
  2. <button class="form-button"><span><?=__('Add to Cart')?></span></button>
  3. <?endif;?>

A Screenshot given below for reference :

quantity price and add to cart

  • Share/Bookmark

Steps to add name and description of the Categories in Magento

Posted By admin   |   Posted On November 23rd, 2011

In Magento, name of the Categories and its Descriptions are shown in the Categories page. If you are looking to place this name below the toolbar or anywhere in magento, the php codes given below can be used.

Category name

  1. <h1> <?php echo Mage::getModel('catalog/layer')->getCurrentCategory()->getName(); ?> </h1>

Category description

  1. <?php echo Mage::getModel('catalog/layer')->getCurrentCategory()->getDescription(); ?>

A Screenshot given below for reference

category name and description

  • Share/Bookmark

How to write a Css code suitable for Mobile Resolutions

Posted By admin   |   Posted On November 18th, 2011

We have shared the steps to write a Css code suitable for Mobile Resolutions in this blog.

What’s the need for these types of Css?

When we apply normal css code in our site, the site will work properly. But when we go for mobile type and laptop type resolutions, normal css codes will not be able to produce profitable results. In these types of css framework codes, we will need to check our site in mobile resolutions as well. That’s the reason for this type of code being far better than the earlier one.

The solution for this type of coding is very simple. We have given below the process to write a CSS code which will suit Mobile resolutions:

1. Initially, you will need to write this code in an index.html page

(A) In the beginning of an html page, put this type of code before tag.

  1. <!doctype html>
  2. <html lang="en">

(B) After writing the above code inside the head tag, declare the types of codes shown below

  1. <head>
  2. <meta charset="utf-8" />
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  4. <!--[if lte IE 9]><link rel="stylesheet" href="css/ie.css" type="text/css" media="screen"/><![endif]-->
  5. <link rel="stylesheet" href="css/style.css" media="screen" />
  6. (or)
  7. <link rel="stylesheet" href=" css / style.css " media="only screen and (max-width:1023px)">
  8. <link rel="stylesheet" href="css/ mobile.css" media="screen" />

Or

{Note : You declare below type you call a css code in separate stylesheet}

  1. <link rel="stylesheet" href="css/mobile.css" media="handheld, only screen and (max-width: 767px)">
  2. </head>

(C) After calling the css files in the head, you will need to write your html codes

For example:

  1. <div class="container">
  2. <div>
  3. <div class="onecol">
  4. <p>One</p>
  5. </div>
  6. <div class="onecol">
  7. <p>One</p>
  8. </div>
  9. <div class="onecol">
  10. <p>One</p>
  11. </div>
  12. <div class="onecol">
  13. <p>One</p>
  14. </div>
  15. </div>
  16. </div>

(D) At the last, create CSS files

In style .css write this code in the container

In css, initially you will need to set the padding for container:

  1. .container { Padding-left:20px; Padding-right:20px; }

(2) A common code is given below:

  1. html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,address,cite,code,del,dfn,em,img,ins,q,small,strong,sub,sup,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;margin:0;padding:0}article,aside,figure,figure img,figcaption,hgroup,footer,header,nav,section,video,object{display:block}a img{border:0}figure{position:relative}figure img{width:100%}

(3) You do not give width and height for images online. You must write these code in css for image tag

  1. img, object, embed {
  2. max-width: 100%;}
  3. img {
  4. height: auto;}

(4) The next step is Max-width: 1140px which is set to your div and also width: 100%

  1. .row
  2. {
  3. width: 100%;
  4. max-width: 1140px;
  5. min-width: 755px;
  6. margin: 0 auto;
  7. overflow: hidden;
  8. }
  9. .row .onecol {
  10. width: 4.85%;
  11. }

(5) After completion of the above steps comes the most important part where you will mention the code for various resolution here.

  1. @media only screen and (max-width: 1023px) {
  2. body {
  3. font-size: 0.8em;
  4. line-height: 1.5em;
  5. }
  6. }

Below code is used for mobile. When you see the site in mobile resolution, these type of css code will be called.

  1. /* Mobile */
  2. @media handheld, only screen and (max-width: 767px) {
  3. body {
  4. font-size: 16px;
  5. -webkit-text-size-adjust: none;
  6. }
  7. .row, body, .container {
  8. width: 100%;
  9. min-width: 0;
  10. margin-left: 0px;
  11. margin-right: 0px;
  12. padding-left: 0px;
  13. padding-right: 0px;
  14. }
  15. .row .onecol, .row .twocol, .row .threecol, .row .fourcol, .row .fivecol, .row .sixcol, .row .sevencol, .row .eightcol, .row .ninecol, .row .tencol, .row .elevencol, .row .twelvecol {
  16. width: auto;
  17. float: none;
  18. margin-left: 0px;
  19. margin-right: 0px;
  20. padding-left: 20px;
  21. padding-right: 20px;
  22. }
  23. }

Upon completion of the steps stated above, you are done. You can now go and run your html page in your browser and also check various resolutions.

Please refer to the Screenshots given below:

1. Normal resolution

normal

2. Smaller Screen Resolution

small

3. Mobile resolution

In this type of resolution, the entire floating elements are mentioned as none in css. Please refer to the css codes given above in this post.

mobile

  • Share/Bookmark