Skip to content

Instantly share code, notes, and snippets.

View cellobnu's full-sized avatar

Marcelo Vieira Gonçalves cellobnu

  • Brasil
View GitHub Profile
<!-- 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');?>
#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
@cellobnu
cellobnu / slideshow magento
Created March 23, 2018 14:09
slideshow magento
<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">&nbsp;</div>
<span class="slideshow-prev">&nbsp;</span>
<span class="slideshow-next">&nbsp;</span>
</div>
@cellobnu
cellobnu / billing.phtml
Last active March 14, 2018 14:40
Página de cadastro no onepage, Rua, Numero, Complemento e Bairro
<?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
@cellobnu
cellobnu / magento-address-autocomplete.js
Created February 16, 2018 17:34 — forked from rafaelpatro/magento-address-autocomplete.js
Magento Address Auto Fill based on Postcode
/**
* 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.
*
<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>
@cellobnu
cellobnu / 000-default.conf
Created June 30, 2016 17:31
000-default.conf
<VirtualHost *:80>
ServerName camicie.com.br
Redirect permanent / https://www.camicie.com.br/
</VirtualHost>
<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>