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

Error setting an adminhtml from a frontend path

I'm using a third-party which set an appendPaymentBlock Observer method <adminhtml> <events> <payment_info_block_prepare_specific_information> <observers&...
0
votes
2answers
45 views

Magento 2: Layout doesnt update

After clearing the cache default_head_blocks.xml doesn't update. How I clear the cache 1. php bin/magento setup:static-content:deploy 2. Flush Magento Cache in the admin What is the best way to ...
1
vote
0answers
29 views

Magento 2 jsLayout won't work with checkout_index_index,.xml

I am trying to convert a static form in checkout_index_index.xml to a dynamic one using jsLayout. Here is my original xml: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
43 views

How can I change the title of the Contact Page in Magento 2?

I am facing an issue regarding change Title on contact page in Magento 2. I have extend the template app/design/frontend/Mgs/child_theme_name/Magento_Contact/view/froentend/layout/...
3
votes
1answer
40 views

Change default layout when create new product

When I create a new product, it always selects the layout 1 column. Is there any option, I can change the default value of layout when I create new product? Any help will be appreciated!
0
votes
1answer
25 views

Magento 2 How to move product option wrapper from FORM?

How to move product option wrapper from FORM? When I am moving option wrapper form then add to cart is not working and when changed custom option values then the price is not updating <container ...
0
votes
0answers
40 views

Magento 2.3.2 not loading my custom layout

I'm trying to override the customer login layout with no success. Magento for some reason is not loading my layout. I'm using Magento 2.3.2. This is my theme structure: I'm following this guide: ...
0
votes
1answer
32 views

Magento 2: Override admin layout didn't work

I would like to override this quotation_quote_view.xml file layout (from a custom module) and add a block below this block reminder_date <block class="Cart2Quote\Quotation\Block\Adminhtml\Quote\...
0
votes
1answer
39 views

Magento 2 - Estimate shipping costs block on homepage

I am trying to include the Estimate shipping costs block on my homepage. In my layout file (cms_index_index.xml) I have the following: <?xml version="1.0" ?> <page xmlns:xsi="http://www.w3....
3
votes
0answers
37 views

Call a Shipping field from front end to backend Magento 2 Layout processor

I have added a custom delivery date option in shipping method on front end using layout processor and it is showing and working fine. Is there any way to merge or call the same method in backend order ...
0
votes
0answers
87 views

Magento 2 :Add custom field on order create page admin

I want to add a date field right below shipping method on admin order create page I tried searching but magento 1 solution shows up I'm new to Magneto
0
votes
1answer
49 views

Magento LayoutXML Update Default Products per Page Grid

I cannot edit my magento theme for now - I'm trying to do this through the back admin. I am also by no means an expert, so please forgive me. I need one category to have a default grid value of 48 ...
0
votes
2answers
36 views

M1 How to know what contents corresponding to layout / block / template?

Currently, I don't know how to find the layout of the manage customer page (Customers > Manage Customer). Generally, how can I find the block/layout/template/controller of a specific page? Thank ...
1
vote
2answers
63 views

Magento 2 setTemplate and add content to phtml template

How to add bare HTML to a block e.g: $block = $result->getLayout()->getBlock('category.description'); $block->setTemplate('Vendor_Module::myTemplate/blank.phtml') ->toHtml('<p>My ...
0
votes
2answers
49 views

How i Can Move Side Bar to Right on My Account Page

I want to Move Side-bar on My Account Page to Right On The Basis Of Admin Configuration Value After Some Research i found that it can be done by setting Page layout="2coloums-right" i saw Lots of ...
0
votes
4answers
59 views

Magento 2 - How to get a list of newly created products on homepage

how I can get a list of newly created products? I want to display in frontend the latest added products.
0
votes
0answers
17 views

Layout does not have a schema properly defined

When we run command line magento dev:tests:run default Our command show a bug: Data set: /app/design/frontend/Vender/name theme/module name/layout/default.xml The XML file at /app/design/frontend/...
0
votes
0answers
16 views

Magento 2 : Search pages not showing filter selected option

I have a amasty layer navigation extension. This plugin filter is working fine for all pages but one page have a issue. - search pages filter selected option not display. How can I solve this problem ...
0
votes
0answers
21 views

Magento2 - Custom module Secondary CMS Block not showing up on front-end

I have created a module to add a secondary CMS block to category pages, and everything is working fine in the back-end and I select whichever CMS I want. However, nothing appears on the front-end of ...
1
vote
2answers
54 views

Move additional attributes below short description

I want to move additional infos below short description. I found this: <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
24 views

ios Safari - Click on level 0 category menu would cause the background page shifted up unexpectedly

I found an issue that occurs with iphone and iMac using Safari, running on Magento v2.3.1 Steps to reproduce the problem: 1. Visit webpage with iPhone/iMac with Safari browser 2. Tap on Responsive ...
0
votes
0answers
21 views

Edit checkout labels and put a dropdown city instead of text field and Shipping method auth select

I having many issues with magento2. I'm benginner using it. What i want: Get the "City" in Checkout as a dropdown with custom list (its like 10 items in the list) instead of a plain text field. Edit ...
0
votes
0answers
26 views

How to wrap header.links block in a custom div via layout XML?

I have a top menu which is generated by header.links block as <ul class="header links"> <li>...</li> ... </ul> I want to wrap this header.links block in another div as: &...
0
votes
1answer
46 views

Load custom css in IE issue in magento2

I need to use custom css in IE. Added below code to default_head_blocks.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
32 views

restore the default checkout in magento 2.3 [duplicate]

I have a disaster in the template of a checkout, it is really bad!. I never used Magento but now I need to restore the default checkout layout/html/template of a web. I no have backups of changes and ...
0
votes
1answer
34 views

How to restore the default checkout template?

I never use Magento but, a friend uses it and a dev. broke their checkout page, how I can restore the TEMPLATE of the checkout to default? I don't see a backup of any of the files, and I no have clue ...
0
votes
2answers
42 views

Getting 500 error when access product page magento 2

when i add a product to muy category this what i found as results any help please and thanks in advance
2
votes
3answers
165 views

Magento2 Need to filter grid when value is entered in search box, the column of the data is from another table

I have added 4 columns in the grid as displayed in below screenshot. For displaying for eg. Recipient Email column I added following code in XML & it's renderer PHP file. (Code is added below) ...
0
votes
2answers
48 views

Magento 2 Layout update xml not working for categories

I try to use my customized .phtml file for a certain category. I go in Admin->Catalog->Categories->Design->Layout update xml I put the following code in the field layout update xml, &...
0
votes
0answers
13 views

how to add a an html and css files to existing theme?

I am trying to add a custom HTML, CSS, and JS files to an existing theme or at least grab the menu from the Magento site to the static page. Thank you
3
votes
0answers
26 views

Production mode doesnt load any content for custom module

I have created a custom module in Magento 2. In developer mode it is working well, however same module does not show any content in the production mode of Magento its show only white screen. There is ...
0
votes
0answers
22 views

controller not reaching magento2

One strange thing is happing in my application, I have one custom link in my email. On development server everything works fine, but on production server when I clicked the link nothing happens, ...
0
votes
1answer
31 views

Magento 2 What is the different between setDefaultOrder and SetSortBy in layout xml?

I'm trying to set a default sort order to products listing in category page. I have seen people suggest using <action method="setDefaultOrder"> <argument name="...
1
vote
2answers
41 views

How to add block html content display in particular div or any particular place by xml file?

I created customer_account_login.xml to add block. <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0
votes
2answers
48 views

Magento 2 - Full width for a section in product view page

I add a new block in Product View page: <referenceContainer name="content"> <container name="containertwo" as="containertwo" label="ontainer" htmlTag="container" htmlClass="my-...
1
vote
1answer
78 views

Magento 2 - Passing argument from backoffice in Category Layout Update XML field to frontend module or phtml

In Magento 1 I sometimes used this way to pass an argument to a category, directly from the back office Category > Custom Design tab > XML Design Update <reference name="product_list"> &...
2
votes
1answer
37 views

Remove container in block class

I want to remove some items from a page when certain conditions apply. I got a solution but I'm wondering if there isn't any better way to do this. Now the code that I have is for each block that I ...
1
vote
2answers
89 views

Magento 2 - OWL Carousel 2 in related products issue

I try to setup OWL Carousel for Related Products in Magento 2. I overwrite this file: Magento_Catalog/templates/product/list/items.phtml this is my custom code: <div id="owlslider" ...
0
votes
0answers
80 views

magento2: add an image to customer_account.xml layout

Hi I'm trying to modify an existing layout from a module created by someone else. I want to and an image to a link. The body code looks like this. I tried adding tag and also an tag next in one of ...
0
votes
1answer
19 views

Magento 2 - Get all team members on a page

I begin in Magento development and I try to do something but I don't know how to start. I want to display on a "about us" company page all team members of a company, for example in WordPress we have ...
0
votes
0answers
21 views

Magento 2.3 - Append custom block to product listing using DI xml failed

I am trying to add my custom block using DI XML but it failed. Di XML <type name="Magento\Catalog\Block\Product\ListProduct"> <arguments> <argument name="data" xsi:...
2
votes
1answer
226 views

Magento 2 Migration Settings error

I migrate settings from Magento 1.9.3.10 to Magento 2.3, after the migration was successful when I try to reindex or flush de cache from command line I have this error: The website with id 0 that ...
1
vote
4answers
130 views

Magento2.3.1 i want to remove wishlist link from top.links but not working

I have added below code in my custom Magento_Theme default.xml file to remove top.links <referenceBlock name="top.links"> <referenceBlock name="register-link" remove="true"/> ...
0
votes
1answer
46 views

Layout XML Error - Magento 2

I change the deploy mode to developer on Magento 2 and now I see the following error: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': This element is ...
0
votes
1answer
15 views

Extend/Override Javascript Included from Layout (head->link)

I want to extend: vendor/magento/module-catalog/view/adminhtml/web/js/edit-tree.js Which is loaded by layout: vendor/magento/module-catalog/view/adminhtml/layout/catalog_category_edit.xml:12 Why I ...
0
votes
1answer
28 views

Access specified product on custom URL

Greetings StackExchange. I' have a task where I cannot google anything on the subject. I want to create a copy of the standard Magento product view but it should be accessible on a custom URL. I ...
0
votes
1answer
34 views

Magento2.2.5 remove default product title and add custom phtml file on product detail page

in Magento2.2.5 I want to remove the product name and instead where it is load a custom phtml file that will call in a custom product attribute However my phtml file is not being called in here is ...
0
votes
0answers
31 views

Moving language block in footer not getting after reference block in magento2

I want move header language block into footer after copyright but it's display before copyright block i have tried using <move destination="footer-container" element="store_language" after="...
1
vote
1answer
132 views

Magento2 Luma move category image so its full width

In my magento 2.2 based site I am trying to edit the catalog_category_view.xml to move the category image above the page-main div and after the breadcrumbs so that it will load full width (in the Luma ...
3
votes
0answers
25 views

How to organize layouts?

I'm on the product page and in my layout i created a block to render on the product informations, on the upsell product informations and on the related product informations but it doesn't works. The ...