<?php
// clear cache
Mage::app()->removeCache('catalog_rules_dirty');
// reindex prices
Mage::getModel('index/process')->load(2)->reindexEverything();
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
$(document).on('click', function(e) { | |
console.log('my height is ' + $(e.target).height()); | |
console.log('my outerHeight is ' + $(e.target).outerHeight()); | |
}); |
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="root"> | |
<action method="addBodyClass"><classname>whatever</classname></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
jQuery(function ($) { | |
$(document).ready(function () { | |
if (typeof IFRAME_MARGIN == 'undefined') { | |
IFRAME_MARGIN = 5; | |
} | |
$('iframe').each(function (index, item) { | |
if ($(item).attr('src').match(/iframebasedomaingoeshere/)) { | |
//eg for a youtube video just replace the above with youtube | |
var w = $(item).attr('width'); | |
var h = $(item).attr('height'); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder