As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
1 vote
2 answers
774 views

How to disable button url in Magento 2?

I tried to put # places of the url, but the url still works and e.stopImmediatePropagation () with js also didn't help. Is there any way to do this through xml or otherwise? Thanks <item name="...
Robinio's user avatar
  • 749
2 votes
0 answers
210 views

Magento 2 Export all coupon codes in the XML format

Like sitemaps, I wanted to export/ get all active coupon code/ cart rule in XML format. Please guide me how to do it?
temper's user avatar
  • 974
2 votes
1 answer
636 views

How to access a variable declared in a phtml from another phtml?

I have inserted two blocks in the catalog_product_view.xml file: <block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-...
Max's user avatar
  • 176
1 vote
0 answers
356 views

Magento 2.3.2 LayoutXML Update remove canonical

Under Stores > Configuration > Catalog > Catalog, We have "Use Canonical Link Meta Tag For Categories" set to "Yes" There are a couple of category pages that we want to edit the Canonical Link for. I ...
meweb432344's user avatar
2 votes
4 answers
1k views

How to remove tooltip from email field on checkout

Tell me how to remove tooltip from the checkout email field. I tried this way app/code/Dv/Tooltip/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
ann karsksya's user avatar
2 votes
0 answers
52 views

Unit Test for XML code Changes in Magento 2

We can run Unit test cases for PHP classes in Magento 2 using phpUnit. I would like to know how to configure and run Unit test cases for XML files like cms_block_form.xml or any other XML files ? ...
Aji's user avatar
  • 180
2 votes
2 answers
2k views

How to fetch post method xml data in Magento2 controller

We have to implement the punchout concept in magento2. There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
Nagaraju Kasa's user avatar
2 votes
0 answers
302 views

Magento 2 Build Xml Request For External API

I would need to pass request payload in XML format for a web service. Below is the code I tried. How do I verify & view XML is constructed properly? Is there a better Magento way to create an ...
blakcaps's user avatar
  • 1,965
0 votes
1 answer
391 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
Litsher - Nathan's user avatar
2 votes
1 answer
2k views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
2k views

How to add a custom action to a xml button inside a listing element in ui_component? Magento 2

I have a custom module with a view folder. In this view folder, there is a ui_component folder with an XML file called mobileplans_listing_xml. This XML file is creating a listing element as the ...
R.P.'s user avatar
  • 99
1 vote
2 answers
696 views

Move add to cart to below price (and above description) Magento 2.2.5

How can I move the add to cart button immediately below the price in Magento 2? I presume it's an XML update but I am unsure of the code required. I want to move it from under the description to ...
YorkieMagento's user avatar
1 vote
2 answers
2k views

Add custom row to Order View on Frontend Magento 2

I have my own custom discount, and on checkout I can use it. When I place the order, I see that grand total is changed, but me need to show discount. I want to paste it between subtotal and shipping.
Віктор Шуст's user avatar
1 vote
1 answer
843 views

Magento 2.3 - Can not hide account navigation links based on customer groups

I'm trying to hide account navigation links based on customer groups. In order to hide the links, I have installed a module https://github.com/KishanSavaliya/magehelper-magento2-hide-account-sidebar-...
MagentoDev's user avatar
0 votes
0 answers
36 views

How the Quotes enter between the URL written in the default.xml file?

I have created a block for the header. And it contains static page URLs. I have added the URLs from the Theme default.xml. Here is the code. <block class="Magento\Framework\View\Element\Html\Link" ...
Akhil Anand's user avatar
0 votes
2 answers
3k views

Magento 2 - Add Class to ReferenceBlock

I need to add a new class to a referenceBlock, specifically the nav items in the Account Page. <referenceBlock name="customer-account-navigation-account-link"> <arguments> ...
Developer's user avatar
0 votes
2 answers
152 views

product detail page - move block to primary product container

I would like to move the static block (a custom block from infortis ultimo theme) block_product_secondary_bottom to the container_product_primary_1 container after product.info.price. How do I do that?...
Mage Explorer's user avatar
2 votes
4 answers
3k views

Magento2.3: How to upload profile picture and show it on My Account dashboard?

We have customized the My Account dashboard with our own design. Now we wanted to implement the profile picture option while the customer do the registration. After the registration, in My Account ...
MagentoDev's user avatar
0 votes
1 answer
979 views

Magento 2 backend error

Got this problem after installing new module using composer. Module has been removed already but error still is present. This error appears only after trying to log into backend. Frontend as well as ...
Lauris Kārkliņš's user avatar
0 votes
1 answer
399 views

Add custom field in shipping address form of Checkout for Magento 2?

Below I have a shipping address form of checkout page and I would like to add another field (P.O. Box) in this form. I tried to look it up every forums and most of the answers were based on overriding....
J. Doe's user avatar
  • 249
0 votes
1 answer
46 views

I am trying to add a phtml through xml. But I can not add. Code shared below

trying to add a phtml through xml to account page sidebar. but i am not getting it right. the xml code is:
Chandan Sayed's user avatar
1 vote
1 answer
118 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 ...
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
687 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 ?
Mukesh's user avatar
  • 115
0 votes
1 answer
65 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 ...
Badong's user avatar
  • 81
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....
Dipesh Rangani's user avatar
1 vote
1 answer
80 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. ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
975 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:...
skywalker's user avatar
0 votes
1 answer
182 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 ...
Nafsss's user avatar
  • 720
3 votes
0 answers
35 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> ...
Craig's user avatar
  • 2,610
1 vote
1 answer
400 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?
Rafael Corrêa Gomes's user avatar
0 votes
2 answers
283 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 ...
WS_Marc's user avatar
  • 13
1 vote
0 answers
163 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? &...
mysterious's user avatar
0 votes
1 answer
393 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 ...
msrz85's user avatar
  • 11
0 votes
1 answer
169 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="...
SebastianT's user avatar
0 votes
3 answers
867 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 ...
Utsav Gupta's user avatar
  • 1,243
1 vote
1 answer
135 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\...
David Duong's user avatar
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', ...
Ali Sultan Khan's user avatar
0 votes
1 answer
3k 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-...
ketan patel's user avatar
3 votes
1 answer
3k 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 ...
Deggial's user avatar
  • 118
1 vote
0 answers
104 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()...
Asad Ullah's user avatar
  • 1,421
0 votes
0 answers
569 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 ...
Peter Vis's user avatar
1 vote
0 answers
57 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
SDAFASDF's user avatar
1 vote
1 answer
450 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 ...
Jayreis's user avatar
  • 707
0 votes
1 answer
86 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 ...
TN98's user avatar
  • 923
0 votes
1 answer
711 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/...
Marcel's user avatar
  • 123
3 votes
1 answer
2k 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 ...
Theodor_D.'s user avatar
3 votes
0 answers
525 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
prabhakaran7's user avatar
  • 1,057
6 votes
0 answers
178 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 ...
Ravenous's user avatar
  • 121
1 vote
2 answers
793 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? :)
Silver's user avatar
  • 119
1 vote
1 answer
286 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"?> &...
prabhakaran7's user avatar
  • 1,057

1 2 3
4
5
24