Glasses Fashion Magento Theme

Share
Posted on September 15th, 2011 | Posted by admin
  • Quickstart package with Latest Magento version + Full MA extesion + Sample database same as in live demo site
  • MA Easy Banner1 ( Slideshow Image)
  • MA Featured Product Slider module
  • MA New Product module
  • MA Bestseller Product vertical scroller ( Show top seller product)
  • Template is fully compatible with magento verion: 1.4.x.x, 1.5.x.x, 1.6
  • PSDs file supplied, easy to edit
  • 100% Tableless design. 100% HTML/CSS/DIV compliance.
  • Valid XHTML and CSS markup
  • Tutorial and detailed User guide for installation and using.
  • Cross Browser Support (IE 7+, Safari, Mozilla Firefox, Chrome, Opera 9+)
  • The extensions used is provided by our own( Plazathemes.com)

Magento: Adding breadcrumbs to Homepage

Share
Posted on September 9th, 2011 | Posted by admin

1.  Register the new module (we will call the module CMS and give the development company the name Acme):

In your “magento\app\etc\modules” directory create a file named Acme_All.xml with the following content:-


<?xml version="1.0"?>
<config>
<modules>
<Acme_Cms>
<active>true</active>
<codePool>local</codePool>
</Acme_Cms>
</modules>
</config>

2.  Register the module (which will be implemented in the class
Acme_Cms_Block_Page) as being responsible for rewrite-ing the cms/page
block
In a “magento\app\code\local\Acme\Cms\etc “directory (you will need to
create it) create a config.xml file with the following content:-

Magento – Layered Navigation Custom

Share
Posted on September 9th, 2011 | Posted by admin

Magento - Layered Navigation Custom

If you want you layered navigation to be customized like the image above follow me…

We need to edit 3 files..

  • styles.css
  • template/catalog/layer/filter.phtml
  • template/catalog/layer/view.phtml

filter.phtml

Magento – Add Thumbnail Image in Transaction email

Share
Posted on September 9th, 2011 | Posted by admin

A client requested adding product thumbnail images in the Order Confirmation Email that is sent after a customer order a product.. Without much ado here’s the code…

<?php //added for sending image with order
$product = Mage::getModel(‘catalog/product’)
->setStoreId($_item->getOrder()->getStoreId())
->load($_item->getProductId());
?>
<p align=”center”><img src=”<?php echo Mage::helper(‘catalog/image’)->init($product, ‘image’)->resize(50); ?>” width=”50″ /></p>

add this snippet below <td align=”left” valign=”top” style=”padding:3px 9px”>

Magento – Display Categories (with category images) in the homepage

Share
Posted on September 9th, 2011 | Posted by admin

<div>
<?php
/*
$_helper    = $this->helper(‘catalog/output’);
$_category  = $this->getCurrentCategory();
$_imgHtml   = ”;

if ($_imgUrl = $_category->getImageUrl()) {
$_imgHtml = ‘<p><img src=”‘.$_imgUrl.’” /></p>’;
$_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, ‘image’);
}*/
?>

<?php // Iterate all categories in store
$limit = 0;
$_helper    = $this->helper(‘catalog/output’);
foreach ($this->getStoreCategories() as $_category):

// If category is Active
if($_category->getIsActive()):

// Load the actual category object for this category
$cur_category = Mage::getModel(‘catalog/category’)->load($_category->getId());

if ($_imgUrl = $cur_category->getImageUrl()){

$_imgHtml = ‘<img src=”‘.$_imgUrl.’”  width=”105px” />’;
$_imgHtml = $_helper->categoryAttribute($cur_category, $_imgHtml, ‘image’);
} ?>
<div>
<div>
<a href=”<?php echo $this->getCategoryUrl($cur_category) ?>” style=”border:none”>
<?php echo $_imgHtml; ?>
</a>
</div>
<div>
<a href=”<?php echo $this->getCategoryUrl($cur_category) ?>”>
<?php echo $_helper->categoryAttribute($cur_category, $cur_category->getName(), ‘name’) ?>
</a>
</div>
</div>