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
22 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 ...
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
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
19 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
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 ...
0
votes
1answer
25 views

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

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
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> ...
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
2answers
25 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
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
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
0
votes
4answers
34 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: ...
0
votes
0answers
53 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
30 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/...
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
2answers
45 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
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
0answers
26 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
32 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
60 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
26 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
26 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
25 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
41 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
35 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
36 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
66 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
10 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
10 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
26 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
116 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
65 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
29 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
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:...