Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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
15 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
12 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
21 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
25 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
17 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
1answer
51 views

Magento 2, Magento Unprotected XML

I have one 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 over ...
1
vote
1answer
20 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
15 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
21 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 ...
0
votes
0answers
53 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
49 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
53 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
25 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
59 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
25 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
16 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
33 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
11 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
40 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
44 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
17 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
30 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
24 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
28 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
77 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
14 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
57 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
21 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
34 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
17 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
76 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
31 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"> ...
1
vote
2answers
27 views

Magento 2.3 How to override the custom theme's etc/layouts.xml file in recommended way?

There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts). app/code/CompanyTheme/LayoutSwitcher/etc/...
2
votes
1answer
27 views

Removing block from layout doesn't work

I want to remove the register-link from the header links, so I have wrote in the default.xml of the Module_Customer of my theme: <referenceBlock element="register-link" remove="true"/> The ...
0
votes
1answer
44 views

Apply a jQuery whitespace trim to an adminhtml filter input

My goal is to load a simple jQuery function to trim any whitespace in an admin backend filter input. The use case involves a scanner inputting codes with spaces that will turn up no results. I have ...
0
votes
1answer
21 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 ...
0
votes
1answer
52 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
0
votes
1answer
26 views

Magento 2 read custom xml file from third party server and load it in our magento site

I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible. Not any authentication set. <valley street name="jackson"> <item> &...
1
vote
1answer
17 views

Add custom block under long description (product.info.description)

I'd like to add a custom block in description tab just after long description field. I Tried <referenceBlock name="product.info.description"> <block class="Magento\Catalog\Block\Product\...
3
votes
1answer
48 views

Custom Theme XML Files Changes 2.2 to 2.3

Does anybody know if there have been changes to the way XML files from custom themes are included in Version 2.3? I have a very simple XML file to modify the Magento Advanced Search page. The custom ...
0
votes
0answers
12 views

create custome xml in magento 2

i create custom XML file <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:chalaksoft:...
1
vote
1answer
28 views

Remove class on div from empty.xml layout

I am running Magento 2.2. I have custom HTML I want to add to a CMS page. After navigating to the page where this HTML resides, the content is automatically displayed inside a div with class page-...
2
votes
0answers
18 views

Custom feed get only hidden image Magento 2.3.1

I am working on a module which creates an xml feed for a price comparison engine. I need in there to pull only the hidden image of the products that exist in the xml. All products have one hidden ...
2
votes
3answers
26 views

Move block and set template

I succesfully moved the product related block in my page layout with <move element="catalog.product.related" destination="product.info.right" after='-'/> I want now to apply a custom template ...
0
votes
0answers
38 views

Product Form with Custom Datasource not showing default values except image of product in magneto 2 Admin

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
2
votes
0answers
20 views

Changing config/connection type for consumers

I would like to set this consumers: 'async.operations.all' connection type from rabbitmq (amqp) to crontab+sql (message queue & mysqlmq)as default so my setup of external crontab can execute . ...
2
votes
1answer
47 views

what is translate=“label” in xml file what it does?

I am working with Magento XML files and I found translate=" label" <tabs> <training translate="label" module="training"> <label>training</label> <...