Blog

Install/debug Magento2 delivery date extension

How to Install and Debug a Magento 2 Delivery Date Extension Magento 2 is a powerful e-commerce platform, and delivery date extensions play a crucial role in elevating the customer experience by offering flexible delivery options. These extensions allow store owners to configure delivery dates during checkout with features like…

New Magento update 2.4.6 Released, but why?

Magento 2.4.6 is released Today, 14th March 2023. When there are so many release of Magento2, why one more release? New Magento update 2.4.6 Released, but why? There are so many reasons behind releasing Magento update 2.4.6. Lets understand them:- This magento 2.4.6 update release includes over 300 quality fixes and…

The Content-Security-Policy directive ‘frame-ancestors’ does not support the source expression ”unsafe-inline” for allowed site

Lets talk about “The Content-Security-Policy directive ‘frame-ancestors’ does not support the source expression ”unsafe-inline” for allowed site”. This is known issue in 2.4.3 release Magento doc. https://devdocs.magento.com/guides/v2.4/release-notes/open-source-2-4-3.html#known-issues. So, for being time, we can fix this issue temporarily. The solution is to creating own custom module to extending the Magento_Csp module.…

Show First Option Selected of Configurable Products

Do you want to display first options of configurable product to be selected? Step 1: Create the module Create the registration.php  file in app/code/Thecoachsmb/Productmodule/ for the module <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Thecoachsmb_Productmodule’, __DIR__ ); Create directory app/code/Thecoachsmb/Productmodule/etc Put this file in it : module.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Thecoachsmb_Productmodule” setup_version=”1.0.0″> <sequence> <module name=”Magento_ConfigurableProduct”/> <module name=”Magento_Swatches”/>…

Product Image not display in the Caraousel or Slider Magento2

Are you facing issue of product image not displaying in the Slider or Caraousel in Magento2? One of the possible reason could be that product image path shows %5C instead of /. To fix this, I have following solutions:- Overrite the vendor\magento\module-page-builder\view\frontend\templates\catalog\product\widget\content\carousel.phtml file in your custom theme. Replace the line…

Preview image for custom theme is not showing on the admin Magento2

Are you facing issue of not displaying Preview Image for custom theme in admin Magento2? Make sure that you have mentioned media tag in the theme.xml file of your theme as shown below: <media> <preview_image>media/preview.jpg</preview_image> </media> Then you have image preview.jpg in your custom theme app/design/frontend/[vendor]/[themename]/media/. Even though, it is not…

Newsletters in Magento2

Newsletters are an essential part of eCommerce marketing. With this you have a list of your customer’s emails, you can easily inform them about new products, specials, promos, with updates and news, etc on your Magento store. To understand the process of newsletter in Magento2. Let’s go through the it…

How to call Newsletter in static block Magento2

In this article, we are going to learn about calling the newsletter in the static block of Magento2. First, you need to decide in which static block you need to display the newsetter. In that static block, call newsletter like below. Paste below code inside that block. {{block class=”Magento\Newsletter\Block\Subscribe” name=”static.newsletter”…

Solved – Magento 2.4.4 Deprecated Functionality: pathinfo(): Passing null to parameter #1

WElcome to this article, I hope this article will resolve your error. Error: – Deprecated Functionality: pathinfo(): Passing null to parameter #1 ($path) of type string is deprecated in /vendor/magento/framework/View/Asset/PreProcessor/FileNameResolver.php on line 44 Solution: –  Go to the parent directory of your theme, it must be in vendor/magento/theme-magento-blank or theme-magneto-luma/…

Magento 2 – Homepage is 404 after migration

In some cases, The categories entity had an empty request_path. Go to the database and with the help of this command find the categories or products entities that have an empty request_path SELECT * FROM `url_rewrite` WHERE request_path=”; Delete all those entries and use the cache clean and flush command: php bin/magento cache:clean php bin/magento cache:flush…

Create Customer Attribute in Magento2

In Magento2, to create new custom attribute for customer you need your custom module. If you have already any module installed in your magento then you can use UpgradeData.php file to create new customer attribute or if you don’t have any custom module then you can create new attribute by using InstallData.php file.…

How to add new checkout step in Magento2

Originally, the default Magento 2 checkout process includes two steps: Shipping Step Review and Payment Step In various project, there is requirement of adding new step. You can add a custom step; note that it should be implemented as a UI component. The customizations should be happening in a separate…

Magento 2 Create Shipping Method

Magento 2 is a rich eCommerce platform and it also supports few shipping methods in the checkout process. However, they are not enough to make you comfortable. In order to be proportional with your development in the future, the customization of shipping methods is really crucial. Therefore, Magento 2 Create Shipping…

Plugins (Interceptors) in Magento2

As defined by the official document, “A plugin or interceptor is a class that modifies the behavior of public class functions by intercepting a function call and running code before, after, or around that function call and allows to substitute or extend the behavior of original, public methods for any class or interface.” In the simple words, “A…

Solved:- Parse error: syntax error, unexpected single-quoted string “/”, expecting “)” in Validator.php on line 141 Magento2

In this article, we are going to resolve the error:- Parse error: syntax error, unexpected single-quoted string “/”, expecting “)” in vendor\magento\framework\View\Element\Template\File\Validator.php on line 141 Solution:- In order to make the code work on windows instead of using realpath just use the $path argument passed to the method Go to…

How to create Admin Module in Magento2

In this article, we are going to learn how to create admin module in Magento2. There are some actions which we are going to implement like:- create menu create sub-menu display grid on the sub-menu display search box display pagination display column controls display filters display bookmarks display mass-actions Let’s…

How to Override JS File in Magento 2

In this article, we are learning the way of overriding the Js files in Magneto2. Magento 2 provides a solid mechanism to inject the custom JavaScript file in our themes and modules. We can inject the custom JavaScript file using requires js. Many times while developing the store we need to…

🚀 Let’s Connect on LinkedIn! 🚀

Want to level up your skills and knowledge? 🚀
Follow us on LinkedIn to get:
✅ Expert insights on business growth
✅ Daily tips to sharpen your skills
✅ Exclusive updates from The Coach SMB

Let's grow together!