Phpstorm Paste Without Escaping

One really great annoying feature of PHPStorm is that by default, when copying and pasting a chunk of code, it will automatically escape everything. There are certain times when this can be a time saver, but often it is just getting in the way. There is a solution though: Simply enough - instead of just hitting [ctrl]+[v] you have a right click menu option for “simple paste” and this will just paste the text as is, without any escaping yay!

Getting started with your own Magento 2 Theme

Prerequisites and Assumptions Magento 2.1 installation. See our tutorial here Basing from Luma theme Relevant Technologies Less CSS PHP/PHTML XML HTML Javascript Relevant Magento 2 Concepts Layout XML UI Components On this page New Themeing Concepts in Magento 2 Module-specific theme files Themes Static content Creating the theme structure Folders Configuration registration.php theme.xml Applying your theme Theme Files Templates Layout Static content (CSS/Images/JS) Overriding modules’ view files Common Snippets Admin Configuration Deployment Further Reading New Themeing Concepts in Magento 2 Module-specific theme files In Magento 2 there is no longer a “base” package or “default” theme. Read On →

Test If Your Magento Site Is Php7 Ready

After you’ve installed the Inchoo PHP7 module you’ll likely want to check if your custom or 3rd party module code is also PHP7 compatible. In order to determine this you can run a static analysis.

Read On →

Upgrade From Magento Magemonkey to Mailchimp

Upgrading from MageMonkey to MailChimp unfortunately isn’t as simple as just installing the new module.

Read On →

Bash Snippet to Get Column Numbers For Csv Headers

Check out this BASH snippet to get the headers from a CSV file and give you the column numbers

PHP File /tmp/ Does Not Exist

Recently I ran into an issue with a upload issue in Akeneo when trying to include an image with a product, however the issue could happen with any PHP script. I had provided a file path of /path/to/file.jpg in the upload, but was getting an error message of Attribute or field "picture" expects a valid pathname as data, "/tmp/path/to/file.jpg" given (for setter media) I was surprised to see that the path had been changed to /tmp/path/to/file.jpg, but a put a copy of the file into the /tmp/ directory and tried again. Read On →