Magento module gathering good SEO practices.
Add this repository to your composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/occitech/Occitech_Seo.git"
}
]
}
then composer require occitech/seo
Download an archive from this repository, place it in a .modman
directory at the root of your Magento project, then modman deploy
Download an archive from this repository, then move the folder to the correct destination in your Magento project.
For now some template have to be modified.
page/1column.phtml
, page/2columns-left.phtml
, page/2columns-right.phtml
, page/3columns.phtml
The <head>
tag should look like this:
<head <?php echo Mage::helper('occitech_seo')->webSiteElementRoot(); ?>>
The <body>
tag should look like this:
<body […] <?php echo Mage::helper('occitech_seo')->webPageElementRoot() ?>>
The <div>
or whatever tag surround <?php echo $this->getChildHtml('content') ?>
should look like this:
<div […] <?php echo Mage::helper('occitech_seo')->itemprop('mainContentOfPage') ?>>
catalog/product/list.phtml
For both grid and list mode, insert this code after the closing list item </li>
tag (it should be right before a <?php endforeach ?>
:
<?php
echo $this->getLayout()
->createBlock('occitech_seo/product', 'microdata', array('product' => $_product))
->toHtml();
?>