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
0answers
11 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
32 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
23 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
8 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
13 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
7 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
18 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
9 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
30 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
20 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
21 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
9 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
16 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
10 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
15 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
29 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
33 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
14 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
65 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
6 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
34 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
22 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
75 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 ...
0
votes
1answer
32 views

Magento 2: How to add a new phtml(template) to a layout file so I can use it in the head section?

I am trying to add a phtml template file to the layout file so that I can use this template in the head section to insert contents from an JS file. Please tell me what is the best way to do this?
0
votes
1answer
59 views

Magento 2: Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Perfectmirrors\PmmLayout\Block\Head

I am really not sure how to create the block class Pmm\PmmLayout\Block\Head , function of which $block->getAllPagesJSContent() should be called inside my phtml file pmm_head.phtml <...
0
votes
2answers
35 views

Add block below short description on product page

I am developing a module and would like to put a block on the product page, immediately underneath the short description and above the dropdown selection. I have looked at every single answered ...
0
votes
1answer
27 views

Magento 2 - custom layout extending 2columns-left not working

I know there are 2 or 3 similar questions but there's no response for them. I'm creating a custom layout based on the 2columns-left layout. I have investigated from everywhere on the internet and the ...
0
votes
0answers
7 views

How to use SRC_TYPE_CONTROLLER available as a src_type in assets in Head.php?

Does any one have used the src_type="controller" as we do the same for src_type="url" in frontend *.xml files? Looking into the below file but nothing found relatively. <magento-root>/vendor/...
0
votes
1answer
20 views

container after instruction doesn't work for some elements

I have created a custom theme from scratch, everything works perfectly except one thing, in my home page Vendor/Theme/Magento_Theme/layout/default.xml I can't place my 'main' container after my '...
0
votes
0answers
21 views

Blocks changing order on mobile

I created 2 blocks using the magento UI block creator. I then went to the pages area and used the "add block" function to add the blocks to the page. In Desktop, they show up the way that I added ...
0
votes
2answers
36 views

Magento 2.3 - adding block to layout

I created default.xml for my module. I want to inject block into header. I tried different ways like: <referenceContainer name="header.container" before="-"> <block class="Vendor\Name\...
0
votes
1answer
29 views

The correct way of layout declaration?

I'm doing some Magento 2 certification test questions. There's one question I do not understand. The question is as the screenshot. My answer is D, but the correct answer from the test is B I've ...
0
votes
0answers
13 views

When i tried to show extra coulum in order line item the shipping & handling infromation hidded magento 2.3

I had used the way to add the column https://magento.stackexchange.com/a/311150/86254. Only overwrite the sales_order_view.xml inside the Magento_Sales /var/www/html/development/amt/app/design/...
0
votes
1answer
37 views

How to change the product detail page to a 2 column layout in Magento 2.3?

I have created a layout XML file for a custom theme which inherits from the default Magento Blank theme: app/design/frontend/<Vendor>/<Theme>/Magento_Catalog/layout/catalog_product_view....
0
votes
0answers
5 views

Add Custome JS in catalog_product_view.xml on the basis of product attribute value in ifconfig Magento 2.3.4

I would like to add a js at the end of the body tag on the product view page. I did the same using catalog_product_view.xml using the code. <referenceContainer name="before.body.end"> ...
0
votes
1answer
70 views

Magento 2.3.4 - How to add css for a specific group of cms pages

I am going through hard times. After the latest updates, there is no more the Layout Update XML field in the admin panel (Magento 2.3.4). I needed to create a custom layout for some types of cms pages,...
0
votes
1answer
98 views

2.3.4: Update “Custom Layout Update” in Category doesn't work

I added the file :- app/design/frontend/VENDOR/THEME/Magento_Catalog/layout/catalog_category_view_selectable_[ID]_name.xml Edited the category in the backend to use the Specific Layout (Catalog->...
0
votes
1answer
22 views

How to remove the attribute element in the layout in magento 2

I wish to remove the attribute element in the catalog_product_view.xml file I have tried below <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
49 views

I can not add a custom attribute to the product page

I use Magento 2.3.4 EE and when I try to add a custom attribute to the product page - I can’t do it. Mi file: app/design/vendor/theme/Magento_Catalog/layout/catalog_product_view.xml My code: &...
0
votes
2answers
33 views

Error getting Block in controller Magento 2: Element 'block', attribute 'class': [facet 'pattern']

I'm trying to get block in my frontend controller like this: $resultPage = $this->resultPageFactory->create(); $breadcrumbs = $resultPage->getLayout()->getBlock('breadcrumbs'); this is ...
0
votes
0answers
25 views

Magento 1.9 Product layout -product info problem

I'm trying to implement some module and use their simulator. I installed the module, but I don't get their simulator at the product page in the product info tab. Here is how the controller of the ...
0
votes
0answers
15 views

Magento2.3 : Layered navigation still appear even Anchor =“No”

I want 1column design (No left bar) for the specific category in which I chose Display Mode = "static block only" Also set Achor ="No" 1column layout is applied But "shop by" still appear on ...

1
2 3 4 5
54