This file contains hidden or 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
SELECT * FROM eav_attribute where attribute_code = 'is_anchor'; | |
-- Then replace the ? in the following query with the attribute_id shown from the previous query and run. | |
UPDATE catalog_category_entity_int set value = 1 where attribute_id = ?; |
This file contains hidden or 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
Mage::log($message, null, 'mylogfile.log'); |
This file contains hidden or 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"?> | |
<layout version="0.1.0"> | |
<!-- | |
/////////////////////////////////////////////////////// | |
/////// BREADCRUMBS IN CUSTOMER ACCOUNT AREA //////// | |
/////////////////////////////////////////////////////// | |
add default crumbs to display in all the customer account pages | |
this will add Home / My Account crubms. | |
--> |
This file contains hidden or 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
$installer->addAttribute(Mage_Catalog_Model_Category::ENTITY, 'is_showcase', array( | |
'type' => 'text', // varchar | |
'backend' => '', | |
'frontend' => '', | |
'label' => "Showcase category?", | |
'input' => 'select', // image | |
'class' => '', | |
'source' => 'eav/entity_attribute_source_boolean', | |
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_STORE, | |
'visible' => true, |
This file contains hidden or 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
<!-- AFTER getTranslateScript(); --> | |
<script> | |
Translator.add( 'Text to translate', '<?php echo $this->__( 'Text to translate' ); ?>' ); | |
</script> |
This file contains hidden or 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
<!-- template attribute is relative to template directory --> | |
<block type="core/template" name="block-name" template="path/file.phtml" /> |
This file contains hidden or 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
UPDATE admin_user SET password=CONCAT(MD5('qXadmin123'), ':qX') WHERE username='admin'; |
This file contains hidden or 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
var maxHeight = 0; | |
$("div").each(function(){ | |
if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } | |
}); | |
$("div").height(maxHeight); |
This file contains hidden or 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
<catalog_product_view> | |
<reference name="content"> | |
<reference name="product.info"> | |
<block type="review/product_view_list" name="product.info.product_additional_data" as="reviews" template="review/product/view/list.phtml"> | |
<block type="review/form" name="product.review.form" as="review_form"> | |
<block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label"> | |
<label>Review Form Fields Before</label> | |
<action method="setMayBeInvisible"><value>1</value></action> | |
<action method="setElementClass"><value>rewards</value></action> | |
</block> |
This file contains hidden or 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
>> Wrapping the iframe in another element will give us the control we need to add proper responsive functionality to the video. | |
.video { | |
position: relative; | |
padding-bottom: 56.25%; | |
height: 0; | |
overflow: hidden; | |
} | |
.video iframe, | |
.video object, |