Scaling Magento presentation with 60 slides and notes, which was then reviewed by Alan Storm.
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
# Install linux update, followed by GCC and Make | |
sudo yum -y update | |
sudo yum install -y gcc make | |
# Install Nginx and PHP-FPM | |
sudo yum install -y nginx php-fpm | |
# Install PHP extensions | |
sudo yum install -y php-devel php-mysql php-pdo \ | |
php-pear php-mbstring php-cli php-odbc \ |
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> |
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
<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 $_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
<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
<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> |