Skip to content

Instantly share code, notes, and snippets.

@david-rahrer
Last active October 31, 2016 17:16
Show Gist options
  • Save david-rahrer/a8b78f3b4193a87f5606d9840af8fef1 to your computer and use it in GitHub Desktop.
Save david-rahrer/a8b78f3b4193a87f5606d9840af8fef1 to your computer and use it in GitHub Desktop.
Remove index.php?route=common/home vqmod extension for OpenCart 2.x. Modification of original located at https://goo.gl/U8SnMV
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Remover index.php?route=common/home da Página Principal da loja</id>
<version>1.0</version>
<vqmver required="false">1.0</vqmver>
<author>Guilherme de Lima Campos</author>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search position="replace"><![CDATA[href="<?php echo $home; ?>"]]></search>
<add><![CDATA[if (!empty($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] != 'off') {
href="<?php echo HTTPS_SERVER; ?>"
} else {
href="<?php echo HTTP_SERVER; ?>"
}]]></add>
</operation>
</file>
</modification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment