Skip to main content

Questions tagged [layout]

Denotes the xml files used to define the block hierarchy which eventually renders the template files.

Filter by
Sorted by
Tagged with
1 vote
1 answer
40 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 ?
ducanh's user avatar
  • 15
0 votes
0 answers
26 views

Magento 2: where to check layout block cache in core files?

I would like to know core file where it checks layout block cache or not and add block in layout cache? I found out following classes but I dont know from which file it checks the conditions for every ...
Niraj Patel's user avatar
0 votes
1 answer
17 views

How to change the magento2 layout to all options in the personal area?

is there a faster way to change the layout from 2columns-left to 3columns to all the personal area pages (account, wishlist, orders etc..) ? i just got done creating this file: app/design/frontend/...
media.queeries's user avatar
0 votes
2 answers
29 views

how to add sidebar.additional in search page?

I don't know how to add the sidebar.additional in the search page, can anyone help? here's what i tried so far in catalogsearch_result_index.xml : <?xml version="1.0"?> <!-- /** * ...
media.queeries's user avatar
1 vote
3 answers
67 views

How to remove parent theme handle from child theme programmatically?

Parent theme (theme design directory path) app/design/frontend/Jigar/basetheme/Magento_Customer/layout/customer_account_create.xml Here is the sample code : <?xml version="1.0"?> <!...
Jigar Karangiya's user avatar
0 votes
1 answer
29 views

how to change position to sorter.phtml block?

i'm trying to move this UI element vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/sorter.phtml from its original position to the right side of the screen inside another ...
media.queeries's user avatar
0 votes
0 answers
15 views

How to change website's header frontend layout?

we were just given a new UI for our website and we need to make some radical changes to our theme; one of them being changing the header's container from one colum-horizontal to 3 columns-vertical. We ...
media.queeries's user avatar
0 votes
0 answers
11 views

I have a website running on Magento where my account feature does not work on the mobile version of the website

I have a website running on Magento where my account feature does not work on the mobile version of the website. I want it to look like the second picture when I click on the account button. enter ...
Agent zebra's user avatar
0 votes
0 answers
50 views

Magento 2 - How to find layout path for a form input checkout_index_index.xml

I was wondering how I can find the full path to a component/form field on the checkout? For instance, let's say I wanted to add some custom validation to a new field I have added on the checkout (...
sulman's user avatar
  • 529
0 votes
2 answers
61 views

Place div next to or under in stock

How can I place a div between in stock and sku using xml for custom block. I can only seem to place it after sku. <body> <referenceBlock name="product.info.stock.sku"> ...
Shaun's user avatar
  • 109
1 vote
1 answer
95 views

How to remove block and block arguments in other XML layout magento 2

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...
Keval Chauhan's user avatar
1 vote
1 answer
80 views

Change Products per Page on Grid Default Value using custom layout xml - Magento 2.4

For some specific categories we would like to change the default value for Products per Page on Grid Default Value. By default it's set to 24. In our custom theme we create a custom page_layout with ...
JGeer's user avatar
  • 1,420
0 votes
0 answers
20 views

Arguments shared between multiple instances of same block

I have created a custom block and tried to insert it multiple times in the same page: <block class="MyCompany\MyModule\Block\Producttabs\CategoryProducts" name="category.products....
zekia's user avatar
  • 660
0 votes
2 answers
60 views

How can I make the button be black and white with round edges?

Banners have the correct button I want, black with white text and rounded edges The buttons added to the page have a burgundy boarder and blue text Can someone help as I cant find this anywhere in ...
user114366's user avatar
0 votes
0 answers
19 views

How to toggle custom tab visibility in product view with event observer based on custom attribute's value (custom layout handle)?

There is a custom tab "Ask Question" in a product that has a form (it has a logic for saving data to the database). My task is to create an event observer for the attribute that I have ...
Dramorian's user avatar
1 vote
1 answer
34 views

Adding CSS for specific CMS Page via Layout Update XML - Magento 2.4.x

I want to add the custom css for specific CMS Page, I know we can create a new theme for it but I want to use the Layout Update XML Or by adding it to empty page layout directly. Currently, if I add ...
Sheri's user avatar
  • 140
0 votes
1 answer
38 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,420
1 vote
1 answer
50 views

main.CRITICAL: Class block does not exist error in log files but extension works?

I have a working extension that show reviews, but sometimes there's an error in the system.log file, and I don't know why? var/log/system.log: [2023-10-26T11:20:42.925466+00:00] main.CRITICAL: Class &...
Aknot's user avatar
  • 288
0 votes
0 answers
28 views

Updating layout product page, by placing div's into a new div - Magento 2.4.6

On our productpage we would like to place the two default div's product.info.main and product.info.media into a new div. How can we achieve this by updating the catalog_product_view.xml? In this case ...
JGeer's user avatar
  • 1,420
0 votes
0 answers
27 views

Output XML attribute deprecated?

The "output" attribute has never been necessary for me to use, but I didn't understand it very well, there is not much information in the documentation. I saw that you can (supposedly) use ...
Juan Gaytan Sustaita's user avatar
0 votes
1 answer
95 views

Magento 2 How to override configurable.phml file in custom module

I have tried below way to override configurable.phtml file /app/code/Vendor/Extension/view/frontend/layout/catalog_product_view_type_configurable.xml https://i.imgur.com/gpII3Ct.png But it did not ...
Keval Chauhan's user avatar
0 votes
0 answers
34 views

Add Javascript to a Single Custom Admin Configuration Page in Magento 2.4 with XML

I am developing a custom module and need to load a javascript function on my "Custom" admin configuration page created with system.xml at url "admin/system_config/edit/section/<...
Fox's user avatar
  • 211
0 votes
0 answers
34 views

Magento 2 category shows all catalog products instead of its actual products after setting its layout to a custom layout

I have the following issue with a magento 2.4.3 category: Using the default theme (having the category's Design/[No layout updates] option selected), it properly shows its products and their number: ...
Robert's user avatar
  • 73
0 votes
2 answers
96 views

Override the canonical URL in custom layout handler

I'm attempting to override the canonical URL for a custom handler. I tried adding the following code via XML, but instead of overriding the default canonical URL, I now have both the default and the ...
Anass Hl's user avatar
0 votes
0 answers
53 views

Magento2: Translate META TAGS (Meta description) in layout XML files

We have created a custom page that is shown on some specific situations. We successfully modified the META tags inside section in various layout files. The question is: How can we make this text ...
TheAgent's user avatar
0 votes
0 answers
19 views

Third Party Module Layout Override - use custom module or within theme directory

When overriding a layout xml file from a third-party module, example being Amasty, is it best to include the new xml file within a custom module, within app/code, or within the theme directory, that ...
A. Andersen's user avatar
1 vote
5 answers
804 views

Magento 2.4.6 - No such entity with cartId - checkout_cart_index.xml

We face the issue that we sometimes get the error in the exception.log: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = #0 /vendor/magento/module-quote/...
JGeer's user avatar
  • 1,420
0 votes
2 answers
2k views

Add Custom Field for creating new order from admin in Magento 2.4

I want to add new field while we create new order from the Magento admin. So, any one has any reference for this ?
Mitul Vadalia's user avatar
0 votes
1 answer
44 views

How to override a node in an xml file of a ui_component

I have this xml file in some third party module having this content <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
Bob's user avatar
  • 11
0 votes
2 answers
166 views

Rename export csv file

Is there a way to rename the default export.csv filename to another filename? I'm using the magento 2 export in my listing.xml
jsnewbie21's user avatar
0 votes
0 answers
31 views

Override layout file in vendor directory of theme

I have created a theme in vendor directory. I want to override layout xml files in my theme directory. I have theme-frontend-themename. I have a folder in this directory named Magento_Theme. I want to ...
Mehreen's user avatar
  • 11
0 votes
1 answer
327 views

Is there any way to get system configuration value as true false in layout file(which is exists inside ui_component) array item in magento2?

I just wantend to get system configuration value inside the layout file which is exists in ui_component folder, in below code I just wantend to get system configuration value as true/false in the ...
Mark's user avatar
  • 63
0 votes
1 answer
62 views

Is there any way to get system configuration value in layout file which is exists inside ui_component

I just wanted to get system configuration value inside layout file which is exists inside ui_component, is there any way ?
Eion's user avatar
  • 13
1 vote
2 answers
406 views

Insert a custom block into the $block->getChildHtml('customer.form.register.extra') placeholder in register.phtml

I want to insert a custom block into the $block->getChildHtml('customer.form.register.extra') placeholder in the customer registration form - called in the Magento_Customer::form/register.phtml ...
David Lightman's user avatar
0 votes
1 answer
123 views

Different header/footer for guest users

I want to show different header and footer for the guest users and default one for the logged-in users. What is the right way to do so ? AND using the custom module to achieve this.
Cv Gandhi's user avatar
0 votes
1 answer
161 views

Ratio of images changed after update

After updating from Magento 2.3.5 to Magento 2.4.5-p1, I noticed that the aspect ratio of 1 image of 1 specific productpage has been changed. The rendered size, rendered aspect ratio, intrinsic size ...
JanosDjango's user avatar
0 votes
1 answer
58 views

Move multiple blocks in Magento 2 without xml

I need to move several elements of a layout without using layout.xml I have followed the bellow code to create an observer and it correctly moves a single element. When I try adding the other elements ...
nickcobb's user avatar
0 votes
3 answers
64 views

How to print custom attribute on Product listing page?

my catalog_category_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
Akhil's user avatar
  • 1
0 votes
1 answer
35 views

View invoice in backend breaks page (layout will not load)

The version of my magento2 is 2.3.5-p1. Here is the problem: We will open the invoice view in backend. So we go to: ->Sales->orders->select an order ->go to Invoices->view Does someone ...
Alex's user avatar
  • 3
1 vote
2 answers
102 views

How to double extend Magento_Checkout/js/view/summary/item/details in Magento 2

is it possible to extend a new checkout_index_index.xml on top of already existing one I created a projectA/app/design/frontend/MageBig/martfury/projecta/Magento_Checkout/layout/checkout_index_index....
Mohd Farhan Bin Ramli's user avatar
1 vote
1 answer
819 views

Exception: Namespace prefix xsi for type on argument is not defined in Merge.php / Extra content at the end of the document

We are using justbetter/magento2-sentry for catching errors in our Magento 2.4.5-1 shop and have lots of reports of such errors: Warning: simplexml_load_string(): namespace error : Namespace prefix ...
Alex's user avatar
  • 13.9k
-1 votes
1 answer
59 views

getting blank page after creating custom layout

I have created custom layout as below created 3-columns-double-footer.xml file inside Magento_Theme/page_layout folder <?xml version="1.0"?> <layout xmlns:xsi="http://www....
Hitesh Agrawal's user avatar
0 votes
1 answer
13 views

Page configuraion is not in its right place (page_layout/catalog_category_view.xml)?

This file (vendor/magento/module-page-builder/view/frontend/page_layout/catalog_category_view.xml) belongs to namespace xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/...
Dmitriy Morozov's user avatar
0 votes
1 answer
669 views

Save custom frontend form data to database magento 2.4.5

I have created custom form on frontend and now on submit click I want to save filled data to database. module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
Rakhi Prajapati's user avatar
0 votes
2 answers
151 views

Block that doesn't explicitly declare template?

I recently followed a tutorial to add a custom fee to the checkout summary of my Magento store and after getting everything working, I realized that the block I created didn't need to have an ...
A. Andersen's user avatar
0 votes
1 answer
437 views

Move sign In or Create Account links to new container next to cart icon in header

Does anyone know how to achieve below design. Create a new container next to cart icon in header move top bar sign in and create account links to new container. Please kindly refer the screenshot ...
Kyle Reeze's user avatar
0 votes
2 answers
112 views

Custom Header Link Layout Update

I have added the below code to app/design/frontend/Company/Theme/Magento_Theme/layout/default.xml but the link is not appearing in the header. Can someone please tell me what I am missing? <...
A. Andersen's user avatar
1 vote
1 answer
108 views

After changing to developer mode, I am facing the error Element 'remove': This element is not expected

After changing to developer mode, I am facing the error My site is working perfectly until I change it to developer mode Product page & News event page showing error. All other pages are working ...
Usman Ahmed's user avatar
1 vote
0 answers
136 views

magento 2.4.4.p2 cms page save Custom layout update is invalid

I am trying to save the existing cms page getting Custom layout update is invalid after upgrading 2.3 to 2.4.4 p2 getting this error. if I save a new page saving properly works fine I have checked the ...
Pawankumar's user avatar
0 votes
0 answers
124 views

Magento 2.4 how add tabs ui_component in module custom adminhtml

Good morning, could someone help me render some tabs in adminhtml with a custom module? I already managed to create the tabs, but the content is not displayed correctly, it is added in the same space ...
GStiven's user avatar
  • 41

1
2 3 4 5
54