Skip to content

Instantly share code, notes, and snippets.

View mam08ixo's full-sized avatar

Christoph Aßmann mam08ixo

  • Netresearch GmbH & Co. KG
  • Leipzig
View GitHub Profile
@mam08ixo
mam08ixo / Filter.php
Last active December 10, 2015 23:28
Custom template directive to link between stores and protocols as described in the Magento App Factory Blog.
<?php
class Netresearch_AppFactory_Model_Template_Filter extends Mage_Widget_Model_Template_Filter
{
/**
* Add possibility to cross link between stores and protocols.
*
* Additional parameters:
* <ul>
* <li>store: store code or store id</li>
* <li>current_protocol: use https if called from secure context, http otherwise (boolean)</li>
@mam08ixo
mam08ixo / data-upgrade-0.1.67-0.1.68.php
Last active October 30, 2015 22:02 — forked from avoelkl/upgrade-0.1.67-0.1.68.php
SUPEE-6788 variable + block setup script. 1.) Create a new module or extend a current one. 2.) Create a new install or setup script with the variables and blocks which are not whitelisted yet.
<?php
/**
* @category Namespace
* @package Namespace_Module
* @author Anna Völkl
* @author Christoph Aßmann
* @author Fabian Schmengler
*/
/** @var Mage_Core_Model_Resource_Setup $installer */