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.

    • Magento 2: Change Default Layout Max-Width in Less File

      If you need to change default container max-width globally, just need to change like below: Add _variables.less file in your theme web/css/source folder and add below variable @layout__max-width: 1360px;

      READ MORE
    • Magento 2.4.x: Remove Content Security Policies Errors in Console

      Create config.xml in your custom module and add below code Vendor/Module/etc/config.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> <default> <csp> <mode> <storefront> <report_only>0</report_only> </storefront> <admin> <report_only>0</report_only> </admin> </mode> </csp> </default> </config> Add a domain to the whitelist Create csp_whitelist.xml in your custom module and…

      READ MORE
    • Magento 2 : How to check use default value with all categories & all products?

      If you want all products to have Use Default Value as CHECKED, then run below SQL in the database: DELETE FROM `catalog_product_entity_text` where store_id = 1; DELETE FROM `catalog_product_entity_datetime` where store_id = 1; DELETE FROM `catalog_product_entity_decimal` where store_id = 1; DELETE FROM…

      READ MORE
    • Magento 2.4.x: How to install coding Standard and errors debug command?

      Follow below steps to install Using composer :  - composer require --dev magento/magento-coding-standard - php bin magento setup:upgrade - php bin/magento cache:flush You are done with installations. Now, You can check Magento coding standard errors using the below command for Custom module…

      READ MORE
    • How to add load more button in any listing page in Magento 2?

      In one of the Magento 2 project, we have added a load more button on the listing page. So whenever the user clicks on the load more button, the next page of products will be shown. You can use below on the…

      READ MORE
    • How to discontinue product backend settings?

      To achieve this, create a basic module and below code in InstallSchema.php file. Change the vendor namespace and module name as per your requirement. <?php namespace MagemonkeysDiscontinueSetup; use MagentoEavSetupEavSetup; use MagentoEavSetupEavSetupFactory; use MagentoFrameworkSetupInstallDataInterface; use MagentoFrameworkSetupModuleContextInterface; use MagentoFrameworkSetupModuleDataSetupInterface; class InstallData implements InstallDataInterface {…

      READ MORE
    • Bugs after upgrading Magento store? We got you covered

      To leverage Magento platform benefits, Magento store owners regularly upgrade their stores in latest version. But, it's been observed that they faces some bugs in their eCommerce store after the upgradation process. Below are the reasons for same - Not installing Magento…

      READ MORE
    • Magento 2 : How to set custom product price while displaying at front end?

      If you want to change the main price with a custom price attribute. You can use the below method 1. Create file di.xml on app/code/Magemonkeys/CustomPrice/etc/frontend <?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="MagentoCatalogModelProduct"> <plugin name="change_product" type="MagemonkeysCustomPricePluginModelProduct" sortOrder="1" /> </type> </config> 2. Create file…

      READ MORE
    • Magento 2: Create custom GraphQL data

      We can create custom api for GraphQL. As per the app/code/ standard, our module name is Magemonkeys/Customgraphql We can create schema.graphqls file in module etc folder. Below is the code for that file. type Query { CustomGraphql ( username: String @doc(description: "Email…

      READ MORE
    • Magento 2: Change customer group before saving the customer using plugin

      Create di.xml file your module and add the below code <?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="MagentoCustomerApiCustomerRepositoryInterface"> <plugin name="save_customer_group" type="VendorModulePluginMagentoCustomerApiCustomerRepositoryPlugin" /> </type> </config> Create plugin file under this directory Vendor/Module/Plugin/Magento/Customer/Api/CustomerRepositoryPlugin.php <?php namespace VendorModulePluginMagentoCustomerApi; use MagentoCustomerApiDataCustomerInterface; use MagentoCustomerApiCustomerRepositoryInterface; use MagentoFrameworkControllerResultFactory; use MagentoFrameworkUrlInterface; use…

      READ MORE
    Recent Articles
    Get a Free Quote