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
<!-- Local de cadas variavels ADMIN -> SISTEMA -> CONFIGURACAO -> Geral -> Configuracao da loja --> | |
<?php echo Mage::getStoreConfig('general/store_information/name') ?> Nome da Loja | |
<?php echo Mage::getStoreConfig('general/store_information/merchant_vat_number') ?> Numero da CNPJ | |
<?php echo Mage::getStoreConfig('general/store_information/address') ?> Endereco do Clinete | |
<!-- ADMIN -> SISTEMA -> Variáveis Personalizadas --> | |
<?php echo Mage::getModel('core/variable')->setStoreId(Mage::app()->getStore()->getId())->loadByCode('variable_code')->getValue('html');?> | |
<?php echo Mage::getModel('core/variable')->setStoreId(Mage::app()->getStore()->getId())->loadByCode('variable_code')->getValue('text');?> |
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
#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes. | |
Sublime Text |PHPStorm |Função | |
---------------|---------|------------- | |
CMD+P |CMD+Shift+O |Busca por arquivos no projeto | |
CMD+R |CMD+F12 (1) |Lista os métodos da classe e outros símbolos | |
CMD+F |CMD+F |Busca no arquivo | |
CMD+Option+F |CMD+R |Busca e troca os valores no arquivo | |
CMD+Shift+F |CMD+Shift+F|Busca, busca e troca e outros em um determinado caminho com várias regras. | |
CMD+D (2) |Option+Up (2) | Seleciona palavra |
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
<div class="slideshow-container"> | |
<ul class="slideshow"> | |
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-1.jpg"}}" alt="" /></a></li> | |
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-2.jpg"}}" alt="" /></a></li> | |
<li><a href="linkhere"><img src="{{media url="wysiwyg/slide-3.jpg"}}" alt="" /></a></li> | |
</ul> | |
<div class="slideshow-pager"> </div> | |
<span class="slideshow-prev"> </span> | |
<span class="slideshow-next"> </span> | |
</div> |
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
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
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
/** | |
* Address Auto Fill based on Postcode | |
* | |
* Author: | |
* Rafael Patro <[email protected]> | |
* | |
* Intallation: | |
* Add a CMS Static Block applying the entire script below. | |
* Add a Widget to pages with address forms. | |
* |
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
<IfModule mod_ssl.c> | |
<VirtualHost _default_:443> | |
ServerAdmin [email protected] | |
ServerName camicie.com.br | |
ServerAlias www.camicie.com.br | |
DocumentRoot /var/www/html/ | |
<Directory /var/www/html/> | |
AllowOverride All | |
Require all granted | |
</Directory> |
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
<VirtualHost *:80> | |
ServerName camicie.com.br | |
Redirect permanent / https://www.camicie.com.br/ | |
</VirtualHost> |
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
<IfModule mod_ssl.c> | |
<VirtualHost _default_:443> | |
ServerAdmin [email protected] | |
ServerName camicie.com.br | |
ServerAlias www.camicie.com.br | |
DocumentRoot /var/www/html/ | |
<Directory /var/www/html/> | |
AllowOverride All | |
Require all granted | |
</Directory> |