Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
3 answers
91 views

SOLVED - Magento Layout File Doesn't Work

I have created a module and when I put its block in magento catalog.xml it shows up. But when I place the code in my module's productcomments.xml layout file, it doesn't show anything. Can anyone help ...
bestwebdevs's user avatar
1 vote
2 answers
4k views

Magento 2 : Override layout.xml File Within Custom Module

Looking at the Magento 2 docs, you can override a base/core layout.xml file - http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-override.html Is it possible, to overide within ...
minlare's user avatar
  • 695
0 votes
2 answers
300 views

How to add a variable (coupon code number) to a Magento module with XML

I have done some custom work where I put a message on top of the cart and let people know they can get 20% discount when they add 1 more item to their cart. This is a coupon code, let's say number ...
Kim K.'s user avatar
  • 73
3 votes
2 answers
1k views

Magento 2.1.3 Module layout not being called

I'm trying to write a custom slideshow module for Magento 2. Everything almost works fine but when I try to load the block in home page, the module's layout file does not load, as the custom css is ...
David's user avatar
  • 392
0 votes
0 answers
215 views

How to load my product details page module for specific category in Magento 2

I have installed a custom module with the code of Finance calculator, going to display in product details/view page. Now, i want to display/load the plug-in in product details page for specific ...
Krishna ijjada's user avatar
0 votes
2 answers
313 views

Can't override only template on custom module (uppercase problem)

The problem is I have the vendor name capitalized, and then, don't know why the overrides don't work. Only when you want to change the template but still using default block. For example: Override ...
Marc Pont's user avatar
  • 1,453
3 votes
1 answer
887 views

Block not showing after layout update

Considering this layout update XML: <?xml version="1.0"?> <layout version="0.0.1"> <checkout_cart_index> <reference name="methods"> <block type="...
GigiSan's user avatar
  • 143
2 votes
1 answer
1k views

Naming convention of Layered Naviations layout file to override state.phtml Magento 2

How is this layout file named , i mean on what basis. (Since there is no controller and router xml) Magento\LayeredNavigation\view\frontend\layout\catalog_category_view_type_layered.xml If im ...
Sushivam's user avatar
  • 2,639
0 votes
0 answers
229 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/...
Rakshith S Kumar's user avatar
2 votes
1 answer
2k views

Magento 2: Use Custom Variable in Layout File

We can use Magento default variables in layout file using <item name="link" xsi:type="string">{{baseUrl}}</item> I would like to create one variable in Block File & Use it. Like ...
Jackson's user avatar
  • 9,969
4 votes
4 answers
2k views

Is it possible to disable module from theme.xml?

I have a frontend theme that is being loaded through an module, so that im not able to do any changes to it when it comes to enabling and disabling other modules as you usually do in different store ...
Stian Blåsberg's user avatar
1 vote
1 answer
1k views

Fatal error Call to a member function insert() on boolean:Magento

I am facing an error during the checkout process when I select a payment method and press the button continue to next step to place order its an error as follows: Fatal error Call to a member ...
Xabby's user avatar
  • 529
1 vote
1 answer
1k views

customer_account_create override not loading template

I created a module Pera_CustomerRegistration, i want to override /app/code/Pera/CustomerRegistration/view/frontend/template/form/register.phtml However, when i try to all i got is is an empty page ...
Radosav's user avatar
  • 403
3 votes
0 answers
624 views

Magento 2 - Display subcategories above product listing

I'm trying to display the first 8 subcategories above the product listing on a select few category pages. I know that I can easily do this using static blocks, but I'd rather use a custom template ...
Paul's user avatar
  • 1,501
0 votes
1 answer
999 views

Magento 2 - Extend layout of another module

I have developed a module vendor_module1 and I want to extend the layout of magento_customer module. Is there a way to do it in module? or only in theme? Is it a good practice to do so?
TFS's user avatar
  • 4,369
1 vote
1 answer
2k views

layout rendering issue

I'm getting following issue when I'm click associated products. main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_321f776dd692abd332ec2bb61e502b692 and handles default, ...
Sivakumar K's user avatar
  • 2,023
0 votes
1 answer
1k views

How to display some module (<block>) at a particular page (main)

Problem There is properly working custom module (as far as I'm concerned), that outputs map. I need to display it only at main page at the content container. Now it outputs at every page content ...
D.R.'s user avatar
  • 315
7 votes
5 answers
5k views

Magento 2: unable to override product/view/addtocart.phtml from my module

I am trying to customize the product/view/addtocart.phtml template in my extension. I was already able to customize other templates but for this one it just won't work. I found the template is ...
PVL's user avatar
  • 326
1 vote
3 answers
304 views

Can I dynamically change Layouts?

On the view.phtml is it possible to write php to change the layout depending on what item is displayed on that page? Using code similar to this: $this->loadLayout() ->...
CodingMageSheen's user avatar
1 vote
1 answer
3k views

magento 2 corresponding layout xml file

How to write the equivalent layout xml file in magento 2 <layout version="0.1.0"> <merchandisingpage_index_index translate="label"> <reference name="head"> <action ...
Sushivam's user avatar
  • 2,639
2 votes
3 answers
3k views

Create Custom layout module

Hi i just created custom module in magento and its frontend doesn't work. The config file : <?xml version="1.0"?> <config> <modules> <Shareino_Sync> <version&...
Saeed Darvish's user avatar
1 vote
2 answers
803 views

custom product type based on grouped product with associated tab

I want to create a custom product type similar to grouped product and I got help from here so I created a new module I already read this question however could not solve my problem.: here is what I ...
Nickool's user avatar
  • 1,069
1 vote
1 answer
1k views

can't add child block by reference in custom layout file (solved) [closed]

I'm trying to add new block to billing form in my custom layout file. I've debugged method getFileLayoutUpdatesXml from Mage_Core_Model_Layout_Update and i see that my file is loaded. I have the ...
Rudolf's user avatar
  • 241
0 votes
1 answer
1k views

Load phtml layout for custom module

As with many previous questions, I am unable to load my custom layout as a page. Sorry if I made some noob mistake, but as you may know, as the frustration grows, less accurate the code gets... So, ...
Maxinne's user avatar
  • 101
1 vote
0 answers
49 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 ...
deroccha's user avatar
  • 687
1 vote
1 answer
53 views

How to detect where in the layout files addItem was used?

I don't like the default Magento combine js / css feature. It just clumps up the entire page of js and css into one file on a per-page basis. This results in pages that have one additional css ...
Richard Parnaby-King's user avatar
0 votes
2 answers
3k views

Display Grid in Admin Module of Magento

I am learning Magento module development. I am trying to develop a custom module for Magento Admin panel. I would like to display grid. My codes are as follows Location : app/etc/modules ...
abu abu's user avatar
  • 754
5 votes
1 answer
14k views

Magento 2: Creating a custom layout

I'm having trouble creating a custom layout. I have successfully created a layout called home_page.xml which is a copy of the default 1column layout. I have selected this layout for my home page, ...
David's user avatar
  • 51
0 votes
1 answer
5k views

Magento 2 - What is the correct way to remove "Billing Agreements" tab from customer account? [duplicate]

What is the correct and the easiest way to remove the "Billing Agreements" tab from frontend ? The idea is just to hide the link so later if I need I could easily return it back. To do this in ...
Mark's user avatar
  • 1,003
2 votes
3 answers
3k 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 ...
caffeinehigh's user avatar
1 vote
1 answer
663 views

custom phtml added in layout not display

i wrote a custom module, which includes a phtml placed at \app\design\frontend\mytheme\default\template\checkout\cartrelated\cartrelated.phtml i added a line <block type="cartrelated/...
hkguile's user avatar
  • 2,221
2 votes
1 answer
1k views

Relationship Between Module Layout Handle XML files and Theme Update XML Files

What's the relationship between a module's layout handle XML file and a theme's layout handle XML file? Which files have priority? When does one file replace another file? When does one file merge ...
Alana Storm's user avatar
  • 44.4k
8 votes
1 answer
8k views

Add block to layout dynamically in event observer

I want to know how to use layout.xml with event observer. I want to show a message in footer when payment made successfully. I know I have to use the event ...
Rahul Chaurasia's user avatar
6 votes
2 answers
15k views

Magento 2 - Custom Page Layout

I wish to add a custom home page layout in Magento 2. In Magento 1, it's very simple, i create my module : <?xml version="1.0"?> <config> <modules> <Vendor_Custom>...
Eric Arbeloa's user avatar
2 votes
2 answers
1k views

layout.xml in custom module is not working

My config code <config> <modules> <Urban_Module> <version>1.0.0</version> </Urban_Module> </modules> <global> ...
Lakshin Karunaratne's user avatar
5 votes
1 answer
4k views

Magento 2 - editing module structure and functions

in Magento 1.x you could duplicate the extensions to app/design/frontend/themeName/default/template/or/layout and then modify it's layout or functionality via xml or phtml files. How do we duplicate ...
g5wx's user avatar
  • 681
16 votes
5 answers
14k views

Magento 2: How to set custom template for core block

I'm trying to override the register.phtml in my module, but it seems there are some config problem that make Magento unable to use my custom template to override the one in core module. I've checked ...
Ricky.C's user avatar
  • 2,182
1 vote
1 answer
4k views

where is declared layout xml file in module?

i am learning to create a module from here. http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-4.html And on in this article everything is fine even workin also but i want to know where ...
rahul chaurasia's user avatar
1 vote
1 answer
1k views

move custom module block under categories in left sidebar [closed]

I am using Magegiant Daily Deal module to display deals in the left sidebar of the category listing page. The daily deals block currently shows at the top of the left sidebar. I want to move it after ...
Amyth's user avatar
  • 147
2 votes
3 answers
4k views

Magento2 Stable Release - Render Layout not working in custom module

My module was working perfectly in Magento2 Beta version. In stable version, module is getting listed and custom module backend is working fine. However frontend pages of my module are not working. ...
Reena Parekh's user avatar
  • 1,947
2 votes
1 answer
549 views

Injecting javascript in specific page

I am trying to inject a javascript file in specific page in my admin form. Currently I am overriding a community extension and so far the backend part of the code works as expected. But so far my ...
user33388's user avatar
1 vote
1 answer
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/...
leu2tm's user avatar
  • 13
7 votes
1 answer
10k views

Magento 2 - Sample module displays blank page

I'm using Magento 2 version beta-1.0.0 and trying to create a simple new custom module. The custom module works but is showing a blank page on body content. The module done in below way. Folder ...
Oshan's user avatar
  • 1,952
1 vote
2 answers
4k views

Custom layout not loading for custom module

I have created a custom module. Below is my app/etc/modules/Php_CardReload.xml <?xml version="1.0"?> <config> <modules> <Php_CardReload> <version&...
Anto S's user avatar
  • 1,417
0 votes
1 answer
54 views

Organisation of module layout XML files

I'm new to the magento platform and I am trying my hand at writing my first magento module. I'm following the guide here: Custom Layouts and Templates with Magento I've created my module folders and ...
James Heath's user avatar
0 votes
1 answer
53 views

How to edit transactional e-mail (order_new) to add my module specific layout handle

I'd like to edit order_new.html template to include layout handle to my own module layout. I'm new to magento, so I'd be pleased to get accurate instructions which files I have to create/edit. In ...
misiu9091909's user avatar
0 votes
1 answer
607 views

Layout of module for Admin is not loaded

my config.xml is <?xml version="1.0"?> <config> <modules> <Octane_SMTP> <version>1.0.0</version> </Octane_SMTP> </...
jaidatt poonia's user avatar
0 votes
2 answers
738 views

Magento 1.9.1: Getting problem in work with layout in module development

I am not so familer with magento so i am trying to develop a simple module on magento 1.9.1 with help of this tutorial http://magentotutorial.net/magento-tutorial-how-to-create-a-simple-module/ but i ...
Dinesh's user avatar
  • 809
1 vote
1 answer
103 views

Multiple modules into single page [closed]

I want to have a page where different divs will have the content of different modules. Currently modules are navigated to by a left menu, which will be removed. These are the menu items: /customer/...
Zed_Blade's user avatar
  • 255
2 votes
1 answer
106 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"/> <...
seb's user avatar
  • 3,572