Last active
October 31, 2016 17:16
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']) && $_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