Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
145 views

Block is not getting called in custom module - Magento 2.3

I created a custom module to list all categories in a custom page. But the associated block is not getting called in the layout file. I can see the controller function is getting executed and page ...
Sayanth's user avatar
0 votes
1 answer
409 views

I want to override customer-account-index.xml from magento-customer

If we want to override customer-account-index.xml from magento-customer. Where I should override? By making folder name as Magento_Customer in app\design\vendor\theme or app\code\vendor\module.. ...
Akash Killedar's user avatar
3 votes
0 answers
105 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
Daniel_12's user avatar
  • 680
1 vote
0 answers
77 views

Call a custom phtml file to particular section Magento ver 1.6 to 1.9

I created a custom module (For Magento ver 1.6 to ver 1.9 ) in which i show custom phtml file and insert custom js and css as well, I included it to two pages only with particular section i.e footer ...
inrsaurabh's user avatar
  • 1,676
0 votes
1 answer
1k 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> <...
bestwebdevs'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
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
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
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
1 vote
3 answers
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 ...
monojit banik's user avatar
3 votes
2 answers
2k views

Reference a block in static page

I have a static page in which I call a dynamic block: {{block type="custommodule/search" name="custommodule_search" template="custommodule/search.phtml" }} In the layout file of my custom module I'm ...
user avatar