Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
1answer
2 views

How to add a JS Component via XML?

How could I add a new JS Component, using required and following the Magento's pattern via an XML which I can determine a unique page (e.g. using a checkout_index_index.xml) I don't want to create a ...
1
vote
1answer
1k 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. */ --> <...
8
votes
2answers
2k views

Generate xml file programmatically

I need to generate an .xml file from my extension. Inside Namespace/Module/view/adminhtml/ui_component/ folder, I need to do this pro-grammatically because the .xml file will be generated based on ...
0
votes
2answers
771 views

Magento 1.9.2.4 Add Cart To Header

I need to add a cart to the header. I am creating my own custom theme which feeds of the RWD theme. I need a cart that shows total items and value.
0
votes
0answers
12 views

Error Parameter For Element [closed]

I installed an Amasty module this RUles Promotions and this log error is occurring, apparently it seems to be some required attribute field, does anyone know how to fix it? [2019-10-10 12:35:39] main....
1
vote
2answers
2k 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
1answer
980 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
0answers
13 views

How to get XML file from Magento 2

I need this to external marketing automation system. I need XML-file from Magento 2 to SALESmanago system.
13
votes
6answers
11k views

Admin config error: Undefined index: id in Iterator.php on line 59

Can someone please explain this error to me? Exception #0 (Exception): Notice: Undefined index: id in /home/staging/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59 ...
0
votes
2answers
32 views

How to reate two different headers for desktop and mobile using xml?

I want to create two headers one for desktop and other for mobile. How can I achieve this, do i need to edit default.xml or need to add some conditions to meet the requirements ?
0
votes
1answer
611 views

Huge input lookup on admin configurable product page

Whenever I try to open a large configurable product with over 4000 simple products I get the following error: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : internal ...
0
votes
1answer
27 views

Magento2 - Modify surrounding divs of layouts

I'm using the 2columns-left as a layout for my category pages and I want to modify these divs, change their classes, without having to add javascript afterwards. I can already modify the templates ...
0
votes
0answers
14 views

I have SOAP API for shipment, how to integrate in magento 2

I have Posta Plus shipment WSDL file. I have installed the SOAP UI and with that WSDL I retrieved the data. WSDL : http://www.postaplus.net/APIService/PostaWebClient.svc?wsdl I don't know what to do ...
1
vote
1answer
15 views

How to fix “element is not expected” in a CMS page with no XML changes?

I'm receiving this error message which is mentioned below, but as you can see in the image there are no XML updates, neither content, how can I fix it? Please correct the XML data and try again. ...
0
votes
1answer
34 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
0answers
20 views

How to print all xml loaded tree and also able to debug XML?

I want to debug xml loaded tree and also able to debug XML, is there any tool available?
0
votes
0answers
27 views

Add Custom Attribute To Recently Viewed Products Widget

I have override widget_recently_viewed.xml in my theme in Magento_Catalog with <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
2
votes
4answers
986 views

Layout Update XML doesn't properly work for the home page

I'm using magento 2 and I'm trying to add this code into my Layout Update XML. <reference name="head"> <action method="addItem"> <type>skin_js</type><script>...
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 ...
0
votes
2answers
2k 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 ?
3
votes
0answers
15 views

Ordering JS/CSS load order across multiple xml blocks

When rendered, the below core XML loads the require.js file in (for example) Position 10 in the HTML Source: vendor/magento/module-theme/view/frontend/layout/default_head_blocks.xml <head> ...
6
votes
2answers
4k views

Magento2 : How to add a new product custom option type?

Two years ago, I developed under Magento 1.9 a module aiming at adding a new product custom option input type using this tutorial : http://magento.ikantam.com/qa/custom-input-types-custom-options I ...
2
votes
2answers
1k 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
2answers
2k views

How to create custom cms page layout file?

In Magento 2, is there any solution to creating a custom layout XML file for custom cms page? I want to add XML code and CSS and Js only for my custom cms page. I know about there is one field ...
4
votes
2answers
2k 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> <...
1
vote
1answer
22 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?
0
votes
4answers
785 views

Magento 2 Customer Account Navigation Add Css Class to link not working

XML: <referenceBlock name="customer_account_navigation"> <block class="Magento\Customer\Block\Account\SortLinkInterface" name="customer-account-navigation-account-link"> <...
2
votes
4answers
886 views

Can't remove layout blocks. (Magento 2)

Information: I'm using Magento 2.1 on CentOS Linux, my theme is a child of the built-in Luma theme. When the theme I made is active, I want some blocks to be removed. Let's say I want to remove the ...
5
votes
4answers
4k 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 ...
2
votes
1answer
686 views

Magento 2 custom column sorting not working

I have created custom column in Sales -> Order UI Grid. I have added "Profit" column. Which is not related to any database table and not the attribute. This column display just calculation of ...
0
votes
2answers
39 views

Magneto 2 extension using view/frontend/layout to place block in header.container not working

Hi I create a custom module that lets people who are logged in and have an attribute shows a button. I would like to do it all from the extension without touching the default.xml. I would like to ...
0
votes
3answers
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) ...
0
votes
0answers
16 views

Moving blocks and widgets on XML at Magento 2

I'm migrating from Magento 1.9 to Magento 2. I need to move some elements on header and footer but this is being a nightmare. All the content that I found on my searches show me how to do it but just ...
0
votes
1answer
25 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
0answers
3k views

sidebar and sidebar additional Magento2

In default /vendor/magento/module-theme/view/frontend/page_layout/2columns-left.xml file is next code <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
3
votes
1answer
3k 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/...
0
votes
1answer
2k views

Change meta title of customer login page

Trying to change the meta title of the customer login page in Magento2 at example.com/customer/account/login/. Added tag to my xml file but no luck. Please advise. Here's my xml layout: <?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
1answer
2k views

Override base/ui_component/customer_form.xml

I'm trying to override the following file and I need the changes to show in adminhtml. vendor/magento/module-customer/view/base/ui_component/customer_form.xml I have copied the file to the location ...
0
votes
2answers
131 views

Magento 2, Magento Unprotected XML

I have a Magneto 2.2.3 instance and when we check for security scan it is showing below error: We have determined that your Magento installation's configuration file(s) are publicly accessible ...
0
votes
0answers
20 views

Read data from config admin variable in xml file

Is it possible to read data in xml file ?. For example I create custom block like so: <referencecontainer name="sidebar.knowledge"> <block class="Magento\Cms\Block\Block" name="knowledge-...
0
votes
0answers
30 views

Reorganizing the header on the default.xml of Magento 2

I was using Magento 1.9 and now I'm migrating to Magento 2. I ready Magento devdocs for frontend and tried a lot of things but none works for me. Probably I forgot some details but I'm completely ...
3
votes
3answers
2k views

Disable country field in checkout Magento 2

I tried to disable the country field in checkout but i can't. I already disable few fields like company on checkout page by adding this this <item name="visible" xsi:type="boolean">false</...
0
votes
0answers
26 views

How to add Multiple filter of same attribute in Magento 1.9 soap v2 api?

I'm trying to run magento 1.9 saopV2 api. i'm getting salesOrderList from api by applying filter, i have to get orders with multiple status i.e. pending, processing and complete. when i apply filter ...
2
votes
2answers
3k views

How to create a new page without using CMS?

Is there any way to create a new custom web page without using the Magento CMS Admin panel? I'd like to create a new web page (let's say newsletter) using the 1 column layout. But I would like to ...
3
votes
2answers
390 views

Magento 2.2.1 XML Validation issue

I have upgraded Magento version from 2.1.4 to 2.2.1. Upgrade was successfull but once after Upgrade when i open homepage it's showing following error, 1 exception(s): Exception #0 (Magento\Framework\...
5
votes
1answer
663 views

Magento 2 - assign custom email template to specific payment method

What is the proper way to assign custom email template to specific payment method upon creating an order? For example: When choosing a Bank transfer payment method on the checkout it should send ...
0
votes
1answer
28 views

How to display custom block in product_list_toolbar?

I have a problem with displaing my custom block in toolbar toolbar-products between sorter and toolbar-amount. I tried this code: <referenceBlock name="product_list_toolbar"> <block class="...
11
votes
6answers
20k views

Find out the “name” for a referenceBlock in Magento 2

I want to remove some blocks from my page. Say for example that I want to remove the container for the logo. Then I create /app/design/frontend/MYVENDORNAME/MYTHEMENAME/Magento_Theme/layout/default....
1
vote
1answer
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. ...