All Questions

Tagged with
27 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
27 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 ...
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 ...
2
votes
1answer
2k views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. 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 ...
2
votes
1answer
763 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="...
1
vote
0answers
59 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 ...
1
vote
3answers
66 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 ...
1
vote
1answer
94 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 ...
1
vote
1answer
160 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> ...
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
11 views

Magento2.3: How to show a module form for a specific category?

We have a module called AC Ton Calculator and the AC ton form is displaying on all the pages of site. We want to show that AC Ton form only on the AC category. How can I make that visible only at ...
0
votes
1answer
43 views

How to create a Block, Layout and Template for backend module in magento 2

I have doubt as how to create Backend Module using block,layout and templates. After creating the block,I have assigned the block in app_appdashboard_index.xml file and I called the block page ...
0
votes
1answer
62 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-...
0
votes
0answers
23 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 ...
0
votes
0answers
30 views

Magento2 custom layout unable to access custom module phtml file for products

For my Magento2 website I have created a custom module and layout for products. I have assigned that custom layout for that product from product edit design section. And from that layout, we are ...
0
votes
0answers
25 views

Block referencing not working with specific theme

I've been trying to add more blocks to my theme's existing header block but I just can't get it to work. Below is code from my layout file in a module that I have created. As you can see, it is very ...
0
votes
0answers
203 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, ...
0
votes
0answers
60 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 ...
0
votes
1answer
573 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 ...
0
votes
1answer
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 ...
0
votes
2answers
45 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/...
0
votes
1answer
260 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 ...
0
votes
1answer
469 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 ...
0
votes
2answers
3k 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 ...
0
votes
0answers
154 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 ...
0
votes
0answers
205 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/...
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 = $...