We’re rewarding the question askers & reputations are being recalculated! Read more.

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
23 views

Move add to cart to below price (and above description) Magento 2.2.5

How can I move the add to cart button immediately below the price in Magento 2? I presume it's an XML update but I am unsure of the code required. I want to move it from under the description to ...
18
votes
3answers
20k views

Magento 2 remove “Estimate shipping costs and tax” from cart

I want to get rid of the "Estimate Shipping costs and Tax" block in the cart. The devdocs tell Disabling a component is the way to go, so I tried the following: <body> <referenceBlock ...
8
votes
2answers
5k views

How to add breadcrumbs on cart page in magento2?

I want to add breadcrumbs to the shopping cart page before the page title like this: How can I achieve this.? Thanks..!
0
votes
1answer
36 views

Magento 2 : Pass a variable to getChildBlock() in LayeredNavigation view.phtml

I have to pass a variable in layer/view.phtml /Magento_LayeredNavigation/templates/layer/view.phtml to its getChildBlock which is renderer/labels.phtml Amasty_Shopby/templates/layer/filter/...
0
votes
2answers
200 views

Possible way to fix luma Layout

Encounter this issue (Layout are wrong ).What is the possible issue for this? Tried dicompile, clear cache and reindex.Still not working exception.log main.CRITICAL: Path "/var/www/html/var/...
0
votes
0answers
18 views

Admin side when Create Credit memo give error like No such entity with cartId = xxx in magento 2

when I am creating a new credit memo error generate like No such entity with cartId = xxx .so why this error generate anyone has a solution then give me. also, remove generated and var/*. Thank You
0
votes
0answers
35 views

M2: Child theme checkout cart XML ignored

I've been banging my head off a brick wall on this so I'd like to double check if I'm going about this the wrong way. I have set up a child theme, and have applied that to a store - all of the child ...
0
votes
0answers
20 views

Magento 2 Return Controller data in the same page

I got help to accomplish send data from Controller to a Block, and then display the info from Block in a template. The thing is that I want to send a form and display the data from that form in the ...
0
votes
3answers
525 views

Magento2 product review captcha

I want to rewrite Magento-review layout catalog_product_view.xml to show Recaptcha on a product review. How can I achieve this?
0
votes
0answers
12 views

My product page layout configuration not responding to any changes?

** I got changes in my product page layout and I want to restore it back to the default of my theme layout .. and the product configuration does not take any effect in changes of the col in the ...
2
votes
1answer
174 views

Could using local.xml lead to another outcome than using one of the default layout .xml files?

EDIT: I decided to rephrase my original question, trying to make it a more general question. I'm trying two options to achieve the same result, but they turn out differently... I'm working in Magento'...
2
votes
1answer
711 views

Block not showing after layout update

Considering this layout update XML: <?xml version="1.0"?> <layout version="0.0.1"> <checkout_cart_index> <reference name="methods"> <block type="...
4
votes
2answers
3k views

How to debug: Broken reference: No element found with ID 'customer'

Getting a critical error that doesn't seem to be affecting anything on the frontend that I can notice. main.CRITICAL: Broken reference: No element found with ID 'customer'. Error is caught in ...
0
votes
2answers
100 views

Magento 2 - Adding custom layout handle for layouts (1 column, 2column etc) set via product admin page

I want separate layout handles defined for products dependent on their layout set via the layout options for product within admin (1 column, 2 column left, 2 column right). I need to set additional ...
0
votes
1answer
25 views

How to override a xml file and phtml in magento 2? [closed]

How to Do? this i was trying to override the default.xml.can anyone tell how to do this. Thanks In advance
0
votes
0answers
9 views

How the Quotes enter between the URL written in the default.xml file?

I have created a block for the header. And it contains static page URLs. I have added the URLs from the Theme default.xml. Here is the code. <block class="Magento\Framework\View\Element\Html\Link" ...
0
votes
2answers
26 views

product detail page - move block to primary product container

I would like to move the static block (a custom block from infortis ultimo theme) block_product_secondary_bottom to the container_product_primary_1 container after product.info.price. How do I do that?...
0
votes
2answers
31 views

Magento 2 - Add Class to ReferenceBlock

I need to add a new class to a referenceBlock, specifically the nav items in the Account Page. <referenceBlock name="customer-account-navigation-account-link"> <arguments> ...
4
votes
1answer
778 views

Magento 2 Blank Layout Page

I tried to create a new tab in customer edit backend. First i create the app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
3answers
1k views

Add product name in product view within a new phtml?

I copied catalog_product_view.xml and pasted it into app\design\frontend\Mytheme\DreamShop\Magento_Catalog\layout folder and code is added before the default.phtml <block class="Magento\Catalog\...
0
votes
1answer
34 views

Magento 2 - Include css from module in template

I developed a new extension. I have some CSS which I need to include on some templates. CSS: app\code\Fekete\Newsletter2Go\view\frontend\web\css\main.css Block: \app\code\Fekete\...
0
votes
1answer
20 views

Magento 2.3 Product Category not showing changes on frontend

I am wondering if anyone can help. I have made some design changes to the following category: https://www.valvesonline.co.uk/manual-valves/ball-valves.html However these changes do not appear on the ...
0
votes
1answer
60 views

How to Remove <uiComponent> Tag

Is it possible to remove this tag which was declared in another extension? <referenceContainer name="content"> <uiComponent name="library_authors_list"/> </referenceContainer> ...
0
votes
1answer
632 views

In the admin panel, how to change the sidebar block template for specific category?

In the admin panel I am editing a category and have set the "Custom Layout Update" to: <reference name="widget.support"> <action method="setTemplate"> <template>custom/...
6
votes
2answers
4k views

How to Add a viewModel to a core block?

I am trying to overwrite a core template and add my custom logic using a viewModel as follow: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
793 views

Magento 2 Invalid Block Type in Custom Module?

How can I Rectify Invalid Block Type Error in my custom module. I created a custom module in magento 2 for overriding default product list page with separate phtml file I am calling them in category ...
0
votes
1answer
24 views

unexpected changes in my product page layout?

unexpected changes in my product page layout that attached in the first screenshot happened to my product page bootstrap layout system .... i can't get back to my default magneto layout as it attached ...
0
votes
2answers
38 views

How do I transform the create new customer page

Where do I transform the first name and Last name field into a single row with round corner? I am using Magento 2.3 Transform this as new Image
4
votes
1answer
2k views

Use a dropdown select for the shipping address on the Onepage Checkout

In Magento 2, I would like to be able to select the shipping address with a dropdown, similar to how you can if you choose to change the billing address. This is how it currently works: I would like ...
0
votes
1answer
31 views

Where can I restructure the html for the magento 2 product view page?

I am trying to theme my product view page but I cannot find the correct file to override in order to pull in all of the data where I want it. in my /app/design/frontend/theme/Magento_Catalog/...
6
votes
1answer
2k views

Magento 2: changing custom theme default layout

I have custom theme that inherits no parent theme from Magento. The default layout appears to be 1 column, and I am able to make modifications to that column in my custom theme's layout\default.xml ...
1
vote
2answers
962 views

Moving “My Account” link from the top links in 2.2

having trouble with a layout change in Mage 2.2. I want to move just the link for "My Account" from its current position (located inside <div class="panel header"> <ul class="header links"&...
2
votes
2answers
741 views

Magento 2 : Remove Top Links When Customer Not Logged In

I would like to remove My Account link from top links, when customer is not logged in. How do I achieve it via XML layout files?
4
votes
4answers
1k views

How to call module block after header?

I have a module layout file like below <default> <block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" before="-" /> <...
0
votes
4answers
35 views

How to override template in newsletter/manage?

I try to override the following template which is under www.example.net/newsletter/manage with my own /vendor/magento/module-customer/view/frontend/templates/form/newsletter.phtml Block class: ...
1
vote
1answer
1k views

How to Customize Breadcrumbs in Magento2?

I want to customize Magento\Theme\Block\Html\Breadcrumbs class in magento 2. How can i change some text and style of breadcrumbs with custom module?
0
votes
2answers
427 views

Layout file is not loading for custom page magento2

I have created custom pages a lot of times, but never face such issue. I have tried 'echo' in controller action, it is working. But all this time the layout file is not loading for that page. Here ...
4
votes
1answer
681 views

How to locate culprit for “Please correct the XML data and try again” error

Getting the following error on the cart page of Magento 2, checkout_cart_index. It's a code base with no version control and this issue is present even when I'm using the default Luma theme. I've run ...
1
vote
3answers
2k views

Magento disable cache for price block

In my project we are using Magento Enterprise Edition 1.14.1. The prices in store are changed dynamically direct from Database. So the problem is Magento cache every thing (full page cache) so the ...
3
votes
3answers
5k views

Magento 2 Create custom 404 page for not-found products

In Magento 2 I am looking to create a module that adds a custom 404 page specifically for not-found products in the catalog, however keep the default 404 page for all other pages. My initial thoughts ...
0
votes
0answers
54 views

Appear error when upgrade from magento 2.3.2 to 2.3.3

When we execute command line upgrade done appear error in the log: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't ...
1
vote
0answers
10 views

Magento 2 layoutprocessor checkout

Is it possible to show the custom field for guest users instead for all users. I gave created a custom field using layoutprocessor
0
votes
0answers
24 views

How can I change the order of links in the “top.links” section of the Magento 1.14 header?

I've been able to manipulate the links that are included in the "top.links" section, add three new links, and specify that the login/logout links and My Account link be revealed/hidden as appropriate, ...
0
votes
1answer
37 views

I am trying to add a phtml through xml. But I can not add. Code shared below

trying to add a phtml through xml to account page sidebar. but i am not getting it right. the xml code is:
0
votes
1answer
77 views

Magento 2 How to display Customer-Welcome in header link?

In the header links, I don't have "customer-welcome" on my website. Below is the screenshot taken from demo site. Please have a look at it. How can display the customer welcome on my website? Below ...
0
votes
2answers
46 views

Magento 2 : Update layout handle from XML by condition

This is my layout file : <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
10
votes
1answer
888 views

Magento2: Conditionally replace block template and class the right way

This rather trivial requirement turns out be quite a pain for us in recent days, as we couldn't find a satisfying existing solution, yet. The Task We are trying to replace certain blocks with a ...
2
votes
1answer
2k views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...
1
vote
2answers
2k views

Load custom block in category list page magento2

I am trying to add custom template file in category list page. app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view.xml <referenceContainer name="content"> <...