Skip to content

Instantly share code, notes, and snippets.

Peter Jaap Blaakmeer peterjaap

Block or report user

Report or block peterjaap

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
@peterjaap
peterjaap / packit4me.php
Last active Feb 20, 2019
Packit4me 3d viz
View packit4me.php
<?php
$url = "http://www.packit4me.com/api/call/raw";
$previewUrl = "http://www.packit4me.com/api/call/preview";
$bin = [
'id' => 0,
'maxweight' => 50,
'dimensions' => '5x5x5'
];
View patch-for-2.2.3.patch
diff --git a/Setup/InstallData.php b/Setup/InstallData.php
index f5ae7c3..6c4c5b0 100644
--- a/Setup/InstallData.php
+++ b/Setup/InstallData.php
@@ -45,6 +45,10 @@ class InstallData implements InstallDataInterface
*/
protected $customerGroupsOptionsProvider;
+ protected $invoicerulesResource;
+
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
@peterjaap
peterjaap / m2_cl.sql
Last active Feb 5, 2019
Magento 2 changelog table structure - note; this has mage_ prefix.
View m2_cl.sql
-- MySQL dump 10.13 Distrib 5.7.19-17, for debian-linux-gnu (x86_64)
--
-- ------------------------------------------------------
-- Server version 5.7.19-17
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
@peterjaap
peterjaap / swatch_attribute_options.php
Created Nov 28, 2017
Helper functions for product import in Magento 2 to create swatch attribute options
View swatch_attribute_options.php
<?php
/**
* @param $attributeCode
* @param $newOptionValues
* @internal param $attributeData
*/
public function addSwatchValuesToSwatchAttribute($attributeCode, $newOptionValues)
{
$this->eavConfig->clear();
View config.php
<?php
return array (
'modules' =>
array (
'Magento_Store' => 1,
'Magento_AdvancedPricingImportExport' => 1,
'Magento_Directory' => 1,
'Magento_Backend' => 1,
'Magento_Theme' => 1,
'Magento_Config' => 1,
@peterjaap
peterjaap / price.phtml
Created Mar 20, 2017
Bundle price.phtml without weee stuff
View price.phtml
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
@peterjaap
peterjaap / Magento1ValetDriver.php
Created Jan 4, 2017
Magento 1 Driver for Valet (https://laravel.com/docs/5.3/valet) - we put Magento in a subdir called 'magento' in our Git repo. So place this in ~/.valet/Drivers/Magento1ValetDriver.php and you're good to go.
View Magento1ValetDriver.php
<?php
class Magento1ValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
@peterjaap
peterjaap / iterm_open_with
Created Dec 15, 2016
Open text files from Iterm2 in PhpStorm by command+clicking on it
View iterm_open_with
#!/bin/sh
# Open text files from Iterm2 in PhpStorm by command+clicking on it
# You will need the Remote call plugin in PhpStorm - https://plugins.jetbrains.com/plugin/6027
# And of course curl
# wget this and chmod +x it
# then move it to somwhere convenient in your path (such as /usr/local/bin)
# With respects to https://gist.github.com/trinitronx/f59a8308d42d71fdba41 for the basis for this
# iterm_open_with - open a URL, file from CWD, full path, or path with linenumber in default app or PhpStorm if text file
@peterjaap
peterjaap / magento_postman_collection.json
Created Nov 18, 2016
Postman request collection for Magento 1 SOAP v2
View magento_postman_collection.json
{
"id": "6b940a31-113d-109f-f36a-75c1604ef7d4",
"name": "ExampleShop",
"description": "",
"order": [
"2658e264-981e-4786-7f05-88f3fce0f4e6",
"8c81cf7c-e188-b8bd-0970-a96aa3a8d6a3",
"a1e3c72f-6fde-d46b-7896-e1627f7e5f64",
"c050284d-14bd-bdd6-256e-30111f354ef6",
"3b0ac9f0-3544-4797-fd4f-56b436ecd029",
You can’t perform that action at this time.