Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [layout]

Denotes the xml files used to define the block hierarchy which eventually renders the template files.

0
votes
0answers
10 views

How can I add a UI component to a renderer of a payment method?

The task is simple: I want to add a select UI Component to a renderer for a payment method. Rather than copy/pasting HTML code into my own html-template, I want to use the built-in UI components ...
1
vote
1answer
19 views

Magento 1.9 layout getChildHtml not loading

For some reason my childhtml is not loaded inside a template file. I updated my local.xml file with: <catalog_product_view> <reference name="product.info"> <block type="...
0
votes
1answer
28 views

Magento2: How to put logo in other location

I want to put logo here: [![enter image description here][1]][1] Here is code header: <?php $welcomeMessage = $block->getWelcome(); ?> <div class="header-container header-style-20">...
1
vote
0answers
14 views

Magento 2 - How to make responsive layout using child theme css?

How to override styles-m css to set responsive layout? I just add custom blocks in footer area which are not responsive in mobile view. How to override styles-m in Luma child theme? Thanks
0
votes
1answer
23 views

Magento2: How to move header-bottom to top

I am trying to move the header to the top of the page. I'm use in default.xml <move element="header-bottom" destination="header-top" as="new_alias" before="header-middle"/> But without a ...
0
votes
3answers
40 views

Magento 2 Add block before another block using XML

I want to move minicart block to top.links block. This did the trick for me: <move element="minicart" destination="top.links" /> Now, I added a custom block with custom .phtml file to the top....
1
vote
1answer
34 views

Removing “category.description” block

I'm trying to remove the description block via: app/design/vendor/module/Magento_Catalog/layout/catalog_category_view.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
2answers
38 views

Magento 2 Sequence - Multiple Modules Overriding Same Template

I am using Magento Commerce 2.2.6 running in developer mode. I have multiple modules that are overriding the same template via the setTemplate action in layout xml. I am using sequence in the ...
0
votes
0answers
12 views

custom layout applied from category not loading when accssing from direct URL

I am applying custom template updates inside admin pannel and selecting "apply to product" as "yes". So far so good. When I load a product going all the way from navigation and selecting product from ...
0
votes
0answers
14 views

M2 - White screen shows when a custom layout loads

I followed this post. However, I am getting a white screen on the Tier 3 category pages. Troubleshooting steps: Cleared the browser cookies/cache. Flushed the cache using php bin/magento cache:flush ...
1
vote
1answer
23 views

How to write that layout XML in a template file?

This is my layout XML: <block type="amazonpayments/pay_button" name="product.info.addtocart.amazonpayments" template="creativestyle/amazonpayments/pay/product/button.phtml" before="-"> ...
0
votes
1answer
38 views

Magento 2- How to move custom options after cart button?

I want to move custom options below Add to Cart button and also want to move short description within form tag.How can I achieve this? Also I want to know why my custom php code not working in ...
2
votes
1answer
52 views

Module custom page 404 error

An extension I'm using creates two custom pages in website: app/design/frontend/mytheme/default/layout/scommerce_competition.xml <?xml version="1.0"?> <layout version="0.1.0"> <...
1
vote
2answers
55 views

Magento 2.2.6. How to show custom text after tabs section in product page?

I want to show custom content on product page below the tabs section. Basically I moved tabs and related product section in product info main area (right side) and now I want to add a custom content ...
0
votes
2answers
24 views

Magento 2: Override radio.phtml for bundle

I would like to override the output of a radio button rendering for a bundle in Magento 2. In catalog_product_view_type_bundle.xml I found the following code: <referenceBlock name="product.info....
1
vote
0answers
20 views

Magento 2: understand processing order of layout handles and other directives?

I am preparing for certification on Magento 2 and I am having difficulty understanding this questions. Can anyone help me with these questions? Understand processing order of layout handles and other ...
0
votes
2answers
48 views

Magento 2: How to move breadcrumbs and sku before product title?

I am trying to move breadcrumb and SKU to show above the product title using xml. Like <move element="breadcrumbs" destination="product.info.main" before="page.title.wrapper" /> But ...
0
votes
0answers
17 views

Magento 2: How to change the custom filter price in navigation filter?

I have trying to change this code but I can’t do this ?? please tell me how to change custom price in this types??
0
votes
1answer
25 views

Magento 2 - Add additional text before attribute

I use this code to display brand attribute value in the product view page: <referenceContainer name="product.info.main"> <block class="Magento\Catalog\Block\Product\View\Description" ...
0
votes
0answers
15 views

Breadcrumbs on pages other than category/product detail

I've already seen a few posts here how to add breadcrumbs on pages like customer page or contact page (like this or that). But is there any way to add them to all pages that are missing them without ...
0
votes
2answers
38 views

Magento 2: Calling a cms block in default xml

I am trying to call a static block in the footer block but it does not work. I created a theme and then created a default xml: \app\design\frontend\MyTheme\Theme-frontend-default\Magento_Theme\...
0
votes
0answers
11 views

Magento 2.2.5 Conflict when deleting links from the customer account page

When deleting the following links, the block-wishlist-management block is deleted as well when checking the Wishlists on the customer account space. Why? : <referenceBlock name="customer-...
0
votes
2answers
23 views

Move search form right after top menu in Magento 2.2

How to move mini search form after header menu? I am using <move element="top.search" destination="catalog.topnav" after="-"/> to achieve this but no success.
1
vote
0answers
18 views

Why does Magento have a layout XML media_type meta tag which outputs nothing?

In the DevDocs, Magento details the possible meta tag names available to include in the head layout XML. The explanation for the media_type tag caught my eye: This tag will not render (see \Magento\...
0
votes
0answers
15 views

Replacing Canonical URL in Categories

I'd like to Replace the auto-generated Canonical URL in a Category. Is there a Layout Update XML I can use to remove the original Canonical Link? Adding a Canonical URL I can use the below Layout ...
0
votes
0answers
12 views

Create/update layout send email magento

I have create an email in config.xml <template> <email> <changeprice_tpl module="cp_collection"> <file>alertprice.html</file> ...
1
vote
2answers
49 views

Magento2 move coupon code inside summary

I am planing to move the coupon code section inside the summary page,before that i have moved the summary-section under the item list, and moved the cross-sell section next to summary-section. Now i ...
0
votes
1answer
21 views

Remove all Customer related pages

I would like to remove all customer related pages. I have already removed all links like login / register, but the pages are still accessible via the url (so people with basic Magento 2 knowledge can ...
0
votes
0answers
9 views

Magento 2 cart page cross sell move next to cart summary

I am customizing the cart page design, so that moves the cart-summary next to an item list, then cross-sell section is a next to cart-summary. I try the below code for move the cart-summary, it's ...
0
votes
1answer
28 views

Changing layout of product view

For some products (same category) we need a different layout. How can I get this new layout only for those products. I know where to find the view.phtml and to adjust is, but how can you select the ...
1
vote
1answer
22 views

magento 2 move product_list_toolbar after category.cms or category.view.container

I like to move the product_list_toolbar element after the category.cms or category.view.container, for that have tried the following code <move element="product_list_toolbar" destination="category....
2
votes
1answer
25 views

Overwrite Category Display Mode from “Static Content Only” to “Products Only” via Layout XML

I want to overwrite the "Display Mode" backend setting of a certain category via layout xml file (e.g. catalog_category_view_id_XYZ.xml). Any idea how to update the layout handle? I want to do this ...
0
votes
1answer
20 views

Magento 2 Add CMS/phtml block bottom before product_list_toolbar and after product_list (Between)

I am not able to add a cms block in category page. XML: <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="my_module::test.phtml"/> what I ...
0
votes
0answers
22 views

Extend / Customise default.xml layout from custom theme - No change

I'm new to Magento theme development and I'm in the process of making my first customisation's to a new custom theme, based on the Magento "blank" theme. Steps taken Fresh install of Magento on ...
0
votes
0answers
16 views

Magento 1.9 - local.xml Template Block Not Loading when form.phtml Is Called from a CMS Page

The title is probably somewhat confusing. I'll explain as best I can. I built my own little custom CAPTCHA module for the contact us page. I modified form.phtml for my current theme and the CAPTCHA ...
0
votes
1answer
65 views

How to change the position of the block in magento2.2.2

I just installed a buy-now plugin,But it affects the display of other features. How should I change it so that the buynow-button is displayed on top of product-addto-links.Please help me!!!! I don't ...
0
votes
0answers
20 views

Magento2 : can i add search bar on top on layered navigation bar on category page

how can i add search bar on left bar in category page.
0
votes
1answer
33 views

Add to cart button from controller layout cause redirect to controller url

I've got controller that render products in .phtml with add to cart button and return it via layout to ajax. When i hit the add to cart button this makes redirect to controller page. I need to reload ...
0
votes
2answers
29 views

Magento 2 - How I can setup product price per quantity

I have some simple and configurable products in Magento 2, before in the Magento 1 version we have tier prices to sell this products with different price per quantity. How I can do this on Magento 2 ...
0
votes
0answers
40 views

Magento 2 - Custom Customer attribute in order create select customer grid

I am trying to add a custom column in sales create order customer grid. When admin trying to place order from back end ,after create order button click we get a customer grid . I have added a new ...
0
votes
0answers
28 views

Magento 2 add Block Template in php (not XML)

In Magento 2 one can do with XML : <referenceContainer name="content.bottom"> <block class="My\Module\Block\Index\Index" name="my.block" template="My_Module::test.phtml" /> </...
0
votes
1answer
23 views

Magento 2 Custom Module Controller getLayout , createBlock, getBlock , append Fatal error:

namespace My\Module\Controller\Index; use Magento\Framework\App\Action\Context; class Index extends \Magento\Framework\App\Action\Action { protected $_resultPageFactory; public function ...
0
votes
1answer
23 views

Magento 2 - Add Size Chart issue

I try to add Size Chart block on product view page in Magento 2. I add this code in catalog_product_view.xml <referenceContainer name="product.info.main"> <block class="Magento\Catalog\...
1
vote
1answer
81 views

Magento 2.2.6: How to add <div> on product listing page without override file?

I want to add custom div on product listing page under class="product-image-container" <span> without override product list.phtml & catalog_category_view.xml file. And i also want to ...
0
votes
0answers
20 views

Magento 2 Position of widget

We have added a widget, which has to displayed at specific categories (100+ categories, so manually adding to each category is not an option). It has to be displayed preferably between the Category ...
1
vote
2answers
42 views

how to use plugin/other module for add html for other module in magento 2?

I want to render html (Front-side) using plugin/other module in different module. There's already existing form in Module X. I want add one drop-down in that from using Module Y. How can i achieve ...
1
vote
1answer
24 views

Checkout: is there a shop search input field by default?

Problem: On checkout page there is a "Sign In" link that overlays mini-cart-icon/search ... I have no completly fresh installation, but i doubt it come from any extension. (they do not effect ...
0
votes
0answers
13 views

call breadcrumbs block twice in page.xml magento 1.9

I am trying to call breadcrumbs.phtml file twice through page.xml file. In page.xml breadcrumbs are added here <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">...
1
vote
2answers
30 views

Change page layout for all products

I need to change all my products to the page layout "2column left". Now is everything set on 1column. How can I do this in one step for all the products?
0
votes
3answers
36 views

Move block before Tab Magento2

i would like to create a banner on product view page and move this banner AFTER the short description and before the tab content. I user this code under catalog_product_view.xml <move element="...