We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    • How to Create Custom Admin Menu in Magento 2?

      In this guide, we are going to show you how to create a custom admin menu in Magento 2. The first step is to create a module. Let's give the module a name. Call it: Magemonkey_Newadminmenu Then, create registration.php file <?php MagentoFrameworkComponentComponentRegistrar::register(…

      READ MORE
    • How to Show Catalog Product List widget’s product in given order?

      If you want to show product listing in a given order by its category in the Catalog Product List Widget? Then follow the below steps. Step 1: Create a file like ProductOrder/CatalogProList/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="MagentoCatalogWidgetBlockProductProductsList"> <plugin name="custom_widgets_product_list" type="ProductOrderCatalogProListPluginBlockProductProductsOrderList"/>…

      READ MORE
    • Magento 2 add custom menu after all top menu in navigation

      We have two choices for achieving this functionality. One option is to directly add in topmenu.phtml by overriding a file in your theme. There are chances that it won't work if you have a third party mega menu extension. Another way is by using the plugin,…

      READ MORE
    • How to download pdf file magento2?

      Magento2 has a built-in script for any kind of file download, we can use the below code for file downloads: <?php /** * Magemonkeys. * * @category Magemonkeys * * @author Magemonkeys * @copyright Copyright (c) 2020 Magemonkeys (https://magemonkeys.com/) */ namespace MagemonkeysDownloadControllerDownload;…

      READ MORE
    • Make clickable Value of Grid (UI Column)

      If you want to set clickable value in the Magento 2 Grid then please follow the below steps. I have made this type of functionality for my custom module. Step 1: Please add this code to your UI Listing XML. We have added bodyTmpl…

      READ MORE
    • Magento 2: add css class in body on non anchor category page

      If you want to add css class for only nonanchor category, then you need to add below code in app/design/frontend/Isev/[your-theme]/Magento_Catalog/layout/catalog_category_view_type_default.xml <body> <attribute name="class" value="nonanchercat"/> </body>

      READ MORE
    • Get category data by using category id in Magento 2

      Create the block file in your module. <?php namespace MagemonkeyCategoryBlock; class Category extends MagentoFrameworkViewElementTemplate { public function __construct( MagentoFrameworkViewElementTemplateContext $context, MagentoCatalogApiCategoryRepositoryInterface $categoryRepository, array $data = [] ) { $this->categoryRepository = $categoryRepository; parent::__construct($context, $data); } /* $categoryId as category id */ public function…

      READ MORE
    • How to get request post params from rest webapi in Magento 2?

      While you're working with the REST API in Magento you can retrieve the Rest Webapi Request Parameters. Magento has its own OOTB Webapi module that is dealing with Rest API functionality. Required Class, MagentoFrameworkWebapiRestRequest <?php namespace MagemonkeysRestParamsModel; use MagentoFrameworkWebapiRestRequest; class GetRestParam { /** * @var…

      READ MORE
    • Add credit card form in checkout page in Magento 2

      Before following the below steps you need to create the custom payment method module. Step 1) Create a template file - Magemonkey/Chargeanywhere/view/frontend/web/template/payment/chargeanywhere.html <!-- /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <div class="payment-method"…

      READ MORE
    • Magento 2 add custom price in summary section on checkout page

      Step 1) Create di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"> <type name="MagentoCheckoutModelDefaultConfigProvider"> <plugin name="AddAttPlug" type="[vendor][module]ModelPluginDefaultConfigProvider" /> </type> </config> Step 2) create plugin file DefaultConfigProvider.php class DefaultConfigProvider { /** *@var checkoutSession */ protected $checkoutSession; /** *Constructor * @param CheckoutSession $checkoutSession */ public function __construct(CheckoutSession…

      READ MORE
    Recent Articles
    Get a Free Quote