All Questions

Tagged with
Filter by
Sorted by
Tagged with
36
votes
6answers
41k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
14
votes
2answers
19k views

How to get data from config.xml of a module

In the module A I need to get some data from file config.xml of modules B and C. Are there any methods or classes dedicated for this? Especialy I need to get XML structure and values of node <...
12
votes
3answers
30k views

Magento new custom block module

I'm using Magento version 1.8.1.0. I'm trying to create a new custom block module, which I'll use for creating a new home page. Namespace: Crusader Module: CLHomePage Block Type: crusaderhome Class:...
8
votes
5answers
892 views

move module's external .js file code to template [phtml] file

We have a custom module with below code app/design/frontend/rwd/Theme1/layout/aitcg.xml <action method="addJs"><script>aitoc/aitcg/Aitcg/View/Abstract.js</script></action> ...
7
votes
4answers
2k views

Creating a custom module to send order details to external supplier API via XML or JSON

I'm trying to write a custom module for Magento that when certain items are ordered and payment has been made, posts to our clothing supplier's site with details of the ordered item, delivery address ...
6
votes
1answer
375 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 ...
5
votes
4answers
4k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
4
votes
2answers
468 views

how Magento validate XSD schema?

As we all know that Magento 2 uses XSD schema files to validate the contents of all module configuration files. But at that point, I have one question in my mind. How does Magento validate XSD ...
3
votes
1answer
4k views

Custom module role permission. How to add acl

I need to be able to control my custom module's role permission and I can see I have to add acl in my XML. I have tried to add it in config.xml and also made an adminhtml.xml in the same location. ...
3
votes
3answers
10k views

Admin layout file not loading in custom module

I'm trying to load in a block on one of my admin pages in a custom module, but it doesn't appear to be loading. At first I thought it was a handle issue, but I've found out that the handle is ...
3
votes
2answers
4k views

How to add files for custom module under system configuration? [duplicate]

I have my own module in System->Configuration and want to add js and css files for it. Now it is so: <layout version="0.1.0"> <default> <reference name="head"> ...
3
votes
1answer
38 views

magento 1.9 custom module fronted error 404

I have problem to acces the custom module frontend controller. I am following a basic tutorial to build a custom module. These are the files I've edited: /var/www/html/magento/app/etc/modules/...
2
votes
2answers
354 views

Magento core code - why module init files some in Mage_All and some not

Looking at the core code under app/etc/modules... Why does Magento use Mage_All for a large part of the modules and individual files for the others? I understand that Magento will ultimately merge ...
2
votes
1answer
2k views

custom config for module - not store config

If I want to add a custom configuration node in my modules config.xml, how would I go about this and how to retrieve the values? I do not want store configuration, just a node in my modules ...
2
votes
1answer
15 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 ...
2
votes
3answers
2k views

Change the title on Module-Newsletter

Ok, this sounds like it should be really simple but its driving me crazy. All I want to do is change the title above the Newsletter subscribe form in the footer of Magento 2. I have a child theme of ...
2
votes
1answer
96 views

Page Layout for Categories using XML

I want to have a specific layout for some of my category pages but instead of always using the XML Layout Update <reference name="right"> <remove name="left.reports.product.viewed"/> <...
2
votes
1answer
110 views

Email layout handle phtml doesn't update in magento 2

I am developing a little custom Magento 2 extension that sends emails to admins on certain events. In layout handle's phtml template file I originally made a spelling mistake, which when corrected ...
2
votes
0answers
179 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/...
2
votes
1answer
63 views

module.xml active attribute

Sometimes in module.xml the attribute active="true" is used but I could not find out what difference it makes to use it or not. <module name="xxxx" schema_version="0.0.1" active="true"/>
2
votes
3answers
83 views

Make custom theme in magento [duplicate]

I am designing a store and finding it hard to customize a theme. I have worked on html only but not on xml so please ignore my mistakes. Is it good to make your own-theme or should i stick with the ...
1
vote
1answer
435 views

how do i extend a magento class from core?

I know that it is not safe to modify the core, so i want to extend a class. My need is to add a new button. In the image below you can see where: So, I created a module for that. I think the idea is ...
1
vote
2answers
308 views

How to use XML with condition in Magento 1?

This is my XML from layout: <customer_account_index> <reference name="content"> <block type="name_module/customer_account_welcome" name="customer_account_dashboard" before="...
1
vote
1answer
197 views

Does Magento 2 have namespace length restriction?

Is there any restriction in Magento 2 with the length of the Vendor name for minimum of 3 ? I have a vendor say: AB_Test after upgrading the module, i get: Exception #0 (Magento\Framework\Exception\...
1
vote
1answer
2k views

Custom module Admin URL redirect to frontend 404-Notfound

I've got a block and I want to display something from my custom database backend but I get 404 error. Here is the code Config.xml <?xml version="1.0"?> <config> <modules> ...
1
vote
1answer
3k views

Adding custom block to catalog product view

I'm currently making my own module, but i'm having trouble with just displaying a block in the catalog product view. I've added this line to default/layout/catalog.xml <block type="catalog/...
1
vote
1answer
183 views

When, in a custom module, you add a subitem to the top menu in the back-end, is it possible to insert in image alongside the title?

I'm trying to add in an image next to a dropdown item, alongside the title. Is this possible? I've seen it being done with items in the sidebar under System > Configuration before, but never in the ...
1
vote
1answer
7k views

How to add items to admin menu?

Maybe its a simple question, but not for beginners :) . How can I add item to the admin menu? also with submenus in magento ? I created a module, which have the following structure the content of ...
1
vote
1answer
2k views

Export order info to .txt file once order is placed

I have researched and tried all possible ideas I could come up with but not having any luck with the below...what am I missing? The idea is to export a text file once an order has been placed on my ...
1
vote
1answer
32 views

Question about modules organization

I would like to know if it's mandatory to create a module whenever we need to add some functionality to Magento even for one block for example, and what is the best way to organize them locally ? The ...
1
vote
1answer
1k views

how do add new font in magento2 with custom module in frontend?

in magento2 we add new font in .xml file .I have idead create module manager fonts in admin magento2. so how to get all font name in core, and set new font in front-end? I don't know i can edit .xml ...
1
vote
1answer
101 views

Magento 2.1.7 custom module UpgradeSchema not adding column

I'm not able to add new column to existing table UpgradeSchema.php: namespace Company\Module\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\...
1
vote
0answers
46 views

custom XMl works well on dev machine but doesn't work properly on server

Having a strange issue on custom created modules layout xml in 2 different environments. On dev machine all created xmls are getting loaded and executed but when pushed code on server none of the ...
0
votes
1answer
99 views

Template file is not running In Magento?

Hello I am new to Magento & using Magento 2.1.7. I was learning to develop custom module. My module is working till the controller but it is not printing the data present in the template file ...
0
votes
1answer
465 views

Description of Magento2 different existing types of .xml files and parsing

I know now that xml files in M2 are being red/parsed by \Magento\Framework\Config\Reader\Filesystem.php PART 1 : Can someone explain briefly the different existing .xml types (by types i mean ...
0
votes
1answer
408 views

Custom Module depends on a specific version of another module?

Let's say I have 2 modules Foo_BarA and Foo_BarB. We could declare Foo_BarB's dependency on Foo_BarA in app/etc/modules/Foo_BarB.xml like this: <config> <modules> <Foo_BarB> ...
0
votes
2answers
881 views

Accessing IndexController problem?

hi this is my xml file from app/etc/modules/Attila2_ModulTest.xml : <config> <modules> <Attila2_ModulTest> <active>true</active> <...
0
votes
1answer
494 views

How to remove a config xml value?

I have a module which is modifying how bundled products are displayed for our store. As a part of this, we are removing the ability to display checkboxes. So, I want to change the backend so that it ...
0
votes
2answers
1k views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/...
0
votes
1answer
620 views

Custom Module layout xml not working?

I've created a custom module that holds a simple phtml file, block class to include elements into the phtml file and a default.xml within my Module/view/frontend/layout. However I am struggling to ...
0
votes
1answer
41 views

Why can't I call custom if-check on product view?

I've got a (custom) module which allows me to add YouTube video's to a product. I call that module in my local.xml like such: <block type="mymod_catalog/video" name="video" template="catalog/...
0
votes
1answer
782 views

Resolved - Custom Module Layout File Doesn't Work - Magento 1.9

For some reason the layout file of my module stopped working, please help! This is the module's layout file at ... \app\design\frontend\rwd\default\layout\productcomment.xml <layout> <...
0
votes
1answer
1k views

HTTP 500 Error in System Configuration

So I'm using a customer tracking extension and after adding the files to the server, I receive an HTTP Error 500 when trying to access the System Configuration page of my admin panel. I'm having ...
0
votes
3answers
5k views

Magento2: Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity

I added one custom HelloWorld module in a fresh Magento 2 installation and I got the following error: Warning: DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 8 ...
0
votes
1answer
524 views

Adding blocks in admin issue

I want to add tabs and fields. But somehow it does not display anything, just the header and footer of the magento admin. What should I do ? Thx This is the structure of my module : This is the ...
0
votes
1answer
1k views

AW Blog left block not showing [closed]

I installed this blog module: http://www.magentocommerce.com/magento-connect/blog-community-edition-by-aheadworks.html I tried several options on module configuration, but the left and right menu ...
0
votes
1answer
744 views

Magento 1.7.0.2 custom module

I'm trying to make a few amends to the core code, so I copied the relevant classes and placed them in the app/code/local/mage folder, which works a treat. However, as this is bad practice, I'm trying ...
0
votes
1answer
54 views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
0
votes
1answer
152 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
0
votes
1answer
115 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...