The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
20 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:...
0
votes
1answer
32 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
0answers
10 views

Product tabs differ when updating cart item

I have added a custom product type with layout xml to add in extra tabs in the product view page. I have also included a custom block which has some scripting so that I can have better control over ...
0
votes
0answers
25 views

Magento2 custom layout unable to access custom module phtml file for products

For my Magento2 website I have created a custom module and layout for products. I have assigned that custom layout for that product from product edit design section. And from that layout, we are ...
0
votes
0answers
30 views

Magento 2 : Replace core block if module enabled

It's catalog_product_attribute_edit.xml file : <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page ...
2
votes
2answers
54 views

Magento:2.3.2: Add to cart is not working after element moved

I tried to move an element to above add-to-cart block at category page. Please check the following attachments. I need as the following: For product availability, I am using an extension. The name ...
0
votes
0answers
12 views

Remove single category in sidebar in category list page in magento2

Remove single category in sidebar in category list page in magento2
0
votes
0answers
24 views

Product page layout based on product option

I am fairly new to Magento 2 and I need to create 2 product page layouts. I have created the default layout, however I need to have another layout based on an option that is selected within the ...
1
vote
1answer
32 views

Module layout file not being used

I have a simple module Alpine_AlpineCustom but it seems that my layout.xml file is not being applied properly and I just can't see why. I can see via Commercebug that the layout file ...
0
votes
0answers
23 views

Extend layout xml in custom module

i would like to extend my child theme layout xml file from my custom module. It my child theme path: app/design/frontend/Smartwave/porto_child/Smartwave_porto/layout/default.xml <...
0
votes
0answers
24 views

Magento 2 Layout Add to cart button displaying twice on PDP page

I am customizing product page in Magento 2.3.I have removed and moved some element by creating catalog_product_view.xml file in our theme. Below are the element tag: <move element="product.info....
0
votes
0answers
21 views

Block referencing not working with specific theme

I've been trying to add more blocks to my theme's existing header block but I just can't get it to work. Below is code from my layout file in a module that I have created. As you can see, it is very ...
0
votes
0answers
13 views

Category Page Layout Handle Confusion

I've been working with Magento for many years now and this has me completely baffled. I recently wanted to disable parameter memorization for the toolbar, which is a method of the toolbar class and (...
0
votes
1answer
40 views

Magento 2.3 catalog frontend product listing sort by position

I have category and i want to sort it by position in ascending order but somehow it is not working on the front end. Following is my XML <referenceContainer name="content"> <...
0
votes
0answers
26 views

Add sidebar additional with category filter in magento 2 custom phtml

I have a custom phtml showing list of products with specific brand shown like below. I need to show the sidebar like this image in phtml as shown in the category view page of Magento 2 I tried this ...
1
vote
2answers
35 views

How to change text in customer dashboard sidebar?

I need to change the Address book text to My Contact Details in customer dashboard sidebar links. I used this below code but no use. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
30 views

How to Override xml file into Parent Theme

I have installed one plugins 'cedcommerce' and enabled theme (ced_2k18) for it. My default theme is Porto. I want to override ced commerce plugin layout xml file into my parent theme. Basically i ...
1
vote
0answers
19 views

Magento 2 add title to footer links block

I have tried to add a h3 header to the footer links block using the approach outlined here: Adding title to cms footer block This looks difficult to maintain and it wasn't quite what I wanted. I ...
1
vote
1answer
25 views

How to customize the page via Layout Update XML section in a CMS page?

I'm trying to add a new CMS block into the sidebar and remove all other blocks there, using only the Layout Update XML section in a CMS Page via the admin panel, how could I do it?
1
vote
0answers
9 views

Remove everything that's under page-wrapper

I need to remove everything that's under page-wrapper but keep any text that's added through Admin panel. Is that possible and how can I do it?
0
votes
0answers
28 views

Magento 2.3: Custom template override not showing on first load

I have override sales_order_create_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
11 views

Magento 2 how to move Address customer fields to custom form?

I'm trying to move address fields to a custom form that I created. In app/design/frontend/vendor/theme/Magento_Customer/layout/customer_account_create.xml I have the following code: <?xml ...
0
votes
0answers
8 views

Magento 2: Validation message in XML

I want to edit the validation message on some input fields. I see that input fields are defined in the xml file (checkout_index_index.xml). Is there a way to override validation message in this xml? &...
0
votes
0answers
25 views

Magento 1.9 - Replace template files by store ID

Let's say i want to use different template files on storeID 3. The modules frontend folder is: checkout If the storeID is equal to 3 I want Magento to use customcheckout instead. Is there a way ...
1
vote
2answers
92 views

Magento 2: Add custom code before closing head tag

I am new to Magento. I have some products in my Magento 2 website. I want to add some custom meta code before closing of head tag. Example if (page_id==1){ some code } if(page_id==2){ other ...
0
votes
1answer
58 views

Show Order Details in Order History

Basically I want to show Customer's Order Details information in order History page under Customer Account My Order History Page. Exactly what I'm did? I have overridden vendor/magento/module-...
0
votes
0answers
5 views

Product image not shown on product page if I use custom layout in Magento 2

Product image not shown on the product page if I use the custom layout in Magento 2 I have created a custom layout Mytheme/theme/Magento_Theme/page_layouts/special-page.xml <?xml version="1.0"?&...
0
votes
1answer
27 views

Magento Blocks Positioning

I'm trying to move the social login block to the top of the page but i'm unable to find where to change this. I'v been searching and editing different files without success. URL for customer login ...
0
votes
1answer
16 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
25 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
22 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
27 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
38 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
34 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
49 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
32 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
58 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
56 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
15 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
20 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
52 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
23 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
14 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 ...