Questions tagged [xml]
Denotes questions about XML files and XML processing.
1,205
questions
2
votes
1
answer
1k
views
Magento 2 - Move Block Not Working
I've created a faqs.xml for a bespoke page template and this is my code:
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
1
answer
2k
views
Magento 2: Change UI template
For the checkout, I would like to use a different UI template to that which is used on the cart. Currently, they both use the same UI template: <item name="template" xsi:type="string">ui/form/...
0
votes
1
answer
1k
views
Product Page Layout
I'm trying to find a way to add a new custom layout for some products so I can just go to the Design Tab and choose the "Page Layout" from the dropout.
I can only find CMS Layout pages in google.
Also ...
0
votes
4
answers
1k
views
How to give a CSS class via XML?
There is a link in header portion called quick order, I need to add css class for that link but there is no phtml file for that link so I need to add it via xml. Below is the xml file from vendor.
<...
0
votes
4
answers
1k
views
How add text in custom theme header magento 2
<referenceContainer name="header.wrapper">
<block class="Magento\Theme\Block\Html\Header" name="header.links" after="logo">
<arguments>
<...
0
votes
0
answers
19
views
HTML vs XML in Magento 2
I am trying to edit my theme in Magento 2. I am using the Theme "Fastest", and I am trying to do things such as add background images. I am looking for an HTML file for editing the header ...
3
votes
1
answer
2k
views
Magento2 : How to add <item> in XML <block> <arguments>
I would like to update the following layout .xml :
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<...
5
votes
4
answers
5k
views
Magento 2 - Backend custom module 404 error
I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
0
votes
0
answers
21
views
how we can get custom product grid in magento 2
I have tried to create a product grid custom extension
but product grid filter is not working and I am not able to save data
this is my code:
<?php
namespace Magebees\Artists\Block\Adminhtml\Slide\...
2
votes
2
answers
2k
views
Magento 2. Change column sort order
Columns in magento 2 has item sort order:
<item name="sortOrder" xsi:type="number">44</item>
But it doesn't change the column order. What need I to do to change columns order?
1
vote
2
answers
3k
views
Xml Element reference is not allowed here
I am new to Magento & I am using Magento version 2.1.7 in my Windows 8.1 system with Xampp while creating a new module I am getting an error in my XML file located in the
app/code/vendor/module/...
0
votes
2
answers
1k
views
How to change image background color in Magento 2 via XML?
I want to change the white background color to any other color in Magento 2.
How could I do it?
2
votes
1
answer
1k
views
Element 'argument': The type definition is abstract and The state object to be removed is not the first in the list
I'm throwing this error on my /success/ page and it seems like such a generic error. It looks like further down the trace it's pointing to stuff like GoogleTagManager and other third-party modules ...
0
votes
0
answers
24
views
Output XML attribute deprecated?
The "output" attribute has never been necessary for me to use, but I didn't understand it very well, there is not much information in the documentation.
I saw that you can (supposedly) use ...
6
votes
2
answers
3k
views
Magento2: How to add separate css file on each cms page?
Is it possible to add individual CSS file on each cms page? Upon researching, I can do it by adding code on Layout update XML.
Unfortunately, it isn't working. Here's my code:
<head>
<...
9
votes
1
answer
2k
views
Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar
I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
0
votes
1
answer
45
views
Magento 2 : Customize New Products Rss Feed
Generally when we hit http://127.0.0.1/magento2/rss/feed/index/type/new_products/
Feed shows data in XML format like this :
<rss xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ...
0
votes
3
answers
2k
views
Show/Hide Editor Not Responding
I have tried to look for previous solution and couldn't find any relevant topics. So I guess I should post a new question here. We are trying to toggle the WYSIWYG editor (Which is turned by default) ...
4
votes
2
answers
6k
views
Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login
After successful login, Luma theme shows customer account details in dropdown on header as seen in below image
I need to replicate the same in our custom theme which has Blank as its parent.
Vendor/...
1
vote
2
answers
2k
views
Add block in layout XML only for one store view
I have a Magento 2.1.x installation with two store views.
I would like to show a particular block in the footer only for one store view.
In Magento 1.9.x I would have done it in this way:
<...
4
votes
1
answer
2k
views
XML - Cannot move product.info.review after product.info.overview
I'm trying to do the following, moving product.info.review after product.info.overview (short description)
I've used the following code, but it is not working:
<move element="product.info.review"...
3
votes
2
answers
2k
views
Magento Container not working in custom layout
I have created a custom XML layout page that I will be using for my home page. Right now it is a clone of the normal 1column.xml layout, and I'm trying to add a container for an image slider.
Here is ...
4
votes
4
answers
2k
views
How to call module block after header?
I have a module layout file below
<default>
<block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" ...
1
vote
2
answers
541
views
List of All Magento 2 Configuration Files
Magento 2 uses XML-based configuration files A LOT. When studying Magento or preparing for an exam, it is useful to have a list of all config files used in Magento 2. How can such a list be generated? ...
1
vote
2
answers
2k
views
Any change to default.xml breaks homepage layout
Fairly new to Magento 2. Working from a cloned version of another site and trying to make simple, cosmetic changes to the custom theme homepage here:
app/design/frontend/Vendor/Theme/Magento_Theme/...
5
votes
3
answers
2k
views
Facing issue when running the command php bin/magento setup:upgrade
Facing issue when running the command php bin/magento setup:upgrade
The XML in file "D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml" is invalid:
Element 'topic', ...
1
vote
1
answer
1k
views
Magento doesn't support camelCase in URL/route?
If you are declaring your router in etc/adminhtml/routes.xml with similar way
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:...
0
votes
0
answers
27
views
An exception occurred while completing a multipart upload: Error executing "CompleteMultipartUpload"
I am writing this since I have literally no idea in how to debug this anymore. I have a custom module that creates a csv feed and the uploads it to a digital ocean remote storage (space or whatever it'...
0
votes
0
answers
21
views
Add Javascript to a Single Custom Admin Configuration Page in Magento 2.4 with XML
I am developing a custom module and need to load a javascript function on my "Custom" admin configuration page created with system.xml at url "admin/system_config/edit/section/<...
1
vote
1
answer
1k
views
Magento’s XMLConnect basics guidelines please
I have investigated and found that it's possible to make android application via magento's XMLConnect extention. And as inchoo said that it is coming pre-installed in magento since CE1.5 and later. ...
4
votes
1
answer
2k
views
Magento 2 Blank Layout Page
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
1
answer
284
views
How to move the block under the sidebar in the payment step of checkout
I have a block that I display on the checkout at the bottom of the page
<referenceContainer name="page.wrapper">
<block class="Magento\Framework\View\Element\Template" name="...
0
votes
2
answers
1k
views
Layout Update XML for Category in Magento 2.3.4
Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
1
vote
1
answer
2k
views
Magento 2.2.2 - Move custom navigation into header-wrapper in XML and make it responsive
Below xml adds custom navigation before category. To make it responsive I have included it under block navigation.sections.
<referenceBlock name="navigation.sections">
<...
0
votes
0
answers
18
views
Magento2: Translate META TAGS (Meta description) in layout XML files
We have created a custom page that is shown on some specific situations.
We successfully modified the META tags inside section in various layout files.
The question is: How can we make this text ...
0
votes
3
answers
2k
views
I have create system.xml for system config value but not work
I have created one extension now i released i have also need some system config value where user can easily to handle this module. so i have created system.xml in adminhtml folder but its not work ...
1
vote
2
answers
1k
views
How to override or extend etc/view.xml file in custom module in Magento2?
I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module.
I have tried to override in app/code/<vendor>/<module>/etc/view....
0
votes
3
answers
2k
views
Magento 2 how to show custom block before product.info.details and after media
Magento 2.3.5-p2 how to show custom block before product.info.details and after media ?
<div class="product-info-main"></div>
<div class="product media"></div&...
0
votes
2
answers
2k
views
How to add view model to existing phtml and block
Is there any possibility to add ViewModel to the existing block and PHTMl file? I'm trying to add ViewModel to the file below.
sales_email_order_renderers
Code:
<?xml version="1.0"?>
&...
0
votes
1
answer
2k
views
How to make checkout page 2columns-left on magento 2
I try to make the checkout page 2columns-leftlayout, but i can't.
If i add this code in checkout_index_index.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
layout="2columns-...
1
vote
2
answers
1k
views
Set default value on select of page layout in cms_page_form.xml
I would like to set a default value for the select on the page layout when creating a new cms page in Magento 2. The file I'd like to make an extension for is cms_page_form.xml under module-cms > ...
0
votes
0
answers
13
views
Third Party Module Layout Override - use custom module or within theme directory
When overriding a layout xml file from a third-party module, example being Amasty, is it best to include the new xml file within a custom module, within app/code, or within the theme directory, that ...
0
votes
1
answer
2k
views
Magento 2: Warning: simplexml_load_string(): Entity: line 1: parser error : XML declaration allowed only at the start of the document
I am using Magento 2.0 I have learned magento2 tutorials(No frills magento2 layout) of alan storm. I have created two XML files. when I run the controller file then give the following error
Warning: ...
0
votes
1
answer
1k
views
Some of product detail page error- Element 'reference': This element is not expected
When I tried to change or open product I got next message:
1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'reference': This element is not expected.
Line: 1
...
1
vote
2
answers
96
views
How to add html tag with class name in xml block in magento 2?
Wishlist index index xml . I use this file in theme. I try
<container name="div.test" htmlTag="div" htmlClass="test-class" after="-">
<block class=&...
0
votes
2
answers
5k
views
Add js in head in magento 1.9
All js script are loaded in footer in magento 1.9. I want them in head.
Can Anyone let how to do this ?
0
votes
2
answers
1k
views
how to make noindex nofollow for login page
I want to make noindex nofollow for login page, i tried
<customer_account_login translate="label">
<label>Customer Account Login Form</label>
<!-- Mage_Customer ...
0
votes
0
answers
34
views
Export orders with addresses in xml
I have a problem with a Magento ver. 1.9.4.5 website with well over 55.000 customers in it's database and I need to export them. I have spent hours trying with System/export/profile and selecting ...
0
votes
2
answers
86
views
In Adminpanel di.xml for graphql [closed]
Autosmart\CategoryAttributes\Model\Resolver\CategoryAttribute
resolve
0
votes
1
answer
39
views
How to load external es6 script module in Magento
Is it possible to add a script tag with the attribute type set to module e.g. type="module" in magento?
I'm trying to load a es6 module through the head of the xml file but it is not ...