Tag: Development

16 posts

M2: OPCache GUI - Updated for Latest Magento & PHP

M2: OPCache GUI - Updated for Latest Magento & PHP

The TCMP OPcache GUI module has been updated to support the latest versions of Magento, PHP, and Chart.js. View OPcache statistics directly in your Magento admin panel.

M2: Customizing GraphQL Field Names in Commerce

M2: Customizing GraphQL Field Names in Commerce

Learn how to customize GraphQL field names in Magento Commerce using the FieldTranslator class and dependency injection configuration.

Upgrading from Magento <=2.2.x to 2.3.x

Upgrading from Magento <=2.2.x to 2.3.x

At some point you're going to want to upgrade your Magento project from 2.0/2.1/2.2 to the latest 2.3.x release to take advantage of new functionality and many

Debugging: Cannot add foreign key constraint

Debugging: Cannot add foreign key constraint

Backstory: I was working late to get a feature "working" before heading off to sleep. Somewhere in between autocomplete and matching definitions to Magento core

M2: OPCache GUI

M2: OPCache GUI

Now you can easily view the statistics for PHP OPcache in your Magento admin panel. TCMP OPcache GUI displays current memory usage / hit rate / configuration va

M2: UI Component Form Field Validation

M2: UI Component Form Field Validation

When building custom forms you'll need to validate a few different types of data. Thankfully there are a number of validation rules already at your disposal in

PWA: Service Worker

PWA: Service Worker

An important piece of installing a service worker in your application is the ability to update it. Here a brief example of registering the service worker and th

Syncing Forks Without Merge Commits II: CLI

Syncing Forks Without Merge Commits II: CLI

# Add an upstream remote for the repo that you just forked from git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY

Angular: Environment Variables

Angular: Environment Variables

Add your variable and make sure that you configure each environment. // ./public_html/src/environments/environment.ts or environment.pr

Utils: Laravel + phpDocs + Static Code Analysis

Utils: Laravel + phpDocs + Static Code Analysis

If you're using an IDE like PHP Storm then this is a necessity to your project: https://github.com/barryvdh/laravel-ide-helper More Reading: https://www.phpdoc.

M2: Delete Orders Extension

M2: Delete Orders Extension

I released a little freebie this weekend, hope you enjoy. Feedback is welcome just open an issue or even better submit a pull request! https://github.com/theyca

M2: Debugging Playground continued..

M2: Debugging Playground continued..

After the last example of a bootstrapping Magento 2.x in a php file for some quick debugging I thought I'd clean things up a bit. Below is the same basic exampl

M2: Debugging Playground

M2: Debugging Playground

While I'm sure we all agree that your code should live inside an extension, it can be still helpful to interact with something a little more directly or isolate

M2: Invalidating Caches

M2: Invalidating Caches

When saving objects in your custom module it may be beneficial to indicate that a cache type should be cleared. This can be achieved using the TypeListInterface

M2: Add a CMS block to your layout

M2: Add a CMS block to your layout

Add a CMS block to your layout XML: <block class="Magento Cms Block Block" name="block_name_in_layout

Syncing Forks Without Merge Commits

Syncing Forks Without Merge Commits

I was looking for a quick way to sync a forked GitHub repository that had upstream changes without using their interface to create a pull request (doing so woul