Magento Configuration, Magento Frontend Development

How to Update/Reload Magento 2 Mini Cart Programmatically

When developing a custom solution, whether it is a theme or a module, developers need to implement logic that adds a new product or modifies the quantity of the product in the cart. It may seem a straightforward task, but developers often face an issue where changes in the mini cart aren't reflected.

This article will explore the most frequent reason why the updated mini cart data may not be visible on the frontend and provide step-by-step instructions on how to reload Magento 2 Mini Cart programmatically.

Magento Marketing

How to Add Affiliate Tracking Code to Magento 2

Among different types of affiliate programs, Pay Per Sale (PPS) and Pay Per Lead (PPL) are the most commonly used. In the PPS program, the tracking code is placed on the checkout success page to confirm that the purchase was successful, while the PPL program tracks account registrations.

Affiliate programs rely on JS tags, also known as pixels, to track conversions. However, adding them to a Magento 2 website can cause some difficulties for people who are not tech-savvy. This tutorial provides a general understanding and a detailed guide on how to add a Magento 2 affiliate tracking code to the checkout page for the Pay Per Sale program.

Magento Backend Development, Programming

How to Configure Xdebug for Magento 2 Application via PHPStorm or VSCode

Xdebug is a powerful PHP extension designed specifically to help developers in debugging. It has a wide range of features that streamline the error-finding process and offer valuable insights. Installing this application can sometimes be tricky, so we prepared a step-by-step tutorial on configuring Xdebug for Magento 2 application via PHPStorm or VSCode.