All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
195 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/...
2
votes
1answer
1k 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 ...
4
votes
4answers
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 ...
1
vote
1answer
803 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 ...
1
vote
1answer
914 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 ...
3
votes
0answers
602 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 ...
0
votes
1answer
783 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?
1
vote
1answer
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, ...
0
votes
1answer
990 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 ...
6
votes
5answers
3k 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 ...
1
vote
2answers
119 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() ->...
1
vote
1answer
2k 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 ...
2
votes
3answers
2k 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&...
1
vote
2answers
549 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 ...
1
vote
1answer
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 ...
0
votes
1answer
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, ...
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 ...
1
vote
1answer
43 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 ...
0
votes
0answers
3k views

Magento 2 - Update Cart Block with Custom Discount Value

Magento 1.9 version - Controller file protected function myAjax() { $layout = $this->getLayout(); Mage::getSingleton('checkout/session')->setCartWasUpdated(true); $totalsBlock = $...
0
votes
2answers
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 ...
5
votes
1answer
12k 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, ...
0
votes
1answer
4k 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 ...
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 ...
1
vote
1answer
603 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/...
2
votes
1answer
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 ...
8
votes
1answer
7k 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 ...
5
votes
2answers
14k 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>...
2
votes
2answers
897 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> ...
5
votes
1answer
3k 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 ...
15
votes
5answers
12k 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 ...
1
vote
1answer
3k 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 ...
1
vote
1answer
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 ...
2
votes
3answers
3k 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. ...
2
votes
1answer
406 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 ...
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
1answer
9k 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 ...
1
vote
2answers
3k 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&...
0
votes
1answer
49 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 ...
0
votes
1answer
50 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 ...
3
votes
2answers
1k views

Magento module Invalid block type

I created a module where I try to create a new Magento Category Layer Filter. I'm working in the "code/local" area because I overrided some core files. Everything was ok until I tryed to add a new ...
0
votes
1answer
587 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> </...
0
votes
2answers
651 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 ...
1
vote
1answer
100 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/...
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
2answers
6k views

Magento custom module - cannot load layout file via XML

A very common issue, but can't get my head around this one. Just not able to load the custom layout I want to display under the Admin tab content of my custom module via XML layout file (something ...
1
vote
1answer
360 views

Product View gets broken

quick thing, to start, we have a module that is displayed in the sidebar and it gets the product id with the Mage::registry('current_product')->getId(); in the first time is rendering with no problem, ...
2
votes
2answers
937 views

Can I use an observer to insert my module block into product.info?

I want my custom block to be dependent on whether my module is enabled or not and I want do not want it to be dependent on a theme so using the following, for example, is out of the question: /catalog/...
2
votes
2answers
838 views

What is difference between files in Block and files in Layout folder?

I am a newbie in Magento and its very confusing. I read files for view come from Layout folder , then i read somewhere that view is managed by files in Block folder.What is true ? Its totally ...