Skip to main content

All Questions

Tagged with
25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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
2 votes
0 answers
423 views

How can I display a multilingual store from right to left for Arabic store view?

welcome everybody. I'm Mostafa from Egypt, new to Magento. I installed magento 2.4.5 in localhost, and used the default theme "Luma", and added the Arabic language pack for the system, and ...
Mostafa Sayed's user avatar
2 votes
1 answer
6k views

Magento 1.9 add layout and template to custom module in admin

When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab in the admin area but ...
Victorino's user avatar
  • 121
1 vote
1 answer
880 views

How to create a frontend custom page module with view template files in magento 2.3

I have doubt as how to create Frontend Module with View template files. I have created Module using this reference Magento Documentation "https://devdocs.magento.com/videos/fundamentals/create-a-new-...
hari's user avatar
  • 11
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
1 vote
3 answers
82 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 ...
hakkim's user avatar
  • 191
1 vote
1 answer
130 views

Conditionally load js based on cms static block type

What I want to achieve: I want a local js file included in the <head> only when a particular static block type is called. Example: When "gallery/view" block type is called like so, {{block ...
poor_documentation's user avatar
1 vote
1 answer
196 views

1.9.3.2 | Module layout won't update <default>

I'm calling in a layout update from a module, from the module's config.xml file: <?xml version="1.0" encoding="UTF-8"?> <config> ... <frontend> <layout> ...
CD001's user avatar
  • 111
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
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
1 answer
822 views

Magento 2 layout XML reference block added in CMS page

I have a CMS page, and in certain place it references a custom block from my module as such: {{block class="My\Notification\Block\NotificationForm" name="notification.form" ...
Jan Zikmund's user avatar
0 votes
0 answers
68 views

Extension Layout won't work when using a custom theme

I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page. My extension layout file isn't being executed - instead it just executes my custom ...
Peter Stuart's user avatar
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
0 answers
234 views

Fatal error: Uncaught Error: Call to a member function setPid() on boolean magento 2

I have created a custom module. In controller i am setting variable as $resultPage->getLayout()->getBlock('custom_block')->setPid($pId); In production mode I am getting above error, ...
Muhammad Ayaz's user avatar
0 votes
0 answers
92 views

Find referenceContainer in Magento 2.1 module

This is my first attempt to write a Module for Magento 2.1 I have read the documentation for referenceContainer that is not very helpful, I would like to know how can I access and apply my change in ...
riksof-zeeshan's user avatar
0 votes
1 answer
1k views

Product Listing Ui Component xml file not overriding in custom module

I need to override module-catalog\view\adminhtml\ui_component\product_listing.xml file in my custom module. I have copy the core magento file in my module at view\adminhtml\ui_component but its not ...
Pramod Kumar Sharma's user avatar
0 votes
1 answer
13 views

layout over riding in account page affecting category page

I am building a custom magento theme in magento 2.1. While developing I noticed that whatever change I am making to app/design/frontend/vendor/theme/Magento_Customer/layout/default.xml is affecting on ...
hakkim's user avatar
  • 191
0 votes
2 answers
54 views

How to add a custom link to header but not in the top links

In my custom module, I want to add a custom link in the header, but not within the top links. I can't edit the header.phtml. I prefer add link through layout http://i.prntscr.com/...
Jancy Abraham's user avatar
0 votes
1 answer
659 views

Load different template for module on homepage

I can't make my homepage to load a different template for my module. I created a theme based on Magento/blank and created a module that changes navigation menu to nice looking vertical mega-menu and ...
overjolted's user avatar
0 votes
1 answer
685 views

Magento2 hello world displaying blank screen

I am trying to create a simple hello world module, I am able to successfully create and install the module but for some reason, my screen is showing up blank. But if I echo something in controller it ...
3bu1's user avatar
  • 101
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
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