Techflarestudio
  • Home
  • Medium

Techflarestudio

Magento 2

Create custom order status and assign it to state programmatically in Magento 2

Lets imagine you are building a custom checkout flow or adding custom functionality that will integrate an ERP system to order processing flow. In order to achieve the business logic it is likely you will need to introduce a new order state and status.

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 24 Jan 2021 • 3 min read
Magento 2

How to create an editable customer attribute in Magento 2

In this article we will explore how to create a customer EAV attribute and how to control where is available in the store. In Commerce version store admins are able to add the attributes same as for other EAV types. For community version this

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 24 Jan 2021 • 3 min read
Magento 2 - How to add custom free shipping based on cart conditions and hide other methods if applicable
Magento 2

Magento 2 - How to add custom free shipping based on cart conditions and hide other methods if applicable

In this article we are going to create a custom shipping method which will shown only once the cart grand total value reaches over a configured value. In addition we

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 20 Jan 2021 • 8 min read
How to configure and pre-select default payment method in Magento 2 checkout
Magento 2

How to configure and pre-select default payment method in Magento 2 checkout

In this article we will explore how to create a module that allows you to configure and pre-select any payment method in Magento 2 checkout. Often times it is important

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 18 Jan 2021 • 7 min read
Create CMS block in Magento 2 using data patch
Magento 2

Create CMS block in Magento 2 using data patch

In this tutorial we will show how simple it is to use data patches to create and update content on your Magento 2 store. Using data patches is preferable for

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 17 Jan 2021 • 3 min read

How to hook into shipping step address save Magento 2

We will do this by writing a mixin that hooks into the shipping information save method. If you are unsure what a mixin is you may want to start by inspecting the default documentation. In short javascript mixin is a way to customize a

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 15 Jan 2021 • 2 min read
How Magento 2 generates javascript translations during static content deploy
Magento 2

How Magento 2 generates javascript translations during static content deploy

Lets dive deeper into how Magento 2 generates the translations. Lets start at the very surface - the one thing we can see from the browser. We know that in

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 13 Jan 2021 • 4 min read
Magento 2.3.0 javascript translations bug
Magento 2

Magento 2.3.0 javascript translations bug

If you have been working with Magento 2.3.0 version you may have noticed weird behavior for js translations. In this version there was a bug introduced which was

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 13 Jan 2021 • 3 min read
whatsapp

WhatsApp Privacy Policy update is not that big of a deal

There has been a large fuss on how the new WhatsApp Privacy Policy updates affect the users. Users have to accept the terms and service of this new policy by February 8, 2021, or delete their accounts - sounds rather drastic right? It really

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 11 Jan 2021 • 3 min read
Creating git version history for composer packages
golang

Creating git version history for composer packages

First thing you may be wondering why this is necessary? Composer packages are sometimes based on projects where history or change log is not publicly available. Or perhaps you do

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 10 Jan 2021 • 6 min read
How to debug LCP Core Web Vitals
core web vitals

How to debug LCP Core Web Vitals

First step of understand what is core web vitals should be to refer to the official page. In short, core web vitals are a new Google metrics that will be

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 7 Jan 2021 • 1 min read
Make copyright year dynamic in Wordpress
wordpress

Make copyright year dynamic in Wordpress

It is common to have a year in websites copyright section. Often times you will forget about this area for months or even years - meaning the date often gets

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 26 Dec 2020 • 2 min read
Magento 2

Add mass action in Magento 2 admin product grid

In this article we will explore how to add a mass action in admin product listing. First you will need to define a new mass action in listing xml. We will an action - update_custom_prices. <?xml version="1.0" encoding="UTF-8"

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 20 Dec 2020 • 2 min read
Magento 2

Magento 2 add custom attribute to recently viewed products widget

First you will need to create a module. Create the directory structure. In our case it is going to be app/code/Techflarestudio/Recently First you will need to register the module: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE,

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 17 Dec 2020 • 4 min read
How to automatically start Guake terminal on startup Ubuntu 20

How to automatically start Guake terminal on startup Ubuntu 20

There are various ways this can be achieved. By default Guake offers and option to Start Guake on login however this does not always work. There are a few options

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 15 Dec 2020 • 1 min read
Migrate Joomla to Wordpress using docker in 15 minutes

Migrate Joomla to Wordpress using docker in 15 minutes

In this post we will be using an old Joomla site and migrating the posts, categories, tags to a fresh Wordpress installation. We will install the site using Docker image

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 7 Dec 2020 • 4 min read

Use copy to clipboard button in Ghost

When reading posts about technical features it is nice if you are able to follow along and experiment. Copy to clipboard button for snippets is a useful feature that helps following along. In the official Ghost blog it is suggested to use PrismJS. In

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 6 Dec 2020 • 1 min read

Docker cheat sheet

List of simple commands to use for docker management. Run a container docker run container_name Bash into container docker exec -it container_name bash Bash into container as root docker exec -it --user root container_name bash Run a command for container, for

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 29 Nov 2020 • 1 min read

Reset password for Ghost from database

In case you have forgotten your Ghost admin user but still have access to database you can use the following 2 steps to reset your password: Connect to your databaseFind the user you want to reset the password to select * from users; Generate the

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 20 Nov 2020 • 1 min read
Serverless using Lambda
aws

Serverless using Lambda

In this article we are going to explore AWS Lambda and ways we can utilize it for daily automation tasks. We will observe our CodeCommit repository and send Slack notifications

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 7 Mar 2020 • 3 min read
aws

Get started with AWS CodeCommit

In this article we will kick-off series about using Amazon web services and try to explore the possibilities of developer tools such as CodeCommit. Eventual goal is to have a full continues integration and delivery system using AWS. This article is the bare starting

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 7 Mar 2020 • 2 min read
Recognize toxic messages in slack using machine learning
machine learning

Recognize toxic messages in slack using machine learning

Today we are going to create a slack integration to recognize toxic messages. We will use a public machine learning data model. The end result will be something like this:

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 29 Feb 2020 • 3 min read
Setup a simple api using node js and express
nodejs

Setup a simple api using node js and express

Today we are going to explore a rather simple but very useful feature that we can build using Node.js. What is an api? Simple put an api is an

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 23 Feb 2020 • 2 min read
Detect ad-blocker in Ghost
ad-blocker

Detect ad-blocker in Ghost

If you are using Google Ad-sense or some other ad generated revenue then you are likely familiar with ad-blockers and what it means for your business. Ad-blockers are great for

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 5 Feb 2020 • 2 min read
git

How to use git hooks for everyday tasks

Git hooks is a feature that does not get talked about enough. Basically hooks are a way to trigger an action during certain parts of git's execution. By default hooks are placed in .git/hooks. You can change this in git config. I wont

  • Wasalu Duckworth
    Wasalu Duckworth
Wasalu Duckworth 31 Jan 2020 • 1 min read
Techflarestudio
  • Home
  • Medium
Techflarestudio © 2025
Latest Posts Twitter Ghost