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
Place these lines of SQL code on very top of the .sql file: | |
SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT; | |
SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS; | |
SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION; | |
SET NAMES utf8; | |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO'; | |
SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0; |
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 echo $this->getLayout()->createBlock('cms/block')->setBlockId('block-name')->toHtml() ?> |
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
$ git config core.autocrlf false |
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
<reference name="content"> | |
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"> | |
<action method="setCategoryId"><category_id>8</category_id></action> | |
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> | |
<block type="page/html_pager" name="product_list_toolbar_pager"/> | |
</block> | |
<action method="setToolbarBlockName"><name>product_list_toolbar</name></action> | |
</block> | |
</reference> |
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
<customer_account> | |
<reference name="customer_account_navigation" > | |
<!-- remove the link using your custom method --> | |
<action method="removeLinkByName"><name>recurring_profiles</name></action> | |
<action method="removeLinkByName"><name>billing_agreements</name></action> | |
</reference> | |
</customer_account> |
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 $_shortDescriptionStripped = $this->stripTags($_product->getShortDescription(), null , true); ?> | |
<?php echo Mage::helper('core/string')->truncate($_shortDescriptionStripped, '280') ?> |
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
<input type="text" value="[email protected]" name="email" id="email" | |
onblur="if (this.value == '') {this.value = '[email protected]';}" | |
onfocus="if (this.value == '[email protected]') {this.value = '';}" /> |
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 $_product->getResource()->getTypeId(); ?> | |
<?php if($_product->getTypeId() == "simple"): ?> Simple <?php endif; ?> | |
<?php if($_product->getTypeId() == "grouped"): ?> Grouped <?php endif; ?>; | |
<?php if($_product->getTypeId() == "configurable"): ?> Configurable <?php endif; ?> | |
<?php if($_product->getTypeId() == "bundle"): ?> bundle <?php endif; ?> |
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
<reference name="head"> | |
<action method="addLinkRel"> | |
<rel>canonical</rel> | |
<href>http://awesome.site.com/your-main-product</href> | |
</action> | |
</reference> |
OlderNewer