<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>SEO Friendly URLs for common pages</name>
<version>1.0</version>
<code>commonpagesurl</code>
<author>agatha65.com</author>
<file path="catalog/controller/common/seo_url.php">
<operation>
<search><![CDATA[
class ControllerCommonSeoUrl extends Controller {
]]></search>
<add position="after"><![CDATA[
private $urlCustom = array (
'common/home' => '',
'account/wishlist' => 'wishlist',
'account/account' => 'my-account',
'checkout/cart' => 'shopping-cart',
'checkout/checkout' => 'checkout',
'account/login' => 'login',
'account/logout' => 'logout',
'account/order' => 'order-history',
'account/newsletter' => 'newsletter',
'account/return/add' => 'return-add',
'product/special' => 'specials',
'affiliate/account' => 'affiliates',
'checkout/voucher' => 'gift-vouchers',
'product/manufacturer' => 'brands',
'information/contact' => 'contact-us',
'account/return/insert' => 'request-return',
'information/sitemap' => 'sitemap',
'account/forgotten' => 'forgot-password',
'account/download' => 'downloads',
'account/return' => 'returns',
'account/transaction' => 'transactions',
'account/register' => 'create-account',
'product/compare' => 'compare-products',
'product/search' => 'search',
'account/edit' => 'edit-account',
'account/password' => 'change-password',
'account/address' => 'address-book',
'account/reward' => 'reward-points',
'account/voucher' => 'buy-gift-sertificate',
'affiliate/edit' => 'edit-affiliate-account',
'affiliate/password' => 'change-affiliate-password',
'affiliate/payment' => 'affiliate-payment-options',
'affiliate/tracking' => 'affiliate-tracking-code',
'affiliate/transaction' => 'affiliate-transactions',
'affiliate/logout' => 'affiliate-logout',
'affiliate/forgotten' => 'affiliate-forgot-password',
'affiliate/register' => 'create-affiliate-account',
'affiliate/login' => 'affiliate-login'
);
]]></add>
</operation>
<operation>
<search><![CDATA[
$this->request->get['route'] = 'error/not_found';
]]></search>
<add position="replace"><![CDATA[
if (in_array($this->request->get['_route_'], $this->urlCustom)) {
$this->request->get['route'] = array_search($this->request->get['_route_'], $this->urlCustom);
} else {
$this->request->get['route'] = 'error/not_found';
}
]]></add>
</operation>
<operation>
<search><![CDATA[
unset($data[$key]);
]]></search>
<add position="replace"><![CDATA[
unset($data[$key]);
} else {
$this->urlCustom = array_flip($this->urlCustom);
if (in_array($data['route'], $this->urlCustom)) {
$url = '/' . array_search($data['route'], $this->urlCustom);
}
$this->urlCustom = array_flip($this->urlCustom);
]]></add>
</operation>
</file>
</modification>