Skip to content

Instantly share code, notes, and snippets.

View mzeis's full-sized avatar
🤓

Matthias Zeis mzeis

🤓
View GitHub Profile
@mzeis
mzeis / magento_1942_1943_translation_strings_frontend.txt
Created October 10, 2019 14:19
New translation strings for the frontend between Magento 1.9.4.2 and 1.9.4.3
app/locale/en_US/Mage_Catalog.csv
"You saved the search term.","You saved the search term."
app/locale/en_US/Mage_Core.csv
"File name is too long. Maximum length is %s.","File name is too long. Maximum length is %s."
"Please enter more characters or clean leading or trailing spaces.","Please enter more characters or clean leading or trailing spaces."
"Please enter more characters. Password should contain both numeric and alphabetic characters.","Please enter more characters. Password should contain both numeric and alphabetic characters."
app/locale/en_US/Mage_Customer.csv
"Minimum admin password length","Minimum admin password length"
@mzeis
mzeis / magento_1942_1943_translation_strings.txt
Created October 10, 2019 14:13
New translation strings between Magento 1.9.4.2 and 1.9.4.3
app/locale/en_US/Mage_Adminhtml.csv
"Key %s does not contain scalar value","Key %s does not contain scalar value"
"Key %s does not exist in array","Key %s does not exist in array"
"Wrong field specified.","Wrong field specified."
app/locale/en_US/Mage_Api.csv
"A user with the same user name or email already exists.","A user with the same user name or email already exists."
"Api Key confirmation must be same as Api Key.","Api Key confirmation must be same as Api Key."
"Api Key must be at least of %d characters.","Api Key must be at least of %d characters."
"Api Key must include both numeric and alphabetic characters.","Api Key must include both numeric and alphabetic characters."
@mzeis
mzeis / magento_1942_1943_diff.txt
Created October 10, 2019 11:31
Files changed between Magento 1.9.4.2 and 1.9.4.3
RELEASE_NOTES.txt
app/Mage.php
app/code/core/Mage/Admin/Model/User.php
app/code/core/Mage/Admin/etc/config.xml
app/code/core/Mage/Admin/sql/admin_setup/upgrade-1.6.1.2-1.6.1.3.php
app/code/core/Mage/Adminhtml/Block/Api/User/Edit/Tab/Main.php
app/code/core/Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php
app/code/core/Mage/Adminhtml/Block/Customer/Edit/Renderer/Newpass.php
app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tab/Account.php
app/code/core/Mage/Adminhtml/Block/Newsletter/Queue/Preview.php
@mzeis
mzeis / download-patches.sh
Created October 17, 2016 09:10
Download Magento CE security patches SUPEE-1533 ad SUPEE-8788 v2 using bash. Open the file for usage information.
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Author: Matthias Zeis (https://github.com/mzeis, https://twitter.com/mzeis)
# Date: 2016/10/17
# Version: 1.0
# License: MIT (https://en.wikipedia.org/wiki/MIT_License)
#
@mzeis
mzeis / Magento 1 core modules XML files
Created May 3, 2015 16:37
Get a list of all XML file names used in Magento 1 core modules.
$ cd app/code/core/Mage
$ find . -name '*.xml' -path '*etc*' | sed 's,^\./[^/]*/etc/,,' | sort -u
@mzeis
mzeis / Magento 2 core modules XML files
Created May 3, 2015 16:16
Get a list of all XML file names used in Magento 2 core modules.
$ cd app/code/Magento
$ find . -name '*.xml' -path '*etc*' | sed 's,^\./[^/]*/etc/,,' | sort -u
@mzeis
mzeis / Customer.php
Last active August 29, 2015 14:13
How to (not) intercept the Customer Data Interface
<?php # app/code/Mzeis/Customer/Model/Data/Customer.php
namespace Mzeis\Customer\Model\Data;
class Customer
{
public function afterGetFirstname(\Magento\Customer\Api\Data\CustomerInterface $customer, $result)
{
return '|' . $result . '|';
}
}
@mzeis
mzeis / Example.php
Last active February 8, 2016 07:48
Magento Coding Standard
<?php
/**
* Full-form, standard PHP tag (don't use a short tag).
* The closing tag must be omitted.
*/
/**
* Opening curly brackets for classes and methods are put on the next line.
* Indentation for the next level is 4 spaces (no tabs).
*
@mzeis
mzeis / release_workflow.md
Created July 28, 2014 07:20
Release Workflow

Release workflow

  1. Update version number in config.xml
  2. Update version number in README.md
  3. Update CHANGELOG.md (changes, date)
  4. Tag release: git tag -a va.b.c -m 'Version a.b.c'
  5. Push master & tag to GitHub: git push origin master &amp;&amp; git push origin va.b.c
@mzeis
mzeis / catalog_product_20140727_112043.yaml
Created July 27, 2014 11:27
Emzee_ExportFixture Proof of concept.
eav:
catalog_product:
- entity_id: 1
type_id: simple
created_at: 2014-07-26 16:20:26
description: Book
has_options: 0
image: no_selection
msrp_display_actual_price_type: config verwenden
msrp_enabled: config verwenden