A blog about Magento 2 and PHP
-
X-Magento-Vary aka HTTP Context
This week I’ve decided to better understand X-Magento-Vary cookie. In Magento 2 there might be more than one unique information presented to a user from the same URL. Purpose X-Magento-Vary cookie is used by Magento 2 system to highlight that version of a page requested by a user has been changed. It allows having different […]
-
Database Query Logging in Magento 2
In Magento 2.x as well as Magento 1.x there is an option to enable database logging. It allows to profile all queries in the system and perform optimization if necessary. In this article, I will show you how to enable database logging for MySQL adapter in Magento 2. In my previous article, I wrote about separate […]
-
Useful Magento Links #1
While you are looking for new and interesting software development content, I’ve prepared for you 3 great topics to read to improve your development skills building Magento 2 websites. Goodbye, Object-Oriented Programming A few weeks ago I found an interesting article about OOP at Medium. It is called Goodbye, Object Oriented Programming. Charles Scalfani highlights his […]
-
Deploy Magento 2 Like A BOSS
How do you deploy changes to the production environment? There are many articles about continuous deployment you may read about. Some of the articles are over-detailed with technical details. Rather than going to a point on how to setup or build deployment for your project you become Ph.D. It is great to know everything, in theory, […]
-
CDN for Magento 2
The ideal scenario for a website built on Magento 2 platform is to use CDN or content delivery network to serve page assets such as JavaScript, CSS, Fonts, HTML and finally Media to a client’s browser. A content delivery network (CDN) is a system of distributed servers (network) that deliver web pages and other Web content to […]
-
Amazon Web Services for Magento 2
Amazon Web Services (AWS) provide reach set of cloud-computing services to setup, build and run scalable environment. I use AWS as a main hosting provider to run Magento 2 websites. I decided to share a minimum set of services to build the Magento 2 infrastructure. Amazon EC2 First and most widely used service is Amazon EC2 or Amazon Elastic Compute Cloud. […]
-
Tracking Customer Emails in Magento 2
In August 2016 I’ve had a chance to write Guest Post on the newly released blog by Zynovo team. In the Tracking Customer Emails in Magento 2 article, I went through the detailed step-by-step guide on creating jQuery Widget on Magento Store Front. Majority of customer forms are implemented using jQuery Widgets and phtml templates. jQuery Widgets […]
-
Development Design Patterns in Magento 2
At Magento Live UK 2016 conference I’ve presented the technical topic “Key Insights into Development Design Patterns in Magento 2”. It contains various Design Patterns used across Magento 2 framework and modules. There is a lot of functionality which require complex logic and Design Patterns help to achieve and implement functionality in a quite straightforward way. Design Patterns […]
-
Magento 2 Modal Widget in Use
In this article, I will show you how to implement new Module Version field for your Custom Module configuration by using JavaScript Modal Widget component from Magento 2 UI Library. Overview Let’s say you want to show module version somewhere on the configuration settings page of a custom module. It might be helpful for Merchants […]
-
Setting Payment Additional Data in Magento 2
Magento team constantly addresses security issues when it comes to payment integrations. One of the improvements were changes into the Magento\Payment module. The Magento\Payment module is no longer responsible for setting Payment data for the Magento\Sales\Model\Order\Payment object. Starting from the Magento 2.0.6 release and further Magento 2.1 release custom payment module should be responsible for adding all necessary Payment information into the Payment object. In […]