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

Magento 2 : How to set different list.phtml for each category

I want to do like this list.phtml should be different different call in category page. I created custom category layout and assign phtml file for that. But, layered navigation at bottom after product ...
0
votes
1answer
18 views

Override Custom Theme Layout File with one in Module?

I have a custom layout file mytheme/default/magento_theme/layout/custom_cms_name.xml I need to override with a theme file from my custom module: /companyname/modulename/frontend/layout/ I tested and &...
0
votes
1answer
48 views

How to override steps-wizard template file in magento 2.3?

How to override the steps-wizard template file in Magento 2.3? I need to override Magento_ConfigurableProduct::catalog/product/edit/attribute/steps/select_attributes.phtml. above file define in vendor/...
0
votes
1answer
30 views

How to remove compare product icon from new products widget?

As the title asks, how do I remove the "add to compare" button from a "new products" widget? Currently this is what's I'm seeing ... but only within this widget: I've got the ...
1
vote
1answer
128 views

show child block under static block in home page in magento 2

I want to show color swatches of configurable product in home page But My all static blocks in cms page. Here is my static block {{block class="Smartwave\Filterproducts\Block\Home\LatestList&...
0
votes
3answers
117 views

Overriding “base” layout not working

I'm reading the documentation here. My goal is to remove the "Customize and Add to Cart" button, for a bundled product The path for the layout can be found here /vendor/magento/module-gift-...
0
votes
0answers
16 views

Magento 2 insert Checkout Item List Into another layout

I am trying to insert the Magento 2 checkout form into another layout. I tried a few things but I think this somehow needs to be expanded: my_index_index.xml <?xml version="1.0"?> <...
0
votes
1answer
74 views

Magento 2: Two plugins of LayoutProcessor

We have an extension that has a block class that implements the \Magento\Checkout\Block\Checkout\LayoutProcessorInterface I need to add a custom field in checkout so I created my own plugin of Magento\...
0
votes
1answer
345 views

Magento 2 - How to load css before style-m.css / style-l.css

I added bootstrap 4 to magento 2 by putting it in THEME\Magento_Theme\layout\default_head_block.xml. it works, but bootstrap 4 is overwriting magento code. So how can I load it before the styles-m and ...
0
votes
0answers
132 views

Magento 2 - Use multiple block classes in template

I try to show a block in the header which shows different content, depending on whether the user is logged in or not. If the user is logged in, then I show: If the user is NOT logged in, then I like ...
0
votes
0answers
16 views

empty an layout

Hi i have following layout: <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <update handle="empty" /> <...
0
votes
2answers
42 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 ...
0
votes
0answers
140 views

Magento2.3 - Change column layout order on mobile view

When I go to the Category back on Desktop view the using 3 column layout. I get sidebar-main, main-content, and sidebar-additional in that order across the screen. When I look at the site on a mobile ...
3
votes
1answer
47 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
1answer
139 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
42 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
18 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
13 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
43 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
276 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
37 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
34 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 ...
2
votes
0answers
30 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
24 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
15 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
253 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 ...
3
votes
2answers
280 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
23 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
33 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
33 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
43 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
2answers
56 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
16 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
17 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
60 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
14 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
45 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
55 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
103 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
26 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
41 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 ...
1
vote
3answers
230 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
89 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
1
vote
0answers
27 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'...
2
votes
2answers
120 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
23 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
47 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 ...
2
votes
1answer
494 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
1answer
128 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
290 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->...

1 2
3
4 5
56