All Questions

Tagged with
Filter by
Sorted by
Tagged with
2
votes
1answer
63 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 ...
0
votes
1answer
72 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
62 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&...
3
votes
1answer
30 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
0answers
153 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
62 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"/>
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/...
1
vote
1answer
96 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\...
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 ...
0
votes
1answer
96 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
596 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 ...
1
vote
2answers
283 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="...
0
votes
1answer
40 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
336 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" $...
0
votes
1answer
724 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> <...
8
votes
5answers
844 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> ...
1
vote
1answer
186 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
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 ...
4
votes
2answers
457 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 ...
5
votes
4answers
3k 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 ...
0
votes
0answers
187 views

layout xml does not load

I have a module with below details, for some reason layout xml files does not load. I can make this out, because the js and css mentioned in the layout files are not getting loaded. /var/www/html/...
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. ...
6
votes
1answer
337 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 ...
0
votes
1answer
95 views

What is Mgt_Base module?

I was hunting for the cause of some SimpleXMLElement errors in my log when I found out the culprit was some module in app/etc/modules called Mgt_Base. The errors showed up when I accessed the ...
0
votes
1answer
101 views

Loading Javascript file when module load

I am developing custom Module in Magento 1. Now I would like to load my module specific JS file when then module enabled. In this regard I used below xml code in a separate xml file named as module ...
0
votes
1answer
981 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 ...
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
114 views

Serving a different product page for certain products with router

I've developed a module that sends some product pages to a product customization wizard. I've used getProductUrl() to change the links to point to the customization URL. http://mywebsite.com/designer/...
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 ...
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 ...
0
votes
1answer
414 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
520 views

How to add js file to admin category edit via xml?

I have created a module and I am trying to include a custom js file into the category edit page. In my config.xml file I have: <config> ... <adminhtml> <layout> ...
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> ...
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
402 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> ...
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/...
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 ...
2
votes
1answer
95 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"/> <...
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 ...
1
vote
1answer
182 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
434 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 ...
0
votes
1answer
522 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 ...
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 ...
0
votes
2answers
871 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
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 ...
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:...
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 <...
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 ...
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 ...
0
votes
1answer
477 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 ...