Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Override Braintree Config.xml via Custom Module

Below is an except from vendor/paypal/module-braintree-core/etc/config.xml and I am curious how to add new credit card to, <cctypes_braintree_mapper> via a custom module. Is this done via a di....
A. Andersen's user avatar
0 votes
1 answer
84 views

create custom module, get existing module configuration

I would like to create a custom module, I want to get used to the vendor/magento/module-ups/ module, and use the same config in my custom module, such as userID, password, access key. how can I ...
Paul Fan's user avatar
  • 658
1 vote
2 answers
2k views

Magento 2 - How to allow certain html elements in system.xml config field?

I try to add this HTML (<span style='color:red'>*</span>)to the content of a field with type text. But the html is getting stripped. How can I allow all secure html elements but disallow ...
Black's user avatar
  • 3,431
1 vote
1 answer
861 views

Magento2 - Add custom javascript to 'My Account' page

I've been trying to find questions, articles, or documentation covering this, but haven't been able to find what I need or haven't understood it yet. I have a custom module that a colleague wrote (...
James's user avatar
  • 117
0 votes
1 answer
2k views

Magento 2.3: system.xml and config.xml: Default values not showing up in the admin

I'm developing a module for Magento 2.3 and can't get default config values to show up in the admin. To the best of my knowledge, I've followed all the documentation I can find. It's kind of driving ...
Crankycyclops's user avatar
3 votes
1 answer
2k views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...
Rafael Corrêa Gomes's user avatar
2 votes
1 answer
1k views

Magento 1: How to add a system configuration setting of custom module under the second module tab in admin?

I have two modules with same vendor name. I want to display the second module system configuration setting under first module tab in admin. Do you guys have any idea? Here are my system.xml files for ...
Pankaj Sharma's user avatar
2 votes
0 answers
688 views

Syntax for overriding config.xml module configuration with config.php in magento2?

I have a module MyCompany_ExampleModule. Its etc/config.xml file: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/...
hey's user avatar
  • 1,137
1 vote
1 answer
122 views

Custom Magento module config.xml not loading after applying security patch

I've just applied the security patches on Magento 1.9 and after that, my custom modules didn't work. I tried clearing the cache and index but nothing happened. When I tried visiting the URL of my ...
nosnevetzy's user avatar
0 votes
1 answer
49 views

Can't add custom configuration options for module in backend - 404 page not found

I was following different tutorials from the internet and from books, but none of them works. Let's follow this tutorial (https://code.tutsplus.com/tutorials/custom-back-end-configuration-in-magento--...
Black's user avatar
  • 3,431
1 vote
2 answers
968 views

Constants in config.xml

Is it possible to use PHP class constants as values in the config.xml file? For example, if we have this config.xml file: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
knospe's user avatar
  • 238
1 vote
0 answers
141 views

Ensure module is loaded after all magento 2 modules

I want to create a module that is loaded first after all the magento modules are loaded. Is there a list somewhere of all them magento 2 module sequence? Or is there any way to set a module to load ...
Spencer Rohan's user avatar
0 votes
3 answers
76 views

Basic procedure while adding an additional controller to a module in Magento 2.1

I am trying to create a new controller for a module. I have set the frontend layout XML file and corresponding template file. I have flushed the cache too. Still it's showing a 404 error. What am I ...
Midlaj's user avatar
  • 397
0 votes
1 answer
720 views

Magento 2 New Module not appearing in admin Disable Modules Output

I am new to M2, and just adding a new module to a local devbox environment using PhpStorm IDE. I've created the module several ways, rather, several modules, each a different way: Magento 2 Code ...
lilbumblebear's user avatar
0 votes
1 answer
53 views

Install script doesn't execute

I'm trying to create a new attribute, but my install script does not run. etc/config.xml <modules> <Namespace_ShippingPrices> <version>0.1.0</version> </...
Paul's user avatar
  • 11
0 votes
1 answer
686 views

Completely Disable Module - Magento 1.9

I am trying to disable a Magento programatically.For just trying I added the following code to myadmin header.phtml. // Disable the module itself $moduleName="Thycart_Customcheckout" $...
Melvin's user avatar
  • 43
1 vote
1 answer
79 views

How to keep module enabled across instances in Magento 2?

is there any way to keep free contributed plugin (for example MageMonkey 2) to be enabled across different instances of website(dev, stage, prod), keeping the configuration?
Damir Gadiev's user avatar
1 vote
1 answer
516 views

Validating a textbox based on AJAX response before Save in Magento 2

In Admin Config, I have a textbox where i will enter a value. When hitting on Save Config button. The value from the Textbox is sent over through an AJAX call. If the response is positive, it should ...
Karthickeyan N's user avatar
0 votes
1 answer
402 views

Custom Module Nested Router Frontname

I have setup a custom module in my magento store (CE-1.9.0.0) with the following in my config file: <?xml version="1.0"?> <config> <modules> <Company_Custom> ...
odd_duck's user avatar
  • 1,396
2 votes
0 answers
29 views

Magento 1: how to configure the first configuration which will be opened? [duplicate]

I noticed this behavior several times on several websites I've worked on. When clicking System > Configuration the first configuration section that opens is not the first one of the list of tabs. I'...
Raphael at Digital Pianism's user avatar
2 votes
0 answers
100 views

Magento 2 Custom Customer Attribute Save Data and edit data, i have problem

I create a customer module this module working good , when I migrate data mangento 1.x to magento 2.x wiht migration tool and i wish crete a new customer don’t save data or edit any customer don’t ...
danielruedaa's user avatar
6 votes
1 answer
4k views

How to rebuild the modules sequence

TL:DR; How can I rebuild (automatically) the modules sequence stored in app/etc/config.php in Magento 2. Long version: I have 2 modules I'm working on. I installed them in the order "Module 1", "...
Marius's user avatar
  • 199k
7 votes
2 answers
6k views

How to set cronjob dynamic schedule from database in Magento 2

I am working on a custom module for Magento 2. I did setup crontab there and it is working good with static schedule. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Sohan's user avatar
  • 297
0 votes
1 answer
71 views

Set module frontname programatically

In my magento admin area, admin can set a name to be displayed on the contact us page. For example, admin can set "contact-us" as the url-alias and I want to set that as the frontname of my contacts ...
Shiran S Ekanayake's user avatar
1 vote
2 answers
77 views

helper_data.php not found in custom module

I have created a new module. But it is showing error on log file like following: 2016-09-23T06:03:35+00:00 ERR (3): Warning: include(/home/andropls/magento/includes/src/...
Subhajyoti De's user avatar
0 votes
0 answers
304 views

Naming convention in config.xml

I'm on Magento 1.9.2 and following these tutorials to learn Magento. On this page there are instructions to create a Module for loading blog posts. I followed the instructions to the point until this ...
Whip's user avatar
  • 125
6 votes
1 answer
700 views

Mage_Module_Helper_Data not found in Magento C.E 1.9

I am using magento 1.9 C.E and I have this issue whenever I try to disable any module from app/etc/modules/Mymodule_Custom.xml <active>false</false> It throws the error ...
Abhishek Dhanraj Shahdeo's user avatar
2 votes
1 answer
101 views

Create community module

I downloaded megento with composer and installed it,ther app/code directory for creating module, So i just created this directory and my module directory like this : And etc\modules as the same,i ...
Saeed Darvish's user avatar
2 votes
2 answers
5k views

Disable module and it's output programmatically in Magento 2

In magento 1 disable module and it's output programmatically protected function _disableModule($moduleName) { // Disable the module itself $nodePath = "modules/$moduleName/active"; if (...
Prashant Valanda's user avatar
0 votes
1 answer
958 views

Magento required module not found

I've recently started doing Magento tutorials, since I'm starting a Magento job soon and they've asked me to study up on it so that I don't end up completely out of my depth when I start there. I'm ...
Skytiger's user avatar
  • 511
5 votes
1 answer
442 views

<module>...</module> vs <namespace_module>...</namespace_module> in config.xml Magento

I am new into Magento development, I have created some basic modules also with the help of available tutorials. However, I am not able to understand the difference between <module>...</module&...
Vaibhav Dass's user avatar
15 votes
2 answers
9k views

How can I set configuration values in Magento 2?

Previously (in Magento 1, that is) we created a module called Setup which contained setting for the site. The upgrade scripts looks something like this: $installer = $this; $installer->startSetup()...
Martin Wickman's user avatar
1 vote
1 answer
731 views

Where to place constants and/or module specific configuration

I have a module that needs smtp authentication information (host, email, method, password, port). I don't want to just hard code this. Where can I put this information where it will have some ...
Goose's user avatar
  • 428
0 votes
2 answers
759 views

How to register more than 1 event observer in config.xml

How to register more than 1 event observer in config.xml If called methods are in same class & file. When using both observer seprately(registering them seprately) both are working. But when both ...
Rahul Chaurasia's user avatar
1 vote
3 answers
578 views

Missing Images with correct url and permissions

Tried adding images to a header block, it worked the first time but the images had different widths. So I opened them up in photoshop edited the widths, uploaded them back to file server with same ...
SixShields's user avatar
10 votes
1 answer
25k views

How to add a custom helper in my module?

How to create new Helper or override/rewrite Core Helper in Magento 2 module? I tried adding dependency into my module.xml of Custom Module, but it doesn't load Helper class at all. Below is my ...
Vicky Dev's user avatar
  • 1,992
4 votes
4 answers
10k views

Magento 2 module "Object domdocument should be created" error

I am getting above error when I run my module in browser as: 192.168.0.106/magento-2/module1/index/index Below is my Controller code: <?php namespace Company1\Module1\Controller\Index; class ...
Vicky Dev's user avatar
  • 1,992
4 votes
5 answers
3k views

Magento 2 module version number not editable

I have just started exploring Magento 2 structure and code-flow, also module development. When I created module from an online module generator and tried to change it's "setup_version" & "...
Vicky Dev's user avatar
  • 1,992
35 votes
2 answers
42k views

Magento 2: Default Values for `system.xml` Configuration

In Magento 1, it was possible to Configuration a user interface for the System Configuration section in etc/system.xml files Set default values for those fields in the etc/config.xml files Behind ...
Alana Storm's user avatar
  • 44.4k
4 votes
1 answer
2k views

Module disabled in app/etc/modules is still showing in admin in Disable Modules Output

I have changed the active parameter from true to false in a module's app/etc/modules/Namespace_Module.xml file, and flushed the cache. I've also logged out and then in again. However, the module is ...
Sarah's user avatar
  • 870
1 vote
3 answers
2k views

Magento disabling a module not working properly [duplicate]

I am using Magento 1.9.2.1 version in a WAMP Server. I disabled a custom module through the Admin section (Configuration > Advanced > Disable modules output). Even after I did re-indexing and ...
Kiran Tej's user avatar
10 votes
3 answers
4k views

How do I add Image field to my custom dynamic fields in system config?

I want to allow admin user to generate as much fields as he/she wants. I found a solution in another extension and I used it as my starting point. So I have a code like this: In system.xml: <...
Pedram Behroozi's user avatar
19 votes
2 answers
5k views

Magento 2: How to Check if a Module's Installed

In Magento 2, is it possible to check if a module's installed at runtime? In Magento 1 I'd either use the isModuleEnabled helper method, or manually fetch the global configuration tree and check the ...
Alana Storm's user avatar
  • 44.4k
0 votes
1 answer
42 views

Why my module is not working?Am i following the right way?

Ok so i got an answer to my question about AUTO turning on the Stock Availability status to 'In Stock' (from 'Out of Stock') after we increase quantity from 0. The answer was to try this module below,...
tallal hassan's user avatar
4 votes
1 answer
619 views

Best way to set up helper declarations using same tag in different modules

My application (CE Magento 1.9) has two extensions, a custom theme and checkout module, that is using the same xml tag which I believe is causing the following error when visiting the site: Fatal ...
Vee's user avatar
  • 219
16 votes
5 answers
8k views

what is the difference between disable module output and module active = true

In magento I come to knew that we can disabel our module by two ways By navigating in the Magento backend to System > Configuration > Advanced > Disable modules output we can easily disable certain ...
Charlie's user avatar
  • 3,136
5 votes
1 answer
963 views

Does a complete "config.xml" reference exist?

I am in the process of writing some in-house documentation that goes a bit beyond the "hello world" examples that populate the internet and would like to start a complete reference wiki on some of the ...
Luke A. Leber's user avatar
3 votes
1 answer
896 views

Where to store config passwords

I want to have a custom database connection with a module I am creating. I am following this tutorial which will work well: http://fishpig.co.uk/magento/tutorials/create-external-database-connection/...
Marty Wallace's user avatar
0 votes
1 answer
416 views

How to rewrite model in config.xml only for frontend?

without any problems I'm able to rewrite a model. But when it comes to rewrite a model that is used in backend/admin panel and I want that functionality also in the frontend but a little bit different ...
Timo.Klement's user avatar
0 votes
1 answer
694 views

Issue with Custom Select Options [Magento System Configurations]

I am working on an extension. On setting up the configuration options, I am getting error while trying to fetch options for my select variable. My System.xml <?xml version="1.0"?> <...
Anish Karim's user avatar