The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 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 ...
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.
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
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 ...
0
votes
1answer
28 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
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....
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
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
28 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:...
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 ...
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> ...
1
vote
1answer
25 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
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
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
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
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
1answer
27 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
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 ...
0
votes
0answers
27 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 ...
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="...
0
votes
0answers
24 views

How to Receive XML Post Data in Magento2?

I want to receive and validate xml object from third party application in Magento2. How I can write custom endpoint and response for this. Xml payload: <myitems> <item> <info1>&...
0
votes
2answers
142 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 ...
1
vote
1answer
25 views

Magento 2.3.2 Element 'sequence': This element is not expected. Expected is ( module )

I'm using module Sebwite/SmartSearch. When i try to command line: php bin/magento dev:tests:run default It show a bug: Failed asserting that an array is empty. D:\xampp7212\htdocs\alothemess\...
0
votes
0answers
17 views

Layout does not have a schema properly defined

When we run command line magento dev:tests:run default Our command show a bug: Data set: /app/design/frontend/Vender/name theme/module name/layout/default.xml The XML file at /app/design/frontend/...
0
votes
0answers
25 views

DateTime error on Get Transaction Details request with Authorize.net extension

I am using extension from Authorize.net for payment methods. Everything looks pretty good on testing with sandbox but I am getting errors once launching this extension on live. First everything ...
3
votes
0answers
153 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', ...
0
votes
1answer
132 views

strict_types declaration must be the very first statement in magento 2.3.1

I have Magento 2.3.1. I am facing below error when I run command setup:di:compile. Fatal error: strict_types declaration must be the very first statement in the script in vendor/magento/module-...
0
votes
0answers
15 views

Magento2 - Wrong Template after click Edit Button in Checkout

I am using a custom template which is controlled over the SKU: catalog_product_view_sku_XXXXX.xml If I add the product to the cart and want to go back from the checkout page it shows me the standard ...
2
votes
1answer
74 views

Email layout handle phtml doesn't update in magento 2

I am developing a little custom Magento 2 extension that sends emails to admins on certain events. In layout handle's phtml template file I originally made a spelling mistake, which when corrected ...
1
vote
0answers
27 views

template is not working magento 2 admin customer_index_edit

I am calling a js function form this file current.phtml like this <script type="text/javascript"> require([ 'jquery', 'jquery/ui'], function($){ $(document).ready(function($) { updateAjax()...
0
votes
0answers
75 views

Magento 2.3.2 Error XML declaration allowed only at the start of the document

I need for a programm to (webwinkelfacturen.nl) to read my taxrates so I can be pushed in an accountingsystem. But I am getting this error when I want to call domainname/ndex.php/rest/V1/taxRates I ...
1
vote
0answers
28 views

Override Api xml Magento1

i made changes in app/code/core/Mage/Customer/etc/api2.xml now i want to override this xml in my local module how i do
0
votes
0answers
21 views

PHP Storm XML scan result : redundant default attribute value assignment

I ran a PHP Storm XML scan https://magento.stackexchange.com/a/227343/70343 The part you are interested in is 'How to use PhpStorm code inspector to validate project xml-files' And I just ...
0
votes
1answer
34 views

Magento2.2.5 remove default product title and add custom phtml file on product detail page

in Magento2.2.5 I want to remove the product name and instead where it is load a custom phtml file that will call in a custom product attribute However my phtml file is not being called in here is ...
0
votes
1answer
13 views

History order comment not show when export order in magento 1.x

I have three field comment, this can save after order. It work and show on order history comment like this But when i export xml it not show, i think problem at here, 2 links are the same. 2 comment ...
0
votes
1answer
50 views

How to override catalog_product_view.xml?

I want to have a different theme on special products. So I have a main theme --> app/design/frontend/Main/Default and I want a different theme, which is child of my main: -- app/design/frontend/...
0
votes
0answers
63 views

magento dev:urn-catalog:generate command fails to detect secret file

I'm running the following command "magento dev:urn-catalog:generate .idea/misc.xml " to use the functionality of Magento 2 to automatically resolve all my URN's so PhpStorm will stop giving me ...
0
votes
0answers
23 views

system.log from getFeedData() they are filling up my logs

Every time I am checking my system.log file I would always find the following warnings. ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the ...
0
votes
0answers
41 views

Export All Products From Magento to XML File

I'm trying to export all our listed products from our magento site to an XML file - appears the only option via admin site is to do this via CSV - this comes out unreadable. Can you advise?
0
votes
0answers
16 views

Change mobile navigation

I am trying to work out which xml file controls the menu on luma for mobile so that I can remove the Menu/Account section here at the top So I can achieve something similar to this
0
votes
0answers
27 views

How to render UI Component grid using .xhtml file?

I was used following code but no luck 1) abc.phtml include ($block->getTemplateFile('Vendorname_Modulename::event.xhtml')); 2) event.xhtml <?xml version="1.0" encoding="UTF-8"?> <...
2
votes
0answers
30 views

how to add default filter in magento admin ui component in magento 2

Hi I want to filter the admin grid data in default Magento 2 how to add default filter in Magento admin UI component in Magento 2
6
votes
0answers
91 views

Inconsistent package.xml - Magento 1

I tried finding a Slack or Discord server for Magento before coming here. I am trying to submit a Magento 1 extension for technical review @ marketplace and the package.xml won't pass marketplace ...
0
votes
0answers
20 views

magento 2 use class constant value into XML file

Hi I am working with the Magento 2 constant, the following constant i want to use in XML file class Data extends \Magento\Framework\App\Helper\AbstractHelper { const CUSTOM_TAX_CODE = 'customtax'...
1
vote
2answers
91 views

Magento 2 how to remove “SKU field” via Layout Update XML?

I'm stuck on this: I need to remove the SKU field from product page only for few products, I'm sure that I can do it with "layout update XML" tab but all my attempts have failed.. any help? :)
1
vote
1answer
22 views

how to move the custom block middle of the page in Magento 2

I added custom block in home page Magento 2, but it's showing in the top of the page I want to move to after banners how can I achieve this? cms_index_index.xml <?xml version="1.0"?> &...
0
votes
0answers
36 views

magento : Give condition in xml file

Condition in xml file catalog.xml <xsl:if product="bundle" > <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/&...
0
votes
1answer
20 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
125 views

Magento 2.3: Mass Action For Status Not Working

I'm very new to Magento 2.3, i created a Mass Action for Status Change, when i open action dropdown and click Change status a tree menu should open with 2 options, but when i click on Change status ...
1
vote
1answer
36 views

How to add a select field to an adminhtml ui_component xml

The goal is to get a drop down list of stores the site has. The current implementation is attempting to add the following into a ui_component xml file around line 100. <field name="store_id"> ...