Tag: Magento

Magento 2 command list

Hello reader today we share list of the some usfull magento 2 command list. You will find the list of important commands Magento 2. Connect the SSH and go to magento root directory to run/execute the commands MAGENTO 2 USEFUL COMMANDS LIST Elasticsearch entry into Database bin/magento config:set catalog/search/engine elasticsearch7 bin/magento config:set catalog/search/elasticsearch7_server_hostname bin/magento […]

How to add custom select box in window.checkoutConfig on Checkout

Sometimes you need a custom variable add-in window.checkoutConfig dynamically and display on the checkout page according to requirement, follow steps to add custom select box in window.checkoutConfig on Checkout. Step 1 : Create di.xml file and add below code File : Vendor/Module/etc/frontend/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”> <type name=”Magento\Checkout\Model\DefaultConfigProvider”> <plugin name=”CustomCheckoutModelDefaultConfigProvider” type=”Vendor\Module\Plugin\Checkout\Model\DefaultConfigProvider” sortOrder=”100″/> </type> </config> […]

Request validation failed for action in Magento 2

Today in this post we will found a solution for Request validation failed for action issue in Magento. Sometime custom controller redirect to dashbord in magento admin panel There are below method to solve this kind of issue. Sulution 1. Add below in your claass use Magento\Framework\App\CsrfAwareActionInterface; use Magento\Framework\App\RequestInterface; use Magento\Framework\App\Request\InvalidRequestException; and implements CsrfAwareActionInterface class […]

Back To Top