Field dependencies in the system.xml configuration file allow certain fields to be displayed or hidden based on the values of other fields. This enhances the user experience and ensures that only relevant options are presented to the admin user.
Sometimes, that dependency is on more than one value. For example, you want to display a specific field only when some specific values are selected for any field.
Magento 2 Get Raw Request Data in Controller
If you want to get all the data which are sent outside Magento or from POSTMAN to the Magento controller and the format of the body is Raw then you can not get data using getParams() in the Magento 2
Continue reading “Magento 2 Get Raw Request Data in Controller”Magento 2 Session size of 481712 exceeded allowed session max size of 256000
You may see the warning message session size exceeded the allowed session max size after you upgraded the Magento version to 2.4.3. Due to this issue, you may face some of the admin features stop working after upgrading your website to the 2.4.3
Continue reading “Magento 2 Session size of 481712 exceeded allowed session max size of 256000”Magento 2 Get a Country Numeric Code Using Country Code
Magento 2 use ISO 3166-1 two-letter country code as a value of country dropdown, but sometimes you may need a three-digit numeric code (numeric-3) and this is not provided by Magento. There is no way in the Magento to get country numeric code using country two-letter code.
Continue reading “Magento 2 Get a Country Numeric Code Using Country Code”Magento 2 Hide Product Price for Specific Customers
Magento 2 commerce edition allows hiding product prices for all or specific customers groups. This feature helps merchants to hide prices for a specific group of customers. Like, do not display a price for the retailer if a website is B2B
Continue reading “Magento 2 Hide Product Price for Specific Customers”How to use cURL in Magento 2
cURL (client URL) is used to call third-party API data on your website. As a good Magento developer, you should avoid PHP default cURL in your Magento 2 website. Magento provides a cURL class to transmit HTTP requests and receive responses from third-party services. The Magento class for cURL is Magento\Framework\HTTP\Client\Curl
Magento 2 Execute Existing Data Patch
During module installation or upgrade procedures, Magento 2’s data patches are effective tools for handling database changes and data updates. If Magento developers want to maintain clean, effective database migrations, they must know how to apply and deal with current data patches.
When you install a module or update to the most recent version, Magento 2 data patches are applied once. As a Magento developer, you might need to execute data patches several times while testing certain modules.
Continue reading “Magento 2 Execute Existing Data Patch”Magento 2 Hide Add to Cart for Specific Customers
NOTE: This feature is provided by Adobe Commerce (Magento Enterprise Edition) only.
When the Magento website is B2B and merchants do not want to allow some group of customers to purchase the items then Magento provides a feature to hide the add to cart button from the website for specific customers group.
Magento 2 Clear Customer Shopping Cart from Admin
NOTE: This feature is provided by Adobe Commerce only.
If you are managing the Magento commerce cloud website and it is B2B, then you may face sometime website getting stuck, the reason could be that some customers add too many times to the shopping cart. At that time you can clear a specific customer’s cart from the admin.
Magento 2 db_schema_whitelist.json file not creating
If you don’t know how to create db_schema_whitelist.json file then please check our previous blog post of how to create db_schema_whitelist.json file using CLI in Magento 2
Continue reading “Magento 2 db_schema_whitelist.json file not creating”
