Magento2 – Encrypt & Decrypt Configuration Settings Value using N98-magerun2 CLI

This article shows how you can encrypt and decrypt Magento configuration settings values using the n98-magerun2 command line (CLI) tool. Get configuration settings value in plain text n98-magerun2.phar config:store:get path/of/config/setting Get configuration settings value on store level n98-magerun2.phar config:store:get –scope=stores –scope-id=2 config/setting/path Get decrypted configuration settings value n98-magerun2.phar config:store:get –decrypt config/setting/path Set configuration settings value … Read more

Magento: PayPal Standard Payment form replaced by PayPal Express Checkout form in Admin Payment Settings

Problem: The PayPal Payments Standard form is missing from Payment Settings in Magento admin. System -> Configuration -> SALES -> Payment Methods -> PayPal All-in-One Payment Solutions PayPal Payments Standard is displayed as Payments Standard (Includes Express Checkout) and it is showing the form contents of PayPal Express Checkout. The original form of PayPal Payments … Read more

Magento: Add Custom Selection List in System Configuration

This tutorial shows how to add a custom select list in configuration settings of a custom Magento module. Suppose, your module’s namespace is YourNamespace and your module’s name is YourModule. And, you want to add a selection list of Brands that contains mobile brand names like Samsung, Sony, Apple, etc. Here is the code to … Read more

Magento: System Configuration with Tab for Custom Module

This article shows how to add system configuration (System -> Configuration) menu with menu tab for your custom module. Let us suppose, you have already created a local module. Module Namespace: Chapagain Module Name: News Here is a step-by-step guide:- 1) Create app/code/local/Chapagain/News/etc/system.xml with the following code:- <?xml version="1.0" ?> <config> <tabs> <news translate="label" module="news"> … Read more

Magento: Add default value to System Configuration Option fields

This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration. Suppose, you have the following system.xml file. System.xml file is necessary to add admin configuration options. system.xml <?xml version="1.0" encoding="UTF-8"?> <config> <sections> <mysection translate="label" module="mymodule"> <label>My Section</label> <tab>catalog</tab> <frontend_type>text</frontend_type> <sort_order>110</sort_order> … Read more