Visit Linked Page
Headless Magento 2 Resources “Headless Magento” – that is, an ecommerce store whose user interface uses some other technology stack for the UI/UX (i.e. javascript) while relying on Magento’s REST API endpoints for store functionality – is a hot topic in the Magento world. While this approach can explode a project’s budget (you’re reimplementing the a front-end store and any extension functionality) it is, none-the-less, popular with agencies looking to put their javascript engineering teams to work. If your sales team has thrown you in the headless deep-end, the sitewards/headless-magento2-resources and ishakhsuvarov/going-headless GitHub repositories are two small projects that are […]
astorm
Whether you’re using your IDE, a debugging extension, or calling get_class and new ReflectionClass yourself, PHP (or any language’s) ability to examine itself at runtime is a vital tool for debugging a program. Most bugs come down to “this variable does not have what I thought it had in it”, or “the thing in [...]
astorm
We’ve just released pestle 1.3.1, the investable .0.1 release following 1.3.0. The release fixes a few bugs with the generated DDL code for text and decimal based columns. Full details available in the issue that reported the problem. If you’re at today’s Magento Imagine hackathon (or any day’s hackathon really), [...]
astorm
So what is a Magento 2 theme? To understand that, we’ll first need to talk about the Magento_Theme module. The Magento_Theme module contains page layout XML files that define the basic containers for every Magento page layout. This allows other Magento modules to use layout handle XML files to Add frontend assets (JavaScript, CSS, [...]
astorm
This entry is part 6 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, Pestle 1.1.2 Released, Magento 2 Setup Migration Scripts, Pestle 1.2.1 Released, and Sending Text Messages with PHP, pestle, and Nexmo. Later posts include Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, Pestle Docs Done (for [...]
astorm
I’m working on adding DDL (data definition language) code generation to pestle – i.e. the code that ultimately creates your database tables that lives in the InstallSchema or UpgradeSchema classes. I came across this bit of weirdness #File: vendor/magento/module-cms/Setup/InstallSchema.php )->addColumn( 'identifier', [...]
astorm
This entry is part 5 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, Pestle 1.1.2 Released, Magento 2 Setup Migration Scripts, and Pestle 1.2.1 Released. Later posts include Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, Pestle Docs Done (for now), [...]
astorm
This entry is part 4 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, Pestle 1.1.2 Released, and Magento 2 Setup Migration Scripts. Later posts include Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, [...]
astorm
Here’s a fun pestle command I forgot about. pestle.phar magento2:search:search_controllers This command accepts a file path as a single argument, searches through the specified folder for anything that looks like a Magento controller file, and then displays that controller file’s execute method along with its relative file [...]
astorm
This entry is part 3 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released, and Pestle 1.1.2 Released. Later posts include Pestle 1.2.1 Released, Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, Pestle Docs [...]
astorm
This entry is part 2 of 12 in the series Pestle. Earlier posts include Pestle 1.1.1 Released. Later posts include Magento 2 Setup Migration Scripts, Pestle 1.2.1 Released, Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, [...]
astorm
UI Component Item source Nodes are Redundant I finally got an answer out of Magento engineering on those <item name="source"/> nodes and their best guess is as good as ours. i.e., they’re redundant/not-used. There’s a few interesting points to make here for folks just learning to program, and just getting settled into [...]
astorm
Although there’s no documentation stating this, based on system behavior it seems like the Package/Module/Setup/InstallSchema.php class files are sort of required by a Magento module. I say sort of required because you can run a module without them. You can use that module to add features to Magento. However, a version number for [...]
astorm
This entry is part 1 of 12 in the series Pestle. Later posts include Pestle 1.1.2 Released, Magento 2 Setup Migration Scripts, Pestle 1.2.1 Released, Sending Text Messages with PHP, pestle, and Nexmo, Pestle 1.3 and AbstractModel UI Generation, Pestle 1.4.1 and the Merits of Inheritance, Pestle 1.4.4 Released, Pestle Docs Done (for now), [...]
astorm
While PHP production environments have long made use of extra systems like memcache, varnish, and redis, most successful PHP projects also let developers and technically savvy folks drop an archive of files on a server, point the web server at those files, configure the application to point to a traditional RDMS/database, and have a [...]
astorm
Tangentially Magento related: Magento uses the lusitanian/oauth composer package to handle some oAuth related tasks. In addition to the usual “create the cryptic Authorization: headers” code you’d expect to find in an oAuth library, there’s also these two folders of code [...]
astorm
In a typical adminhtml UI Form Component, each individual form element has a corresponding view model object. For text input fields, these view models come from the constructor function returned by the Magento_Ui/js/form/element/abstract RequireJS module. The view model’s value property, an Knockout observable object, contains the [...]
astorm
This entry is part 13 of 13 in the series Magento 2 UI Components. Earlier posts include Magento 2: Introducing UI Components, Magento 2: Simplest UI Component, Magento 2: Simplest UI Knockout Component, Magento 2: Simplest XSD Valid UI Component, Magento 2: ES6 Template Literals, Magento 2: uiClass Data Features, Magento 2: UI Component [...]
astorm
GitHub – DavidLambauer/awesome-magento2: Curated list of awesome Magento 2 Extensions, Resources and other Highlights I haven’t reviewed these, but a working developer’s take on what makes an “awesome” module is always worth investigating.
astorm
Keeping with UI Component form theme but drawing a wider circle, if you take a look at HTML source of a button on a backend Magento 2 HTML form, you’ll see something like the following <button id="back" title="Back" type="button" class="action- scalable back" onclick="location.href = [...]
astorm