Blog
Guides, tutorials and best practices from the Magento Company team.
Dependency injection in PHP traits
Understanding Dependency Injection in PHP Traits In the world of object oriented programming (OOP), traits offer a powerful way to share
Subcategories in layered navigation filter
Enhancing Layered Navigation Filters: Displaying All Subcategories As an e commerce developer, you often need to optimize your layered navigation filters
Need to redirect a POST to an API call to another domain
Redirecting POST Requests from One Domain to Another: A Comprehensive Guide When dealing with API integrations between domains, you may
How to solve problem conflicts with your root composer.json require?
Title: Solving Composer Conflicts Related to Package Dependencies Introduction: As a developer using Composer as your dependency manager, you may
Integer or String for a phone number?
Title: The Great Debate: Storing Phone Numbers as Strings or Integers A Developer's Perspective Introduction Phone numbers are an integral part of our
PHP foreach loop skip first 3 items
Handling Lists Within PHP Foreach Loops: A Practical Guide As developers, we often find ourselves dealing with iterative data structures like arrays
sudo composer install vs. composer install
Title: Understanding the Difference Between sudo composer install and composer install Body: Composer is an essential tool for managing dependencies
Toggle dropdown mini-cart when product added to basket
Toggling the Dropdown Mini Cart When Product Added to Basket Introduction As an e commerce store owner or developer, you understand the importance
Route and view naming conventions
Title: Route and View Naming Conventions for Simplicity and Clarity Body: Route naming conventions are crucial in maintaining the organization of your
Why soft deleted entities appear in query results?
Title: Understanding Soft Deleted Entities and Their Appearance in Query Results The "soft delete" concept is an important feature in modern
Carbon - why addMonths() change the day of month?
Title: Understanding Carbon's AddMonths() Behavior and Handling Date Adjustments Introduction: Carbon is an open source PHP library for working with dates
How do I detect if a category has Include in Navigation Menu set to NO?
Detecting whether a category is excluded from the navigation menu in WordPress requires accessing and checking the database directly or using