If you have more questions, feel free to poke me via support@thekrotek.com
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
<modification>
<id>Friendly URLs</id>
<version>1.0.0</version>
<vqmver>2.1.5</vqmver>
<author>N2R Technologies</author>
<file name="catalog/controller/startup/seo_url.php">
<operation>
<search position="replace"><![CDATA[$this->request->get['route'] = 'error/not_found';]]></search>
<add><![CDATA[
if ($this->request->get['_route_'] == 'contact') { $this->request->get['route'] = 'information/contact';}
else {
$this->request->get['route'] = 'error/not_found';
}
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[$key == 'path']]></search>
<add><![CDATA[
} elseif (isset($data['route']) && $data['route'] == 'information/contact') { $url .= '/contact';
]]></add>
</operation>
</file>
</modification>
For support please contact http://www.n2rtechnologies.com
Attachments
Friendly URL
Download Free OpenCart Module.
OpenCart FREE Extensions
Hire Us and Get Free Support.
Hire OpenCart Developer
Thank you!

but I did it for you, and found the same Code in OC2.2+ and OC 3.
Still, I cannot see, how this should work, in the lower Section at least, as shown
in the VqMod, by use of this:
Code: Select all
<search position="before"><![CDATA[$key == 'path']]></search>
Code: Select all
} elseif (isset($data['route']) && $data['route'] == 'information/contact') { $url .= '/contact';
Code: Select all
} elseif (} elseif (isset($data['route']) && $data['route'] == 'information/contact') { $url .= '/contact'; $key == 'path') {

Possibly, the second 'vqmod - anchor/tag' line should be replaced in full !?
---
Ernie
---
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Exactly, I tried it & it made no sense. But I figured, hey, maybe I'm missing something...
Thanks for the additional info!
then clear/reset your OcMod Cache and VqMod Cache, and you'll know.
Or then, the OcMod LOG will tell you, where it screwed up!
Good Luck!

Ernie
---
name it: friendly_url.ocmod.xml and if you cannot install it, as it comes,
then upload it into the /system... Subdirectory, and restart your Shop,
then clean out the Cache Sections again, and re-check, what happen.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name><![CDATA[Friendly Contact URL]]></name>
<code><![CDATA[friendly_contact_url]]></code>
<version><![CDATA[OC v.2.2 +]]></version>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file path="catalog/controller/startup/seo_url.php">
<operation>
<search><![CDATA[$this->request->get['route'] = 'error/not_found';]]></search>
<add position="replace"><![CDATA[
if ($this->request->get['_route_'] == 'contact') { $this->request->get['route'] = 'information/contact';
} else {
$this->request->get['route'] = 'error/not_found';
}
]]></add>
</operation>
<operation>
<search><![CDATA[} elseif ($key == 'path') {]]></search>
<add position="replace"><![CDATA[
} elseif (isset($data['route']) && $data['route'] == 'information/contact') {
$url .= '/contact';
]]></add>
</operation>
</file>
</modification>
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.

It's a catalog/controller/startup/seo_url.php replacement File,
so, just rename the existing file, and upload the new one, to test it out.
Still, always clear out your cache Sections first.
Good Luck

Ernie
---
SEO_URL remove common/home,information/contact ... index.php
https://www.opencart.com/index.php?rout ... n_id=32424
---
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Users browsing this forum: Google [Bot] and 42 guests