Magento 2 – Get Custom Variables
In this article, I will show you how to retrieve custom variables in Magento 2.


This category is dedicated to practical Magento tutorials for both Magento 1 and Magento 2, written from the perspective of a developer who has lived inside real stores. You will find guides that walk through everything from local setup and environment configuration to theme tweaks, layout changes, and module development. Articles cover core concepts like the Magento directory structure, XML layout updates, dependency injection, events and observers, and working safely with overrides so you do not break the upgrade path.
Because many stores are still moving from Magento 1 to Magento 2, I also focus on migration and maintenance topics. That includes planning and testing upgrades, cleaning up old extensions, optimizing database tables, and handling performance bottlenecks on busy catalogs. You will see examples of indexing strategies, cache tuning, cron jobs, and troubleshooting slow queries so you can keep page loads snappy even under load.
Security, stability, and day to day operations are a big part of these Magento tutorials as well. Expect walkthroughs for setting up backups, managing environments, wiring in payment gateways and shipping methods, and connecting Magento to external services like CRMs, ERPs, and analytics. Whether you are maintaining a legacy Magento 1 shop or building a fresh Magento 2 store, this category aims to give you copyable patterns and code you can trust in production.
In this article, I will show you how to retrieve custom variables in Magento 2.
This tutorial will hopefully help you better understand how to invalidate certain private data when a user performs a certain request. This is done by using the Knockout syntax. First, let’s create a file called reload.js and place it in your web/js/ folder. Next, let’s create a file called PersonalData.php and place it in the root of…
Recently I discovered all the product positions after being assigned to a category were defaulted to 1. I needed to change this number to anything other than 1. I found that Magento currently defaults this number to 1 in their resource model under the function _saveCategories. The entire class would be Mage_Catalog_Model_Resource_Product. In order to…
In this article, I will show you how to fix the customer downloadable products page broken issue.
I thought it was about time that someone created a place developers could go to find some of the most commonly used Magento methods/functions. Below you will find many quick ways to achieve your everyday coding requirements in Magento. If there is something you would like to see added to the list please feel free…