Skip to content

Instantly share code, notes, and snippets.

philwinkle /
Last active Aug 29, 2015 identity

Keybase proof

I hereby claim:

  • I am philwinkle on github.
  • I am philwinkle ( on keybase.
  • I have a public key whose fingerprint is 60A1 B554 D364 2133 72FA E6E2 2820 5D5D 3273 2182

To claim this, I am signing this object:

philwinkle / ce-\app\code\core\Mage\Usa\Model\Shipping\Carrier\Fedex.php
Last active Oct 7, 2016
Git diff of Fedex SOAP API endpoint change - CE 1.6, 1.7, 1.8 and EE 1.11, 1.12, 1.13
View ce-\app\code\core\Mage\Usa\Model\Shipping\Carrier\Fedex.php
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));
- ? ''
- : ''
View admin-grid-status.js
// Drop this javascript in the page where your grid is - maybe using a .phtml
// in before_body_end or whatever.
$$(".admin-autoemail-adminhtml-rule-index td:contains('Inactive')").each(function(status) {
$(status).up().select('td, a').invoke('setStyle',{ color: '#aaa' });
philwinkle / end_of_the_road.js
Created Dec 19, 2013
Bookmarklet to add Boyz II Men's "End of the Road" to any webpage
View end_of_the_road.js
javascript:(function(){var iframe='<iframe width="640" height="360" src="//" frameborder="0" allowfullscreen style="position: fixed; top: 0; left: 0; z-index: 999;"></iframe>';var bodyElement = document.body;bodyElement.innerHTML = iframe + bodyElement.innerHTML;})();
philwinkle / Philwinkle\Module\Helper\Data.php
Last active Dec 28, 2015
**Edited 4/19/14** see || [Quickcast] Magento Module creation part 4. Part 4 of our ongoing series. We dive into the new dependency injection pattern in Magento 2 by creating and then referring to a helper in the module we created in parts 1-3.Link:
View Philwinkle\Module\Helper\Data.php
namespace Philwinkle\Module\Helper;
class Data extends \Magento\Core\Helper\Data
public function l33t($string)
return strtr($string, 'leto', '1370');
philwinkle / app\code\local\YourCompany\YourModule\etc\system.xml
Last active Dec 28, 2015
@ajzele feature request :) Create a new module and you can annotate any field with a system.xml comment node
View app\code\local\YourCompany\YourModule\etc\system.xml
<?xml version="1.0"?>
philwinkle / app\code\Philwinkle\Module2\Model\Plugin.php
Last active Dec 28, 2015
[Quickcast] Creating a new module in Magento2 A 3-part quickcast series demonstrating how to create a new module in Magento2, how to utilize the new Interception functionality, and how to chain multiple plugins targeting the same functionality together.
View app\code\Philwinkle\Module2\Model\Plugin.php
namespace Philwinkle\Module2\Model;
class Plugin
public function afterGetTitle($value)
return '==' . $value . '==';
View helper_throws.php
$model = Mage::getModel('catalog/fakeproduct');
$helper = Mage::helper('fakemodule');
philwinkle / example.php
Last active Dec 22, 2015
Load product collection by IDs
View example.php
$ids = array(1,2,3,4);
foreach($ids as $id){
philwinkle / closures.php
Created Sep 11, 2013
Closures and Mage::register
View closures.php
#file: closures.php
//testing Mage::registry closure support