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
0answers
10 views

layout sales_order_create_index.xml explain code please

vendor/magento/module-sales/view/adminhtml/layout/sales_order_create_index.xml There are two blocks name="coupons" and name="order_create_coupons_form" with classes Magento\Sales\...
0
votes
0answers
11 views

Magento 2.3: Override Magento_Sales invoice template phtml for use with Eadesigndev_Pdfgenerator

I am using the Eadesigndev_Pdfgenerator module like other people I've seen asking similar questions but none of the answers help. I have been trying to get this fixed for about 3 weeks and I'm getting ...
2
votes
2answers
40 views

How to add JS code in the head tag for only in the success page in Magento 2?

I need to add a JS script on the head tag, but only in the Success page. Inside Magento 2, I have no idea how doing this. Someone can help me? :)
0
votes
0answers
11 views

load product page in custom module

I'm trying to load the product page in my custom module to render the product in a custom category page without reloading the page (when you click on a product in my category you display the product ...
0
votes
1answer
15 views

Product page modification for specific products

I would like to make some product modifcations; change qty position to move in the top, add total price (qte* unit_price) in /vendor/magento/module-catalog/view/base/templates/product/price/amount/...
0
votes
0answers
20 views

Magento 2 layout and template overload in child theme not working

Good Afternoon All, I am having trouble with overloading a template for Magento 2 "module-catalog" module. My overload in the child theme would be the 4th overload in the chain and it is not ...
0
votes
0answers
14 views

magento-2.3.5 header logo homepage link

I stuck trying to set homepage link to logo in app/design/frontend/Mgs/claue/Magento_theme/templates/html/header.phtml <?php $logo = $block->getChildHtml('logo'); //Logo ?> ... &...
0
votes
1answer
16 views

If $resultPage->addHandle() is used in a controller for a vendor module, can't get my module to modify that layout xml

I need to modify the layout xml for another module from my Magento 2 module. In this module they use in the controller execute() method a way to add their layout xml: $resultPage->addHandle('...
0
votes
0answers
14 views

Workaround to change template file for specific category

I'm trying to set a custom template file for block category.products.list for just a few marked categories. Sounds simple enough, but it turns out it isn't, mostly because of some bugs in the version ...
0
votes
1answer
23 views

Magento 2- How remove js files

I am trying to remove some js files from Magento 2 upload in the frontend. This is my code but it doesn't work because when reload category page and i open sources->coverage of chrome i see ever ...
0
votes
0answers
17 views

Call to a member function getLoadedProductCollection() on boolean Search Query issue

im trying to separate the search query text from result.phtml and place it in its own template. So basically ill have the product collection in results.phtml, and then the search query text "your ...
-1
votes
0answers
25 views

Magento 2.3 : Extend custom module template via another custom module which load after first custom module

A very simple thing not working for me. I have custom module having following layout file named customer_account.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout=&...
0
votes
1answer
17 views

Add footer link without domain from xml layout

I'm trying to add a tel: href to a footer with the next code: <block class="Magento\Framework\View\Element\Html\Link" name="telefon"> <...
0
votes
1answer
41 views

Magento 2 - How to use XML uiComponent instead of text/x-magento-init?

I found an easy hello world example from Max Pronko which uses text/x-magento-init to define a uiComponent. MODULE/view/frontend/templates/script.phtml <div data-bind="scope: 'pronko-component'...
0
votes
2answers
23 views

Unable to locate block in the layout files

I need to change some layouts on the product detail page. So I tried to locate some blocks in the layout files. Using the template path hints fo example I know about a block with the template catalog/...
2
votes
1answer
42 views

Add arguments to block via layout update

In the catalog_product_view.xml ofthe Magento_Catalog module there's this block <block class="Magento\Catalog\Pricing\Render" name="product.price.final"> <arguments>...
0
votes
0answers
24 views

Magento 2.4 How created dynamic custom category layout?

How i can create dynamic custom layout for each Category and Category page? I can used catalog_category_view_id_{{id}}.xml and created custom layout for current Category{{id}} like this: http://...
0
votes
0answers
25 views

Cannot move the search bar after the logo

I want to move the search bar right after the logo and sign-in, and sign-up link next to search bar. I have used the below instruction in my theme xml file but its not working. <move element="...
0
votes
1answer
11 views

Wishlist Configure Grouped Product

So I have a grouped product available on my site everything is working fine but when I add a grouped product in my wishlist and edit it. My changes in catalog_product_view_type_grouped are not ...
3
votes
1answer
34 views

how to show product SKU below product name only on product page

I am using porto theme in magento 1.9. i want to display product SKU only on product page below product name. how can we add product SKU on product page.
0
votes
0answers
30 views

How to change HTML of Categoty Page in Magento 2?

how can i change the layout of Category page in Magento 2 Like to change some HTML in category page. i want to show product in full width and want to show price filter just above of product listing ...
0
votes
1answer
31 views

Magento 2 - Add button to the Header links

I am trying to add a button called "social media" to be beside the Storeview switcher. I tried to follow the answer in: Magento 2 - Add a Custom Button to header.phtml So I created a CMS ...
0
votes
0answers
8 views

How to create a new admin layout page in Magento 2?

I'm attempting to create a new admin page layout for Magento 2. The default ones are: admin-empty admin-1coumn admin-2columns-left I would like to create a module that extends the default layout ...
0
votes
0answers
8 views

Move block after price using layout xml in M1.9

We've got a module that prints a message with estimated delivery. This module has an xml layout file with this code <reference name="product.info.simple"> <action method="...
0
votes
0answers
19 views

How to change Category page layout in Magento 2?

I am using Porto theme in Magento 2 ? I want to change the layout of category page like : I want to show price filter from sidebar to top just below the menu and make listing to full width ? How would ...
0
votes
2answers
25 views

Magento 2: How to add custom block after the add to cart [Custom Theme]

I want to add a block after add to cart but this code doesn´t work: app/design/frontend/Mgs/claue/Magento_Catalog/layout/catalog_product_view.xml <block class="Magento\Catalog\Block\...
2
votes
0answers
31 views

Magento 2.3.4 new layout update doesnt work

I have an issue with the new Magento layout update xml feature. I added a custom layout update file to change a category. It shows up in the Magento backend, but when I select it, nothing changes on ...
0
votes
0answers
11 views

Container not showing up in widget layout options

I am using the Aheadworks Blog layout and added my own container to it but somehow it doesn't show up in the widget layout options. I have tried adding it in the Magento_Theme layout/default.xml and ...
0
votes
1answer
16 views

Block in reference root not loaded but loaded in reference header

Magento CE 1.9.4.5 I created a module and successfully had it loaded. The xml is below: <?xml version="1.0" encoding="UTF-8"?> <layout> <default> <...
0
votes
1answer
29 views

Magento 2 : How to move a block next to size attribute label on product page. [Size Chart]

I want to move a block next to size attribute label: How can I do this? Thank you very much!!
0
votes
1answer
15 views

Position a block at the top of <head>

I'm using the following to add tags to my : <referenceBlock name="head.additional"> <block class="Magento\Framework\View\Element\Template" name="head.font&...
0
votes
1answer
36 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
15 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
24 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
0answers
18 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
108 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
76 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
13 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
21 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
82 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
33 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
12 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
16 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
59 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
42 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
95 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
22 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
15 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
34 views

Move custom product in More Information Tab

I want to move product attributes inside the more Information tab. Can someone help?

1
2 3 4 5
55