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

Magento Commerce Customer registration page field input appear incorrectly

we are currently in the process of setup magento2.3.5p2 commerce, previously we are using the magento2.3.5p2 open source version After finish setup and installation of magento2.3.5p2 commerce at local,...
user avatar
0 votes
0 answers
14 views

Magento 2 blocks not showing up on homepage after cloning to localhost

I have copied my Magento 2 website from production to a: Local Environment: Ubuntu 20.04.4 LTS Apache 2.4.41 MySQL Version 15.1 Distrib 10.5.16-MariaDB PHP 7.4.30 in the normal way: Copied all ...
user avatar
0 votes
1 answer
20 views

How to add htmlContent UI Component in product_form.xml custom attribute product group?

I create a custom product attribute with a custom group like this: $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'trademark', [ 'type' =&...
user avatar
  • 79
0 votes
0 answers
20 views

Magento2.4.4 menu account

I am using Magento 2.4.4, and I create account for vendor and there is a menu. But this menu is not correct like this: I would like to return orders and customers like Dashboard and Products in the ...
user avatar
  • 1
0 votes
1 answer
24 views

Add a template content to detail tab

I want to add some content within the product detail tab. I created my template below <referenceContainer name="product.info.details"> <block class="Magento\Catalog\...
user avatar
1 vote
2 answers
21 views

Replace body class name attribute in Layout

Is it possible to replace class name value attribute in layout? for example body has 3 classes x y z I want it to be c y z how to replace class x to c I can add class c using <attribute name="...
user avatar
0 votes
3 answers
32 views

How to remove and change My Account Navigation

I am trying to remove some tabs https://prnt.sc/I0JvtmM41ROP I am using below file path and code app/design/frontend/vendorname/themename/Magento_Theme/layout/default.xml <!-- Downloadable ...
user avatar
  • 433
0 votes
1 answer
9 views

problem in layout of page in admin panel

i have problem in this page in catalog --> Data Feed that's after upgrade from 2.1.10 to 2.3.5 , so any idea for how can i solve with explanation for beginner please . this is page source , ...
user avatar
0 votes
1 answer
16 views

M2.4 alternative to reference in design layout

I just upgraded from M2.3.5 to M2.4.4 and on some product pages I am getting the following error in developer mode: Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'reference':...
user avatar
  • 1
0 votes
0 answers
12 views

Best Way To Set / Override uiComponent Template Via Layout XML or Otherwise?

I'm trying to override the template used by vendor/magento/module-checkout/view/frontend/web/js/view/summary/item/details/thumbnail.js:13 return Component.extend({ defaults: { ...
user avatar
0 votes
1 answer
21 views

Social share buttons on success.phhtml magento2

Can anyone guide me how can i add social share buttons in Magento 2 ? In success.phtml i have discounted code on that . I want to just send that on social share. Below is the file that want create. If ...
user avatar
  • 1
0 votes
0 answers
71 views

You cannot proceed with such operation, your reCaptcha reputation is too low error when register customer in magento2

I have added login and register form on same login page. But i am getting this error as below You cannot proceed with such operation, your reCaptcha reputation is too low. Before i have two different ...
user avatar
  • 1
1 vote
1 answer
36 views

Adding layout handles to blocks in cms pages

We have a cms page with a content like this: <p>Lorem Ipsum</p> <div>{{block class="Vendor\Module\Block\Feature" block_id="feature_wrapper_block"}}</div> &...
user avatar
  • 288
0 votes
0 answers
10 views

Magento2 How to set the Layout option default selected to 1 column?

Magento2 How to set the Layout option default selected to 1 column in following dropdown?
user avatar
  • 3,446
0 votes
0 answers
107 views

magento 2.4 hide custom address attribute from billing address only

I've created a custom address attribute via \Setup\Patch\Data and it's showing correctly on address forms, both on customers and checkout. However, I'd like this attribute to be shown in shipping ...
user avatar
  • 143
0 votes
1 answer
21 views

Magento 2 how to add ttl attribute to referenceBlock?

I need to add ttl="3600" to a referenceBloc, I would override the whole catalogsearch_result_index.xml but there are some third parties modules that crash if I override the whole file. so I ...
user avatar
0 votes
0 answers
102 views

Add UI Component in the Custom Block

Made the layout file in which I have called the custom block. <?xml version="1.0" encoding="UTF-8"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
user avatar
0 votes
1 answer
97 views

Magento 2: How to set catalog product description input field using WYSIWYG instead of page builder?

After i upgrade my Magento version to 2.4.3, the product description input field in backend becomes page builder input field, i want to revert it back using the regular wyiswyg input field without ...
user avatar
  • 68
0 votes
1 answer
31 views

How do I hide "Search engine Optimization" from product add/edit admin panel?

As the question states, im simply trying to hide the "Search Engine Optimization" from the admin panel, how would I do that? Im not sure whether there's somewhere where id be able to place ...
user avatar
  • 71
0 votes
1 answer
38 views

Magento2 : Layout block what is the difference between acl="" and aclResource"" attribute

I've been trying to figure out the difference between acl and aclResource both attributes available for <block> directive. I know that aclResource is useful to render the block based on specific ...
user avatar
0 votes
1 answer
55 views

Magento 2 layout XML reference block added in CMS page

I have a CMS page, and in certain place it references a custom block from my module as such: {{block class="My\Notification\Block\NotificationForm" name="notification.form" ...
user avatar
0 votes
0 answers
64 views

Extension Layout won't work when using a custom theme

I have built an extension intending it to add a block underneath the Add to Cart button on the catalog product page. My extension layout file isn't being executed - instead it just executes my custom ...
user avatar
0 votes
1 answer
39 views

Can't add block below add to cart button

I am new to Magento and would like to add a custom block underneath the 'Add to Cart' button. Here is my catalog_product_view.xml file: <?xml version="1.0"?> <page xmlns:xsi="...
user avatar
0 votes
2 answers
46 views

Magento 2 add JS only on specific static page

I have created one static page, I wanna load specific JS only on specific static page, Here my static page name is ship_custom_page If I have to load specific JS in product page so I am using ...
user avatar
0 votes
0 answers
64 views

Add a price element to all buttons on a product page

I expect this result. in catalog_product_view.xml I add wrapper container for the add-in that container 2 blocks. Price and Add to cart button block. <container name="product.price.wrapper&...
user avatar
0 votes
0 answers
24 views

Move mini cart in second container

I've moved some elements through default.xml file. One of those elements, the top search, is moved. At desktop it's into the right position however not on mobile view. I'm wondering if it's possible ...
user avatar
0 votes
0 answers
18 views

Magento 2.4.3 Layout override is not working

I have recently upgraded Magento 2.3.3 to 2.4.3 and installed claue 2 theme, and created my own child theme in separate folder (not user MGS folder), child theme works fine except that any layout ...
user avatar
1 vote
1 answer
231 views

Magento 2.4.3 CMS Page custom layout update

I am trying with no luck to update a layout to a specific page only to our Magento 2.4.3 store. CMS Page URL key is: product-finder I have created in child theme folder this xml file: app/design/...
user avatar
  • 932
0 votes
1 answer
206 views

How can I display the categories and subcategories in my admin form like in the product page?

I am trying to add the categories and subcategories in a small panel Exactly like the one in the product panel and I want to add it in here instead of this XML field like the "toOptionArray"...
user avatar
  • 71
0 votes
2 answers
55 views

Magento 2: add left sidebar in cms page

I try to define the new design layout and call the left sidebar in cms pages. What I do: app/design/frontend/Vendor/Theme/layout01/Magento_Theme/layout/layouts.xml <?xml version="1.0" ...
user avatar
  • 2,096
0 votes
1 answer
188 views

Magento 2 - Use knockoutjs and html instead of phtml

How can I use html and knockoutjs on a custom site which is accessible from a custom controller? For example my controller route is threepartment/vault/index If I go to: www.example.com/threepartment/...
user avatar
  • 2,461
0 votes
1 answer
28 views

Where to find Path of the price element in Magento 2

I have installed a payment method extension and it requires adding the following; Can I please know what element to input and where to find the path? Thank you
user avatar
  • 1
0 votes
0 answers
65 views

Magento2 description attribute value not getting displayed when set via page builder

Magento2 description value is not getting displayed when the added from page builder layout & layout from admin is set to No layout option. It only get displays for product full width if set How ...
user avatar
  • 3,446
0 votes
1 answer
16 views

Magento2 How can we set 2 layout?

When we create a product via admin by default product-full-width is set under Design > Layout > Product Full Width When we are importing products it is not set so we need to set it via XML I ...
user avatar
  • 3,446
0 votes
2 answers
50 views

Create a custom layout for certain categories in 2.4

I want to create a custom layout for one or more categories. I followed the next steps: Extended and customized <theme_dir>\Magento_Catalog\layout\catalog_category_view.xml (layout instructions ...
user avatar
  • 1
0 votes
0 answers
49 views

Can't add item into checkout_index_index.xml in Magento 2

I am using a theme purchased for my Magento site and therefore have a one-page checkout. I would like to add the general conditions of sale on the last part but I cannot modify the template XML file. ...
user avatar
0 votes
1 answer
28 views

Magento2.4.2 layout

Is there any difference between the two layouts
user avatar
  • 51
0 votes
1 answer
153 views

Magento2.4 for cms page add layout

Have custom layout updates generally available for all pages, categories and products, so users can select and update the layout without creating many files with the same code over and over. It would ...
user avatar
  • 51
0 votes
0 answers
23 views

Use layout XML to conditionally hide UI element based on state of a UI model

I've added a new field UI component to an existing form, using layout XML, but I'd like that new field to be visible only under certain conditions. In my module's layout XML I can manually switch that ...
user avatar
  • 416
0 votes
0 answers
21 views

Change background color of magento theme

I'm arranging the product sheets of an eCommerce made with OpenMage and JAKESHARP WATERLEE theme. I need to change the background color of the theme, but if I go to JAKESHARP WATERLEE -> Theme ...
user avatar
  • 1
1 vote
0 answers
22 views

Magento2.4 auto ceate layout xml file

In the Magento2.4 community website, I need to define a CMS page layout every time I do a lot of active pages. Is there a way to automatically create an XML layout file based on the URL of my site, so ...
user avatar
  • 51
1 vote
1 answer
62 views

Custom design layout update not showing for CMS page

I've create a xml named cms_page_view_selectable_eco_test.xml at app/design/VendorName/themeName/Magento_Cms/layout/, so the full path is /app/design/VendorName/themeName/Magento_Cms/layout/...
user avatar
  • 2,088
0 votes
0 answers
7 views

Removal of updated layout

Magento 2.4.3. I had updated layout of product and category pages by inserting widget (recently visited items) to pages' bottom above footer. Later on, I decided to remove that widget. What's strange ...
user avatar
0 votes
0 answers
12 views

Why does Magento docs show manipulating layout though plugin rather than module layout XML file

The docs https://devdocs.magento.com/guides/v2.4/howdoi/checkout/checkout_new_field.html they describe adding a new field to the checkout form. The first step is to get the field onto the form and ...
user avatar
  • 416
0 votes
0 answers
15 views

Different category page changes for 1 column and 2 column pages

I have a site that uses 1 column and 2 column layouts for category pages (some pages are 1 column, others are 2 column) I made a change to the catalog_category_view.xml to update the layout of the 1 ...
user avatar
0 votes
1 answer
205 views

Magento2 : Call phtml file to other phtml file

I want to add new phtml file to existed phtml file. It is working fine, but I want to know reference block and class names. My code in layout file <page xmlns:xsi="http://www.w3.org/2001/...
user avatar
  • 1,093
1 vote
1 answer
161 views

Disable specific Block is getting cached in Magento2

I am trying to disable cache for specific block, Have used below code. app\code\Vendor\Module\view\frontend\layout\default.xml <referenceContainer name="header.panel"> ...
user avatar
  • 135
0 votes
1 answer
73 views

Magento 2 - Category url load very slow

I have a very strange problem in frontend when open a category after in the adminhtml change the Design Layout to 1 column. If the category have the Design Layout 2 columns-left for example everything ...
user avatar
  • 2,096
2 votes
1 answer
187 views

Magento 2 - Load values in di.xml from a helper class

Currently the template is defined like this: Company/PdfDesign/etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
  • 2,461
0 votes
2 answers
27 views

Magneto 2: referencecontainer and container

I want to know the difference between <container> and <referenceContainer> for layout file. Thank you in advance!
user avatar

1
2 3 4 5
56