All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
26 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 ...
1
vote
1answer
33 views

Module layout file not being used

I have a simple module Alpine_AlpineCustom but it seems that my layout.xml file is not being applied properly and I just can't see why. I can see via Commercebug that the layout file ...
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 ...
3
votes
0answers
26 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 ...
0
votes
1answer
87 views

How can i add block to existing layout in catalog_category_view.xml?

I want change layout of catalaog_category_view.xml but i can't. I override block category.products and it's work but how can i add my own block to existing category.products block? Because i want add ...
0
votes
1answer
361 views

Magento 2: Header and footer not loading in custom module's CMS layout

I am developing a custom theme which inherits from Magento/blank. I am attempting to develop a CMS homepage layout within a custom module. I have created the module and successfully applied the ...
7
votes
1answer
180 views

Layout Not getting Called In Custom Module

I have developed a custom plugin that used to add a custom made shipping method. For that custom made shipping method I had override the existing templates. It was working fine but changing the server ...
0
votes
0answers
388 views

Magento 2.3 - Extend layout to add new custom block after existing block from another module

What I hope to accomplish is adding a new option to an existing menu of options in category edit page, specifically adding a new option below the "Match products by rule" switch toggle. This menu is ...
1
vote
1answer
977 views

Magento 2.2.6 - Change the product name title

how I can change products name attribute. I create a new attribute second_name and I assigned to all products, now I want this attribute to replace the default name attribute. I need to change this on ...
0
votes
2answers
509 views

Magento 2 Sequence - Multiple Modules Overriding Same Template

I am using Magento Commerce 2.2.6 running in developer mode. I have multiple modules that are overriding the same template via the setTemplate action in layout xml. I am using sequence in the ...
0
votes
0answers
191 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, ...
2
votes
1answer
239 views

White blank screen in custom module production mode magento 2

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 ...
0
votes
1answer
498 views

Magento 2 - Disable some modules per store view

I have setup two stores in Magento 2.2.6, each store have their own theme and url address. In one store I have Porto theme installed in the second store I have other theme. How I can disable for ...
0
votes
1answer
318 views

Magento 2.2: How can I override “checkout.item.price.unit” and “checkout.item.price.row” in the cart?

My goal is to switch out the .phtml files: magento_module-wee::item/price/unit.phtml as well as magento_module-wee::item/price/row.phtml with my own custom ones and change how the prices are displayed ...
0
votes
2answers
137 views

Blank Page with Front End Template in Controller

I have a controller that needs to display text, but I get a blank page. Here is what I have: Controller/Index/Index.php namespace Veratad\AgeVerification\Controller\Index; use Magento\...
1
vote
2answers
669 views

Changing the background colour of Magento 2 based on Luma

I want to change the background colour of my magento 2 default page but it doesn't seem to be working. My code is: Pulsestorm/StartinWithLess/etc - module.xml <?xml version="1.0"?> <...
0
votes
2answers
80 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
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 ...
1
vote
1answer
33 views

Adding a preview product section on the product page

I am fairly new to the Magento platform so excuse my lack of knowledge! I'm working on a Magento 2 project. I need to add a preview section for my products. Ideally, it would be between the product-...
2
votes
3answers
539 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 ...
0
votes
0answers
56 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 ...
1
vote
1answer
282 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 ...
1
vote
0answers
51 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 ...
0
votes
1answer
533 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
2answers
52 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
65 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
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 ...
1
vote
1answer
257 views

magento 2.1 custom theme header minicart layout overriding not working

I am building a new theme in magento 2.1. I need to override the default header minicart of magento 2.1. For that I had copied vendor\magento\module-checkout\view\frontend\web\template\minicart\...
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/...
1
vote
1answer
92 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 ...
0
votes
1answer
42 views

How to Create a module with template file of only block?

I am creating a module for Widget like - Top 5 Products, Product of the Day, Best rated product, Random 5 product, latest product and this will be placed on external website via/in iframe, I don't ...
0
votes
1answer
619 views

Custom Module layout xml not working?

I've created a custom module that holds a simple phtml file, block class to include elements into the phtml file and a default.xml within my Module/view/frontend/layout. However I am struggling to ...
0
votes
1answer
243 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 ...
1
vote
2answers
306 views

How to use XML with condition in Magento 1?

This is my XML from layout: <customer_account_index> <reference name="content"> <block type="name_module/customer_account_welcome" name="customer_account_dashboard" before="...
0
votes
1answer
332 views

Give Logout url after changing name from Login to Logout

Once we click on "Login" button present in pop up, we want to change text "Login" to "Logout" present on top menu. So i tried as CodePen , now i can able to change text from "Login" to "Logout" , ...
2
votes
2answers
8k views

Magento2: Add a new page layout

On the page layouts 1 column, 2 columns, 3 columns, there is always a div called "columns" in it. I would like to create a page layout, where that div does not exist. How can I do that? Where is that ...
1
vote
1answer
151 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> ...
0
votes
1answer
454 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
1answer
65 views

Magento 1.9 Action Handle not Identified

I'm facing a problem developing Magento 1.9 custom module. Magento somehow doesn't recognize the action handle in my module's layout XML file. Below is simplified code that reproduces the problem for ...
0
votes
1answer
776 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> <...
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 ...
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
2answers
168 views

How to add a variable (coupon code number) to a Magento module with XML

I have done some custom work where I put a message on top of the cart and let people know they can get 20% discount when they add 1 more item to their cart. This is a coupon code, let's say number ...
3
votes
2answers
931 views

Magento 2.1.3 Module layout not being called

I'm trying to write a custom slideshow module for Magento 2. Everything almost works fine but when I try to load the block in home page, the module's layout file does not load, as the custom css is ...
0
votes
0answers
146 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
2answers
262 views

Can't override only template on custom module (uppercase problem)

The problem is I have the vendor name capitalized, and then, don't know why the overrides don't work. Only when you want to change the template but still using default block. For example: Override ...
2
votes
1answer
724 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
528 views

Naming convention of Layered Naviations layout file to override state.phtml Magento 2

How is this layout file named , i mean on what basis. (Since there is no controller and router xml) Magento\LayeredNavigation\view\frontend\layout\catalog_category_view_type_layered.xml If im ...
0
votes
0answers
194 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/...