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 →

Phpstorm and Mysql Scratch Files

Workflow Recently I have been writing a number of internal scripts that interface with one of our databases to check a few things. A lot of the time we use PhpMyAdmin or the standard Mysql command line client where necessary but there is a better and more reliable way to fire queries to the database. Enter PHP Storm. PHP Storm and MySQL PHPStorm has been extended so much over the years that it can be used for fully fledged raw SQL on it’s own which can be very handy. Read On →