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
2answers
16 views

Magento 2 How to remove footer by website Id?

Hi I am having multi website, I want to remove entire footer from website id 3. here is my xml file Ubertheme/shop/Magento_Theme/layout/default.xml here added the code. <referenceContainer name=&...
0
votes
0answers
26 views

Can't override template from own module

It seems to be impossible to override the template vendor\magento\module-checkout\view\frontend\templates\cart\item\renderer\actions\edit.phtml from your own module e.g. by using layout updates. (The ...
0
votes
1answer
15 views

How to reduce product description and short description input field height in the backend?

Im using magento 2.3.4 and when i want to add/edit new product by default the product description and short description height is set too much like this: how can i reduce this?
0
votes
1answer
13 views

difference of “name” and “as” attribute in layout files?

the docs read: NAME - Name that can be used to address the block to which this attribute is assigned. The name must be unique per generated page. If not specified, an automatic name will be assigned ...
0
votes
0answers
12 views

<container name=“root” label=“root”> render multiple times content upon clicking on search of grid

I have tab on customer admin, and my tab layout file conains, <container name="root"> <block name="some.anothername" template="Some_Module::random....
0
votes
1answer
31 views

Move custom product in More Information Tab

I want to move product attributes inside the more Information tab. Can someone help?
0
votes
1answer
12 views

Add Upsell Product On Checkout Cart Page -Magento 2.3

How to we can add upsell products on checkout cart page as crossell products in Magento 2.3.5 ? Thanks
0
votes
0answers
11 views

Magento 2.3.5 - Remove Page Title Suffix for homepage

We want to remove the page title suffix for the homepage in our Magento 2.3 store. Therefore I already created a Custom Layout Update in our theme folder with the following xml. But that does not seem ...
0
votes
1answer
16 views

Magento 2 - cannot insert block inside another block from the core

im trying to insert a custom block inside another block from the core. but for some reasons i cannot do it using referenceBlock. though its working if i use referenceContainer on the 'content', im ...
0
votes
0answers
16 views

Pagination is not working in Magento 2.3.5-p1

OS: CentOS Linux release 7.7.1908 (Core) Magento Version: 2.3.5-p1 MySQL Version: Percona Server (GPL), Release 10, Revision f446c04 PHP Version: 7.2.29 Hello All, We have recently migrated from ...
0
votes
0answers
10 views

can layout xml get custom attributes dropdown?

How can I get dropdown box Customer custom attributes that I created and implement to the layout xml file? so it will show the dropdown box on the frontend.
2
votes
0answers
10 views

Magento 2 - uiComponent doesnt paginate properly neither export

I am trying to make a grid on the admin panel with a custom collection (custom dataSource). The problem I am facing is that it doesnt paginate properly (all records are in one page but the pagination ...
1
vote
1answer
17 views

Empty layout tutorial

Can anybody point me to a nice Magento 2.3 tutorial on how to create an empty layout? The idea is to place my report on a template that doesn't include the header and footer the rest of the site uses, ...
1
vote
0answers
12 views

Move block after size atributte of product page [Magento 2]

I want to move a block and put it after size attribute because when I click this button magento detect that I add to cart: I use this to move after add to cart, but I don´t known to move to the other ...
1
vote
1answer
18 views

How to add checkbox-set ui-component to static form in layout.xml

I want to add a multi checkbox of days of the week to the checkout, similar to: Following the instructions on the Magento Docs - Add a new input form to checkout I have added the following item to my ...
1
vote
0answers
18 views

Pass data or arguments to ViewModel in layout

When we worked directly with blocks, it was easy to pass arguments to the block in layout (e.g. default.xml) like: <block template="..." class="..." name="..."> ...
1
vote
1answer
20 views

How do I put data into 3rd column?

I'm using the Fishpig plugin for Wordpress integration, and I have the layout set to 3columns-left. I have a sidebar on the left, and posts in middle, but I can't figure out how to put things on the ...
0
votes
1answer
22 views

Magento 2 - what is the purpose of “update” in a layout file?

I often see code like <update handle='xy' /> in layout files. vendor\magento\module-sales\view\frontend\layout\sales_email_order_items.xml <?xml version="1.0"?> <page xmlns:...
0
votes
2answers
25 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 ...
2
votes
0answers
18 views

How can I show related products in magento 1.9

I am using Magento 1.9 with porto theme. i want to show related product in product page . I searched a lot on google , stack platform & in magento community. i tried all possible ways to add ...
0
votes
0answers
35 views

How to add frontend header and navigation to custom layout

We have a Marketplace extension which has admin dashboard in marketplace layout no frontend now my client wants to add frontend header how can I do this directory for seller dashboard is Vendor\Module\...
0
votes
2answers
25 views

How to change Description tab title

Hope You All doing good. I am using magento 1.9 with Porto Theme . I want to change tile of 'Description ' to 'Details' in product page . Any one know how to do it ? how can i change description tabs ...
0
votes
0answers
9 views

Setting a default value to the Region field in the checkout

I've been using Magento_Checkout\layout\checkout_index_index.xml to set predefined values in some of the fields like this: <item name="company" xsi:type="array"> <item ...
0
votes
0answers
15 views

setTemplate doesn't override default layout

Default customer account page is using page/2columns-left.phtml and I want to override it using page/2columns-right.phtml. In my app/design/frontend/theme/custom/layout/local.xml, I added a new line: ...
0
votes
1answer
15 views

magento 2.3.4: I want to put brand attributes value after the short description

I tried different xml code but unable to achieve. I am getting attribute value using below code, but above the sku, I want to place it in the short description block after it's content. <...
0
votes
0answers
8 views

Product Page layout (Image Positions)

I am running Magento 1.9 using Porto Theme. I want to change product page layout as shown in fig. i want thumbnail images at left side with not over large image but seperately.If anyone know how to do ...
0
votes
2answers
33 views

how to add a line in between 2 block

HI I am trying to change the look of the customer login page. How do add a line or separator in between this 2 blocks? like the image I found on net. When in mobile view the line will gone.
0
votes
1answer
43 views

how to remove the customer login page text

how do I remove the text? or how should I overwrite existing xml file? Please help. I did try to override the file, but not work. Not sure I place the file into correct place or not. If I update XML, ...
0
votes
0answers
29 views

Magento 2 How to Move upsell block above the product details block?

I can't seem to figure this out, I want this upsell block to be right above the product tabs: <block class="Magento\Catalog\Block\Product\ProductList\Upsell" name="product.info....
1
vote
0answers
11 views

How to move the block under the sidebar in the payment step of checkout

I have a block that I display on the checkout at the bottom of the page <referenceContainer name="page.wrapper"> <block class="Magento\Framework\View\Element\Template" name="...
0
votes
1answer
34 views

How to change the layout for a particular category page

I know that for the category page or product view page, we can change the layout in catalog_product_view.xml or catalog_category_view.xml. But how do I change exactly for a single particular category ...
0
votes
3answers
26 views

How to add default head block in default.xml

I want to add default head block in default.xml file. so if anyone have idea about it then please send me the solution.
1
vote
1answer
26 views

How to add text at bottom of checkout in magento 2

How to add text at bottom of checkout in magento 2 after block .checkout-container or column main or maincontent
0
votes
0answers
13 views

Display my block after product grid in list.phtml

I am overwriting list.phtml via catalog_category_view.xml file now I want to move my custom block after grid, can anyone tell me how can I do it? <referenceBlock name="category.products.list" ...
0
votes
0answers
10 views

2 columns left layout not working anymore on CMS pages?

Magento 2.3.3 I had the 2 columns left layout working until I changed it to 1 column and then back to 2 columns left. Now the view changes after switching, but it is not 2 columns left. So I tried ...
1
vote
0answers
18 views

add custom banner on specific product view page

I tried to add a banner for a specific product but when I looked for the options, I can add in the content of the product, but I need the banner on the top of the specific product view page. Is there'...
0
votes
0answers
19 views

Create Module to display stock status on Product listing Page

I want to develop module which is able to display custom stock status on product list page when we can enable X-threshold option from admin side and that much quantity will be displayed with the ...
0
votes
0answers
11 views

move xml only for desktop view

I'm using a single theme for both the mobile view and desktop view. I have used so much move elements or the desktop view. It has affected for the mobile view also. I don't think that responsive.js ...
0
votes
0answers
16 views

Magento2 move a specific div id inside on the bottom of another div

I have a div with id homepagebanner I want to move this div to the top of the div with id maincontent I am not sure how to edit the default cml this would be for the homepage only . <page layout=...
2
votes
2answers
33 views

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, ...
0
votes
1answer
19 views

How to disable the authorization form on the checkout page using xml

How to disable the authorization form which is located on the checkout and appears if the user is not authorized. Need to disable completely or in the second step
0
votes
0answers
36 views

Magento 1 - Split Configurable product options list into 2 columns

I have a Configurable product... I would like to split the Configurable Options into 2 columns (using existing responsive markup). To make things more complex, I would like to apply the layout update ...
0
votes
0answers
7 views

A layout for Grid View and a layout for List View on Category pages

Is there a way to have a catalog_category_view.xml for a grid view and then another for the list view? Currently, I am using the phtml file to manipulate the columns however, I need a completely new ...
0
votes
0answers
18 views

How to bring Catalog page default sidebar to Product Detail Page

I'm using Codazon Fastest Theme (food-drink) variant. I have enabled layout="2columns-left" in /app/design/frontend/Codazon/fastest/food_drink/Magento_Catalog/layout/catalog_product_view.xml Now all ...
0
votes
0answers
9 views

Filter and Gallery/List View Toggle Hidden in background

So I added a new custom theme based off of luma and I just made two changes to the catalog_category_view.xml <referenceBlock name="catalog.leftnav" remove="true"/> and <page xmlns:xsi="...
2
votes
1answer
82 views

Cms page custom layout update file for multiple pages - Magento 2.3.4

In Magento 2.3.4 you can add custom layout update via XML files, using cms_page_view_selectable_<PAGEIDENTIFIER>_<CUSTOMNAME>.xml format. But what if I want to apply this layout update ...
0
votes
0answers
9 views

How to update addItemRender action through layout file for changing the template in Magento 1.9

I have this piece of code in my custom theme in layout file: <default> <reference name="header"> <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/...
0
votes
1answer
37 views

Move “Cross Selling” products inside the “Related Product” tab in Product Page

I modified the catalog_product_view.xml to created a "Related Product" tab, and show related product in the tab. Also, there is a cross sell section show under Every tab. How do I move the Cross-...
0
votes
1answer
29 views

How to change html output of method “getItemHtml” in custom theme

I'm overriding the file Magento_Checkout/templates/cart/form.phtml, I stumbled upon some php code generating html code which I can't find its origin Here is the code <?php foreach ($block->...
0
votes
1answer
80 views

How do I override block class for Sales Order Products grid?

I'm working on Magento 2.3.2 and am trying to override a block in adminhtml. I overrode the template file perfectly fine, but it seems layout updates are being ignored? This is the class that gets ...

1
2 3 4 5
55