Skip to content

Instantly share code, notes, and snippets.

Anna Völkl avoelkl

Block or report user

Report or block avoelkl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@avoelkl
avoelkl / de_DE.csv
Last active Feb 22, 2018 — forked from peterjaap/de_DE.csv
Algolia
View de_DE.csv
label Bezeichnung
Base Image Basisbild
Small Image Kleines Bild
Thumbnail Miniaturansicht
None Keine
AllOptional Alle optional
LastWords letztes Wort
FirstWords erstes Wort
Search for products, categories Suche nach Produkten, Kategorien
Search Suche
@avoelkl
avoelkl / gist:0cacdb354c7c45c6157be44676e825aa
Last active Sep 7, 2016
addGroupPriceData() is missing in Mage_Catalog_Model_Resource_Product_Collection
View gist:0cacdb354c7c45c6157be44676e825aa
<?php
/**
* Created by PhpStorm.
* User: Anna Völkl <a.voelkl@limesoda.com>
* Date: 07.09.2016
* Time: 16:01
add this to config.xml
<models>
<catalog_resource>
@avoelkl
avoelkl / loadcustomer.php
Last active Aug 17, 2016
Testing efficient way of loading customer data
View loadcustomer.php
<?php
require_once '../app/Mage.php';
Mage::app();
umask(0);
$customerId = 575420;
$start = microtime();
$memory1 = memory_get_usage();
$customer = Mage::getModel('customer/customer')->load($customerId);
$firstname = $customer->getFirstname();
@avoelkl
avoelkl / composer.json
Created Aug 12, 2016
Sample composer.json file
View composer.json
{
"name": "vendor/modulename",
"type": "magento-module",
"license":"OSL-3.0",
"description":"Helps you doing cool stuff",
"authors":[
{
"name":"Firstname Lastname",
"email":"firstname.lastname@awesomecompany.com"
}
View Sample modman file
src/app/code/community/Vendor/* app/code/community/Vendor/
src/app/etc/modules/* app/etc/modules/
@avoelkl
avoelkl / checks.md
Last active Jun 16, 2016
PayPal Security Update on June 17th 2016
View checks.md

So, here's the thing: PayPal is rolling out a security update on June 17th 2016. A friday, for the joy of all developers and agencies I think. Those who are not prepared and did not check the requirements first will have websites/shops with a non-working PayPal integration after June 17th.

The main 2 points are:

Support SHA-256

PayPal is upgrading SSL certificates on all Live and Sandbox endpoints from SHA-1 to the stronger and more robust SHA-256 algorithm. You will need to update your integration to support certificates using SHA-256.

Discontinue use of the VeriSign G2 Root Certificate

@avoelkl
avoelkl / create_website_scope.php
Last active Dec 14, 2015 — forked from yireo/create_website_scope.php
Magento script to create a new Website, new Store Group, new Store View and new Root Catalog - all linked together.
View create_website_scope.php
<?php
$name = 'Shop:Name';
$code = 'shop';
// Create the root catalog
$category = Mage::getModel('catalog/category');
$category->setStoreId(Mage_Core_Model_App::ADMIN_STORE_ID);
$category->setData('name', $name);
$category->setData('url_key', $code);
$category->setData('display_mode', 'PRODUCTS');
@avoelkl
avoelkl / upgrade-0.1.67-0.1.68.php
Last active Dec 2, 2015
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.
View upgrade-0.1.67-0.1.68.php
<?php
/**
* Created by PhpStorm.
* User: a.voelkl
* Date: 30.10.2015
* Time: 13:21
*/
/** @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;
@avoelkl
avoelkl / OpenSTV
Created Sep 1, 2015
MagentoSE Election 2015
View OpenSTV
Created with the ballots file from:
http://magento.stackexchange.com/election/1
OpenSTV version 1.7 (http://www.OpenSTV.org/)
Suggested donation for using OpenSTV for an election is $50. Please go to
http://www.OpenSTV.org/donate to donate via PayPal, Google Checkout, or
Amazon Payments.
@avoelkl
avoelkl / gist:3ed0fdc5d7fd171ea591
Last active Aug 29, 2015
All the times & dates & places for #mhlej15 & #mm15de
View gist:3ed0fdc5d7fd171ea591
You can’t perform that action at this time.