One of the things you have to deal with when switching from another e-commerce software to Magento are URL redirects. Over the past years you (hopefully) received many incoming deep links. You surely know that incoming links are one of the main ranking factors for most search engines. So when you switch to another e-commerce software, these deep links get useless because they point to subpages that don’t exist (unless you don’t have the exact same URL structure in your new shop). The common way to solve this issue is just to do a 301 redirect (permantly redirect) from the old URLs to the new ones. You have the possibility to define the redirects in your .htaccess file or with the Magentos build-in “URL Rewrite Management” (in the Backend “Catalog” -> “URL Rewrite Management”). (more…)
Review of Mxperts jQuery extension & conflicting overrides
Magento Experts (Mxperts) is the number one Magento related Blog in Germany. Today they released a Magento extension that allows you to easily load jQuery into your Magento store. You just have to install the extension and jQuery gets automatically loaded. In the configuration menu of your Magento backend there is a new section, where you can enable different settings like loading jQuery in the minified/compressed way or turning on/off the conflict mode. The extension keeps your jQuery version up-to-date but also allows you to specify a certain jQuery version to be loaded. (more…)
Zend Framework redirect from www
You may already know that velite.de is based on Zend Framework, just like Magento. For obvious reasons like SEO and style we wanted to redirect www.velite.de/foo to velite.de/foo. Even more because of the style fact than because of SEO. However, first I thought about implementing this by the standard mod_rewrite function in a .htaccess file. But I got the idea, it would be nicer realizing it within the Zend Framework itself. So I created a little Frontend Plugin I want to share with you, take a look:
class My_Controller_Plugin_Wwwredir extends Zend_Controller_Plugin_Abstract
{
public function preDispatch(Zend_Controller_Request_Abstract $request)
{
$piece = strtolower(substr($_SERVER['SERVER_NAME'],0,4));
if (strcmp($piece, 'www.')==0)
{
$url = 'http://' . substr($_SERVER['SERVER_NAME'],
4).$_SERVER['REQUEST_URI'];
$response = $this->getResponse();
$response->setRedirect( $url, 301 );
$response->sendResponse();
exit;
}
}
Magento Code Snippets
You want to start coding your own Magento extension and you are frustrated because Varien doesn’t provide a documentation? I also don’t have any documentation for you :-). But what helped me getting started are these Code-Snippets on snippi.net. The Website is run by Branko Ajzele. His blog is also a good ressource to get information about extension programming for Magento.



