Questions tagged [layout]
Denotes the xml files used to define the block hierarchy which eventually renders the template files.
2,842 questions
0
votes
1
answer
34
views
Customer account button appears on dashboard but not on order detail page in Magento 2
I'm implementing a cancellation button for EU regulation compliance (required from June 2026) in Magento 2.4.7. The button needs to be accessible from the customer account area.
Current situation:
The ...
3
votes
0
answers
64
views
I have setup payment method in to my custom order for Paypal Braintree Card Types not comming in Magento 2.4.8-p1
Hey I setup the payment method to my custom order form the Paypal Braintree Card Types option comming blank in Magento 2.4.8-p1 that working in magento 2.4.6
https://prnt.sc/6jzdSXH7qAN5
I call ...
0
votes
1
answer
64
views
Using ifconfig attribute to conditionally add elements in <head> in layout xml?
Similar to this question is there a way to use ifconfig to conditionally add script,meta, or css assets within the portion of a layout.xml file:
<?xml version="1.0"?>
<page xmlns:...
0
votes
1
answer
54
views
How to remove store.menu from navigation section?
I am trying to remove the store.menu block from navigation section, without removing the navigation completely. Removing the store.menu block using layout breaks the hamburger functionality. I want to ...
4
votes
1
answer
258
views
AbstractBlock::getParentBlock() returns false due to missing "head.additional" block
We are encountering an issue on our store where sometimes the \Magento\Framework\View\Element\AbstractBlock::getParentBlock() method returns false. We traced this back to the fact that the head....
0
votes
0
answers
43
views
Paginator doesn't work on catalogsearch/result page, site loads all the products; Retrieving SKU and rendering block on frontend
There is 3rd party module that has the class called ExactMatch.
public function getExactMatch()
{
$params = $this->request->getParams();
if (!empty($params['q']))
...
0
votes
1
answer
128
views
Issue with custom category attribute and category_form.xml layout. Data is not retrieved from database
Field that retrieves the data, but there is no label and the issue with width
<field name="custom_category_footer_description">
<argument name="data" xsi:type="...
0
votes
1
answer
73
views
How to use Magento as Event Management
I want to develop a website for the event management company and below are the key features I want to cover:-
Ability to create multiple Shows/Events.
Each Show/Event should have its unique URL.
Show/...
0
votes
1
answer
176
views
How to upgrade jQuery version from 1.12.4 to 3.7.1 in Magento 2.4?
We are using Magento 2.4.2-p2, and the current jQuery version is 1.12.4. We want to upgrade it to version 3.7.1.
Here’s what I’ve tried so far:
Options 1 - Added the following in default_head_blocks....
0
votes
1
answer
60
views
Magento 2.4.7 the additional column in ordered items table in admin not showing
Magento 2.4.7 the additional column in ordered items table in admin not showing
I have already tried the extend the sales_order_view.xml but still not working. Reference file path is
app/code/Vendor/...
0
votes
1
answer
68
views
How to add another progress step of CART before the Shipping progress bar in magento 2
Hi, In magento 2 how can we add another progress bar on checkout page. By default there are 2 "Shipping" , "Review & Payments". I want to add another which will be like "...
0
votes
2
answers
60
views
How to override form_account layout block in magento2 admin
How to override form_account layout block in magento2 admin. I wanted to add a custom fiield under email field in account information section.
1
vote
1
answer
430
views
magento 2.4.4 csp secure renderTag not working with generated content
I have a controller that inject a phtml via the
$this->_view->getLayout()->getBlock('block_name')->toHtml();
code. The problem is that the template for this block has an inline javascript. ...
0
votes
1
answer
50
views
Undo remove css done in a parent theme
I have one theme that is removing a specific css file that is not needed for it.
layout/default_head_blocks.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1
answer
69
views
How magento handle new request on "*/*/ "?
This my request
NewAction.php to handle the request
this is result of request
I don't have blog_post_new layout, How it will work ?