<?php
require('app/Mage.php');
Mage::app();
$product = Mage::getModel('catalog/product')->getCollection()->getFirstItem();
var_dump($product->getData('media_gallery'));
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 | |
/** | |
* Yeah yeah yeah, as if we need this, right? | |
* @author Phillip Jackson <philwinkle@gmail.com> | |
* @twitter philwinkle | |
*/ | |
function waste($size){ | |
$initSize = memory_get_usage(); |
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
var cornify_count = 0; | |
var cornify_add = function() { | |
cornify_count += 1; | |
var cornify_url = 'http://www.cornify.com/'; | |
var div = document.createElement('div'); | |
div.style.position = 'fixed'; | |
var numType = 'px'; | |
var heightRandom = Math.random()*.75; | |
var windowHeight = 768; |
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
body { | |
background-color: yellow; | |
color: #000; | |
} |
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
javascript:(function(){var iframe='<iframe width="640" height="360" src="//www.youtube.com/embed/zDKO6XYXioc?feature=player_detailpage&autoplay=1" frameborder="0" allowfullscreen style="position: fixed; top: 0; left: 0; z-index: 999;"></iframe>';var bodyElement = document.body;bodyElement.innerHTML = iframe + bodyElement.innerHTML;})(); |
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
<a href="#" class="button">Obnoxious button</a> |
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
🏃. 5x Magento Certified, 2x Magento Master. ✝ Follower. Co-host @magetalk,@commercefuture. Organizer @magentosofla. Evangelist @somethingdigitl |
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
diff --git a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
index d567b6e..9a98440 100644 | |
--- a/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
+++ b/app/code/core/Mage/Usa/Model/Shipping/Carrier/Fedex.php | |
@@ -119,8 +119,8 @@ class Mage_Usa_Model_Shipping_Carrier_Fedex | |
{ | |
$client = new SoapClient($wsdl, array('trace' => $trace)); | |
$client->__setLocation($this->getConfigFlag('sandbox_mode') | |
- ? 'https://wsbeta.fedex.com:443/web-services/rate' | |
- : 'https://ws.fedex.com:443/web-services/rate' |
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 | |
/** | |
* A simple fix for a shell execution on preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version); | |
* The only edit that was done is that shell_exec('mysql -V') was changed to mysql_get_server_info() because not all | |
* systems have shell access. XAMPP, WAMP, or any Windows system might not have this type of access. mysql_get_server_info() | |
* is easier to use because it pulls the MySQL version from phpinfo() and is compatible with all Operating Systems. | |
* @link http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento | |
* @author Magento Inc. | |
*/ |
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 | |
namespace Philwinkle\Module\Helper; | |
class Data extends \Magento\Core\Helper\Data | |
{ | |
public function l33t($string) | |
{ | |
return strtr($string, 'leto', '1370'); | |
} |
NewerOlder