All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
2answers
78 views

Magento Override frontend template in custom module file

I want to override the contact page frontend from my module file. To override the frontend template of contact form, i have created module and in that module i have created layout file mymodule.xml ...
2
votes
3answers
493 views

Magento2 - missing adminhtml custom block after upgrade to 2.2

We had a custom block injected in the adminhtml section. This block is managed in a module (let's call it Vendor/Module) & it was working fine in Magento 2.1.*, following this methodology magento ...
1
vote
1answer
277 views

Layout gets loaded but template is not rendered

I'm trying to add a custom block for my module into the head block. I would like this block to be added on every page. Now, my problem is that the block is not rendered at all except if I add the ...
0
votes
2answers
50 views

Why doesn't custom block appear on product page

Good afternoon, I'm suspecting this is an easy oversight.. I've been working today on putting a custom block onto a product page. But, nothing from my template is showing up. Take a look at my code ...
1
vote
3answers
64 views

Block over-riding not working magento 2

I have been trying to over-ride my customer module in magento 2. I need to Add an icon to 'Sign In' on header link. I have copied vendor/magento/module-customer/Block/Account/AuthorizationLink.php ...
0
votes
3answers
81 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 ...
2
votes
1answer
695 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="...
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 ...
1
vote
1answer
1k 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, ...
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 ...
0
votes
0answers
2k 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 ...
2
votes
2answers
884 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> ...
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. ...
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 ...
2
votes
2answers
933 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
819 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 ...
3
votes
1answer
2k views

custom module layout not working

I've been fighting a while with a problem, but I can't find a solution. Here is the thing: Got a module that I need to show in the sidebar of catalog product view so this is my module.xml in default/...
0
votes
1answer
1k views

can't override checkout/total/default.phtml

If I copy the file default.phtml from design/frontend/base/default/template/checkout/total/ to my theme folder (design/frontend/my_package/my_theme/template/checkout/total/default.phtml) everything is ...
1
vote
3answers
4k views

pass data from module controller to layout

i make a simple module and i want to get all products of category and pass these products to my layout file. as well as i want to get products of a specific category and display these to my layout or ...
1
vote
3answers
12k views

Magento custom block shows Fatal error: Call to a member function setTemplate() on a non-object

I have created one block inside my custom module but it's not working. My module is working fine but my block is not working when I call my block from footer.phtml file it shows 'Fatal error: Call to ...