first, you need a class render. here is a sample code.Code path : Vendor/Module/Ui/Component/Listing/Column/Product.php class code : find your grid UI file : it should be in this path : Vendor/Module/view/adminhtml/ui_component/–_listing.xml append this code between columns tag: This column will pass a product id. so you can find the product in your render class.bodyTmpl tag…
Enhancing Magento 2 Email Templates with Images
In today’s e-commerce landscape, effective communication with customers is key to building lasting relationships and driving sales. Magento 2, a popular e-commerce platform, offers the capability to send transactional emails to customers. By incorporating images into these emails, you can create visually appealing and engaging content that leaves a lasting impression. This article will guide…
Session size of 259343 exceeded allowed session max size of 256000
Fast solution for Magento When you see the error message “Session size of 259343 exceeded allowed session max size of 256000,” it means that the session data you are trying to store is too large for the maximum allowed size of the session. Sessions are a way for websites and web applications to store information…
mcrypt for php 8.1 or php 7.4
Unfortunately, the mcrypt extension is not supported in PHP 7.2 and later versions, including PHP 8.0. However, there are alternative solutions that you can use to encrypt and decrypt data in PHP. One popular alternative is the openssl extension, which provides encryption and decryption functions using the OpenSSL library. Here’s an example of how you…
Magento 2: Missing env.php
If you cannot find the env.php file in your Magento 2 installation, it is likely because the file is not present in the expected location or has been deleted or renamed. Here are some possible reasons and solutions: 1- Wrong directory: Make sure you are looking in the correct directory. The env.php file should be…
10 Tools To Check website (shop) SEO
Search engine optimization (SEO) is essential for driving traffic to your website and increasing your online visibility. By improving your website’s SEO, you can boost your rankings in search engines like Google and attract more visitors to your site. To help you with this task, we’ve compiled a list of 10 tools to check website…
ignore requirement in the composer update
To ignore requirements when running composer update, you can use the –ignore-platform-reqs option. to ignore php extension you can use –ignore-platform-req=ext-sodium By adding above code to composer update it will ignore sodium extension Composer is a powerful dependency management tool for PHP that allows developers to easily manage their project’s dependencies. When running the composer…
remove old files after a while with linux
maybe you need to remove old file or maybe you need to do this frequently so how we can do it. if you are using the Linux as OS it will be easy for you just use below command : this command will remove files older then 1 week or 168 hours (7*24) if you…
Magento 2 add configuration link In menu
How can we create a menu link to our configuration section? Adding a configuration link In menu is too easy. Just do like this: create a menu xml file under the etc/adminhtml directory and put below code inside it.
there are no source item with the in stock status
Whenever we will upgrade Magento 2.3.X version to Magento 2.4.3 at that time Multi Source Inventory Issue happens. To solve that issue need to follow below steps. Step #1 First Disable all MSI extension Step #2 di compile the Magento codes Step #3 Check will inventory_source_item and inventory_source_stock_link table removed Step #4: Enable all MSI…