In this tutorial, Today I will explain to how to get current GMT Date Time in Magento 2. To get Current GMT Date Time Magento provide class for that \Magento\Framework\Stdlib\DateTime\DateTime. You need to inject it in your construct class to get GMT Date Time. Follow this below way to get GMT Date Time : You may also like this :…
Tag: how-to
How to Get Salable Quantity in Magento 2.3.x
In this tutorial, Today I will explain to how to get salable quantity in Magento 2.3.x version. After Magento 2.3.x version, you might notice that Magento display 2 different qty. one is quantity and second is salable quantity. The Quantity of product will not decrease when you just place order. It will decrease salable quantity when you place order. Quantity…
How to Rename Details Tab on Product View Page in Magento 2
In this tutorial, Today I will explain to how to rename details tab on product view page in Magento 2. On Magento 2 Product view page, there are 3 tabs by default display : Details, More Information and Reviews. Now, If you want to change tabs name by xml then, you can follow this below way : You may also…
How to Add Phone Number Validation in Checkout in Magento 2
In this tutorial, Today I will explain to how to add phone number validation in checkout page in Magento 2. On checkout page, There are many fields available. By default in phone number, You can add any of string value and number value. But, now if you want to allow only number then, you need to add validation rule on…
How to Enable and Generate CSS Critical Path in Magento 2
In this tutorial, Today I will explain you how to enable and generate CSS critical path in Magento 2. Critical CSS is a technique that extracts the CSS for above the fold content in order to render content to the user as fast as possible. If we need to improve your site speed performance then, it’s one of the good…
How to Add Slick Slider in Magento 2
In this tutorial, Today I will explain to how to add slick slider in Magento 2. Slick slider is one of the good carousel slider plugin to product list. You can set it in your most viewed product slider, new product slider, featured product slider etc. So, Let’s see that how to add slick slider in Magento 2 You may…
How to Add Owl Carousel Slider in Magento 2
In this tutorial, Today I will explain to how to add owl carousel slider in Magento 2. Owl carousel slider is one of the most used carousel slider plugin to product list. You can set it in your most viewed product slider, new product slider, featured product slider etc. So, Let’s see that how to add owl carousel slider in…
How to Disable Two Factor Authentication in Magento 2
In this tutorial, Today I will explain to how to disable two factor authentication in Magento 2. After Magento 2.4.x, Magento by default enable two factor authentication. Admin users must first configure their 2FA before logging into the Admin through either the UI or a web API. This step of authentication makes it harder for malicious users to log in…
How to Redirect to The Particular Page After Login in Magento 2
In this tutorial, Today I will explain to how to redirect to the particular page after login in Magento 2. In default Magento 2, redirect customer to their dashboard page after customer login. Now, If you want to redirect customer to the particular page after customer login then, you need to follow the below steps for that You may also…
How to Check if Customer Account is Confirmed or not in Magento 2
In this tutorial, Today I will explain to you how to check if customer account is confirmed or not in Magento 2. Sometimes, you need to check programmatically that customer account is confirmed or not. For that you need to inject \Magento\Customer\Api\AccountManagementInterface this class. You may also like this : How to add new customer address by REST API in…