Magento 2 Redirect disabled product to other URL
Magento 2 Redirect Disabled Product To Other URL, You can achieve this functionality using override Magento\Cms\Controller\Noroute\Index controller Create di.xml filePath: app/code/VenderName/ModuleName/etc/di.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <preference for=”Magento\Cms\Controller\Noroute\Index” type=”VenderName\ModuleName\Rewrite\Controller\Noroute\Index” /> </config> Create Index.php filePath: app/code/VenderName/ModuleName/Rewrite/Controller/Noroute/Index.php <?php /** * * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace VenderName\ModuleName\Rewrite\Controller\Noroute; […]
Magento 2 create category attribute using upgradeData
Today we discuss about the Magento 2 create category attribute using upgradeData using the script. We are creating a select box category attribute using the below steps. Increase the module version from 1.0.0 to 1.0.1 in module.xml filePath: app/code/Custom/CategoryAttribute/etc/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=”Custom_CategoryAttribute” setup_version=”1.0.1″> <sequence> <module name=”Magento_Catalog”/> </sequence> </module> </config> Create […]
Create category custom layout in Magento 2
Today we discuss to create a category custom layout in Magento2 Create layout.xml fine in your theme app/design/frontend/ABC/XYZ/Magento_Theme/layouts.xml <page_layouts xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/PageLayout/etc/layouts.xsd”> <layout id=”customlayout”> <label translate=”true”>Custom Layout Page</label> </layout> </page_layouts> Layout id = customlayout Create customlayout.xml file, Layout id name file name will same. app/design/frontend/ABC/XYZ/Magento_Theme/page_layout/customlayout.xml <?xml version=”1.0″?> <layout xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_layout.xsd”> <update handle=”empty”/> <referenceContainer name=”page.wrapper”> <container name=”header.container” […]
Add/Remove Class in Javascript
Add/Remove Class in Javascript, we will use “classList” function. When a user clicks on the element, then a class will be added to that element.Apply your logic using the newly added class, like show hide another div to attract the user. HTML code <!DOCTYPE html> <html> <head> <title></title> </head> <body> <div id=”close-container”> <button id=”my_button”> My […]
Magento 2 rest api
Today we discuss the Magento 2 rest API. API is also called web services. API stands for the Application programming interface Proccess of the prodcut add to cart usign rest API Create customer token Create an empty cart/quote using the token Add to product to the cart Fetch cart details Fetch cart totals Apply coupon […]
Convert Excel To CSV using vbScript
In this blog, we will see how to convert Excel to CSV using vbScript. How we can convert Excel file into CSV file easily by executing on simple vbScript? This code will help you to convert your excel file to convert into csv format. Some CSV format might change due to records like date format(dd/mm/yyyy) […]
Access denied for user ‘phpmyadmin’@’localhost’ (using password: YES)
In this blog, we will see how to fix the error “Access denied for user ‘phpmyadmin’@’localhost’ (using password: YES)” following simple steps. Once you follow the below you will be able again to use your phpMyAdmin@localhost database. Below are the steps:- You have to open XAMPP Control Panel ->Click MySql Config->Click my.ini. It will open […]
Top 5 Hosting Providers in India
In this blog, we will discuss about top 5 hosting providers in India. Web hosting is a service that allows anyone to post a website/web page/web application onto the internet. A web hosting service provider, is a business that provides the platform and services needed for the website or webpage to be viewed online. Websites […]
Keyboard Shortcuts in Windows 11
Windows 11 is now installed in our laptops with new UI and functions. So lets find out new/old keyboard shortcuts in windows 11. Below we bring some of the keyboard shortcut with “Window logo key”. What is Keyboard Shortcut? Keyboard shortcuts are keys or combinations of keys that provide an alternative way to do something […]
What Is Automation Testing And Why It Is Important For Mobile Applications?
In this blog, lets discuss What is Automation Testing and Why it is important for mobile applications. Nowadays, Software testing plays a vital role in the development of any mobile application or software product. It is a process of executing an application or program to find the software bugs. Basically, it enhances the quality of […]
Can’t install or download apps from Microsoft store
In this blog, we will discuss how you can fix issues when you can’t install or download apps from Microsoft store in Windows 11. There are many possible solutions to resolve this issue. You can easily repair and reset your Microsoft store by following this steps. Below are the two ways explained step by step- […]
How to Install Android Apps in Windows 11
Android apps install in windows 11, You will need an Amazon account to download Android apps onto your Windows 11 device via the Microsoft Store app. Windows 11 PC must have hardware virtualization enabled. Windows 11 essentially runs Android in a virtual machine, which is why this is necessary.You can check if your PC has […]