Skip to content

Instantly share code, notes, and snippets.

@jalogut
jalogut / magento2-config-dump-skip-system.xml
Last active September 27, 2018 15:37
Magento 2 skip dumping the whole core_config_data when using app:config:dump
<!-- module.xml -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="VendorName_ModuleName" setup_version="0.0.1" >
<sequence>
<module name="Magento_Config"/>
</sequence>
</module>
</config>
<!-- di.xml -->
@Schrank
Schrank / ConfigAsXml.php
Created December 27, 2014 12:21
Get magento XML configuration for default, websites and stores
<?php
// app/code/local/Ikonoshirt/Shared/Model/Adminhtml/
class Ikonoshirt_Shared_Model_Adminhtml_ConfigAsXml
extends Mage_Core_Model_Config_Data
{
protected function _afterLoad()
{
/** @var $xml Mage_Core_Model_Config */
@markshust
markshust / gist:2cee3dd991bafc90e161
Created July 30, 2014 14:44
Search Magento local codePool for invalidly formatted XML
find app/code/local/ -type f -name "*.xml" -exec xmllint --noout {} \;
@peterjaap
peterjaap / Magento generated events
Created October 14, 2013 09:44
Magento generated events; a number of models use automatically generated events through prefixes. This is a (non-exhaustive) list of a number of those events, combined with _save_before, _save_after, _save_commit_after, _delete_before, _delete_after, _delete_commit_after, _load_before & _load_after.
tag_save_after
admin_roles_save_after
admin_user_save_after
review_save_after
catalogsearch_query_save_after
sales_order_save_after
sales_quote_address_save_after
sales_quote_payment_save_after
sales_quote_item_save_after
sales_quote_save_after
@lavoiesl
lavoiesl / apache-template
Created May 7, 2012 19:24
Apache VirtualHost Template with variable replacement
<VirtualHost *:80>
ServerAdmin {USER}@cslavoie.com
ServerName {DOMAIN}
ServerAlias www.{DOMAIN}
ServerAlias {USER}.localhost
ServerAlias {USER}.static.cslavoie.com
DocumentRoot {DOC_ROOT}
<Directory {DOC_ROOT}>