Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

Change layout based on url parameter - Magento 2.4

We created a custom module, to load a observer before layout_load_before. And then we would like to change the custom layout, based on a url parameter ?content-only=yes. For some reason it does not ...
JGeer's user avatar
  • 1,422
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
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
1 answer
140 views

Can't add block below add to cart button

I am new to Magento and would like to add a custom block underneath the 'Add to Cart' button. Here is my catalog_product_view.xml file: <?xml version="1.0"?> <page xmlns:xsi="...
Peter Stuart's user avatar
0 votes
2 answers
234 views

Magento 2: Remove account element only for certain store views?

After much fighting with my layouts to add a link to my customer account page in a way that matches the design I finally succeeded in making the link show up and link to an actual page that also ...
joeybab3's user avatar
  • 378
0 votes
2 answers
174 views

Add code to <head> using a custom module & theme

I'm working on a custom theme for Magento. I'm trying to create a module for the theme that adds some code to the <head> but i'm finding it difficult to get it working. I've created my module ...
jd182's user avatar
  • 103
1 vote
2 answers
145 views

Magento 2.3 Frontend module page blank

I'm trying to create a simple frontend module on Magento 2.3.2, It seems to work, but I see a blank content on frontend. I have this folder structure -app -code -MyVendor -...
fmineo's user avatar
  • 219
0 votes
1 answer
3k 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 ...
hari's user avatar
  • 11
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
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
1 vote
1 answer
70 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 ...
iphigenie's user avatar
  • 1,769
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
0 votes
1 answer
1k 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 ...
Pepe44's user avatar
  • 43
0 votes
1 answer
2k 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 ...
Muckee's user avatar
  • 709
7 votes
1 answer
194 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 ...
umair.ashfr's user avatar
4 votes
1 answer
5k 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 ...
Robert's user avatar
  • 2,186
1 vote
2 answers
3k 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 ...
poor_documentation'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
2 votes
1 answer
732 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 ...
Muhammad Ayaz's user avatar
0 votes
2 answers
1k 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 ...
Robert's user avatar
  • 2,186
0 votes
1 answer
1k 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 ...
Tamashii's user avatar
0 votes
2 answers
378 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\...
Thomas C's user avatar
  • 113
1 vote
2 answers
2k 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"?> <...
Greg's user avatar
  • 399
0 votes
2 answers
99 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 ...
jack's user avatar
  • 920
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
139 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-...
Tim's user avatar
  • 63
2 votes
3 answers
1k 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 ...
Raul Sanchez's user avatar
  • 3,100
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
1 vote
1 answer
432 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 ...
Cyclonecode's user avatar
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

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
2 answers
64 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 ...
Nick P's user avatar
  • 27
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
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
1 vote
1 answer
320 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\...
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
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
0 votes
1 answer
45 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 ...
Arun Karnawat's user avatar
0 votes
1 answer
775 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 ...
lky's user avatar
  • 797
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
1 vote
2 answers
425 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="...
Attila Naghi's user avatar
  • 4,093
0 votes
1 answer
383 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" , ...
user avatar
3 votes
2 answers
15k 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 ...
N1njaWTF's user avatar
  • 461
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
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
1 answer
266 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 ...
Ejaz's user avatar
  • 105
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