Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Magento 2 : Dynamic XML entity attribute value

I am setting up a module to run on Magento 2.4.6-p5 multi-website instances. The module requires that a dropdown category attribute be setup with a default value and n other options (1 initially). I ...
James Baker's user avatar
0 votes
1 answer
25 views

how to change position to sorter.phtml block?

i'm trying to move this UI element vendor/magento/module-catalog/view/frontend/templates/product/list/toolbar/sorter.phtml from its original position to the right side of the screen inside another ...
media.queeries's user avatar
0 votes
0 answers
15 views

How to change website's header frontend layout?

we were just given a new UI for our website and we need to make some radical changes to our theme; one of them being changing the header's container from one colum-horizontal to 3 columns-vertical. We ...
media.queeries's user avatar
0 votes
0 answers
20 views

Remove Type and Arguments from di.xml

How do you remove a Type and the associated arguments from a di.xml file? Specifically, I would like to remove the "Apple Pay" button from the Shopping cart. I have found the below code, ...
A. Andersen's user avatar
0 votes
0 answers
17 views

Override Braintree Config.xml via Custom Module

Below is an except from vendor/paypal/module-braintree-core/etc/config.xml and I am curious how to add new credit card to, <cctypes_braintree_mapper> via a custom module. Is this done via a di....
A. Andersen's user avatar
0 votes
0 answers
11 views

XML formatting problem: Aligning 'Options' at the same level as 'Lines' instead of nested within

I am working on a Node script that creates an XML file using data it has pulled from the Magento api. This xml file has a set structure that I have to replicate. I've been having issues getting it set ...
atomic-ag's user avatar
1 vote
2 answers
37 views

Place DIV or SPAN class inside stock available

How can I place a div or span class inside stock available with custom xml. Would like custom block next to INSTOCK. <body> <referenceBlock name="product.info.stock.sku"> ...
Shaun's user avatar
  • 109
0 votes
2 answers
59 views

Place div next to or under in stock

How can I place a div between in stock and sku using xml for custom block. I can only seem to place it after sku. <body> <referenceBlock name="product.info.stock.sku"> ...
Shaun's user avatar
  • 109
0 votes
2 answers
63 views

Difficulty Overriding Magento 2 File

I am new to coding in Magento 2. I am trying to override a file using this guide https://webkul.com/blog/overriding-rewriting-classes-magento2/, and my file compiles without error, but changes don't ...
Jack's user avatar
  • 3
0 votes
2 answers
59 views

How to override checkout_index_index.xml

this is the file present in my app/design dir. i need to disply shipping address section on right side bar and move the product overview section from right side bar to the place of currenct shipping ...
Harris's user avatar
  • 1
0 votes
0 answers
22 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 ...
Jack's user avatar
  • 3
0 votes
0 answers
34 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\...
Arun Suryavanshi's user avatar
0 votes
0 answers
27 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 ...
Juan Gaytan Sustaita's user avatar
0 votes
1 answer
75 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/" ...
Sifina's user avatar
  • 1
0 votes
0 answers
41 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'...
Nicholas's user avatar
0 votes
0 answers
31 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/<...
Fox's user avatar
  • 211
0 votes
0 answers
42 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 ...
TheAgent's user avatar
0 votes
0 answers
18 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 ...
A. Andersen's user avatar
1 vote
2 answers
342 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=&...
Rubel Parvaz's user avatar
0 votes
0 answers
53 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 ...
Urus221's user avatar
0 votes
2 answers
93 views

In Adminpanel di.xml for graphql [closed]

Autosmart\CategoryAttributes\Model\Resolver\CategoryAttribute resolve
Noor Mohamed's user avatar
0 votes
0 answers
103 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 ...
Alfredo Esteban Hernndez Dvalo's user avatar
0 votes
1 answer
42 views

How to override a node in an xml file of a ui_component

I have this xml file in some third party module having this content <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&...
Bob's user avatar
  • 11
0 votes
2 answers
156 views

Rename export csv file

Is there a way to rename the default export.csv filename to another filename? I'm using the magento 2 export in my listing.xml
jsnewbie21's user avatar
0 votes
2 answers
3k views

DOMDocument::loadXML(): Argument #1 ($source) must not be empty in DomMerger.php

Keep getting this error in exception, no solutions to find on the internet: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /vendor/magento/framework/View/Element/UiComponent/Config/...
Harish kuril's user avatar
0 votes
1 answer
82 views

Prevent XML file in media directory to be cached

We are generating a custom XML and stored in the media directory to be accessed by URL. La full URL of the XML have this structure: https://[maindomain.com]/media/googleshopping/googleshopping4-1.xml ...
Eliacim DAVILA - CENSERE's user avatar
1 vote
2 answers
91 views

How to double extend Magento_Checkout/js/view/summary/item/details in Magento 2

is it possible to extend a new checkout_index_index.xml on top of already existing one I created a projectA/app/design/frontend/MageBig/martfury/projecta/Magento_Checkout/layout/checkout_index_index....
Mohd Farhan Bin Ramli's user avatar
1 vote
0 answers
602 views

Magento 2 - Add custom form to admin sales order create

I'm trying to add a form to the admin sales order create page. When I create a new order i cannot see my form but if i refresh the page the form is available. i added code to sales_order_create_index....
Stas Tismenetski's user avatar
0 votes
1 answer
211 views

How to add data to custom validation rule?

I would like to understand how to add additional data to custom validation rule. I noticed in Magento 2 core files something like the following: validator.addRule( 'validate-...
krisjanis-a's user avatar
0 votes
2 answers
704 views

Magento 2: Add block to cms page with / in the url key trough xml

Magento 2: I'm trying to add a block to a cms page with a layout overwrite. The problem is the url key has a / at the end which can not be removed. So the url key is uber-uns/ If i remove the / as a ...
Sanne's user avatar
  • 1,316
0 votes
2 answers
104 views

Custom Header Link Layout Update

I have added the below code to app/design/frontend/Company/Theme/Magento_Theme/layout/default.xml but the link is not appearing in the header. Can someone please tell me what I am missing? <...
A. Andersen's user avatar
0 votes
2 answers
51 views

routes.xml complains about empty tag, which is obviously not empty

I have python background so its really hard for me to get my hands on magento2, since I've never touched php/xml/js etc. before. Currently I just want to add a button in admin backend, which leads to ...
kekw's user avatar
  • 103
0 votes
1 answer
63 views

What is the file I have to debug to know how Magento load all file di.xml from all core module and custom module?

I understand that Magento will read all di.xml files and the output will be an array. I want to know where this code is so I can debug and dig deeper into it. Any help? Thanks.
Shou's user avatar
  • 160
0 votes
1 answer
54 views

Remove column xml uicomponent if condition is true

I have 2 columns in xml with js component, but i want display each column if condition is true, so if precio_anterior is not empty and value is different to 0 show precio_anterior column if not, show ...
Diego Castro's user avatar
1 vote
2 answers
37 views

Custom Page Module with existing theme template?

Is there a way to use a template from a third-party theme, that is already installed, with a newly created custom page module?
A. Andersen's user avatar
2 votes
1 answer
331 views

PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in

magento.cron log return error: PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /home/mall/domains/myweb.com/public_html/vendor/magento/framework/Config/Dom.php:449 Stack trace: #0 /...
Sylvester's user avatar
  • 2,234
1 vote
1 answer
15 views

Point admin button url to different custom module

<item name="label" xsi:type="string" translate="true">Add New Row</item> <item name="class" xsi:type="string">primary<...
Shaun's user avatar
  • 109
0 votes
2 answers
306 views

Cannot insert custom block into 'product.price.final' in XML

Here is my catalog_product_view.xml: I want to insert one CustomBlock to this final price block, so i can use getChildHtml() to call in template final_price.phtml, but it does not work so far, why ? &...
Rita555-Simon's user avatar
0 votes
1 answer
1k views

Pagebuilder WYSIWYG/Textarea showing full master.html template after saving page

I have created a custom pagebuilder component with a WYSIWYG editor (also tried with Textarea), but after saving the page in admin, the WYSIWYG is showing the full html output from master.html I would ...
Alex Berger's user avatar
1 vote
1 answer
244 views

How to remove particular filters from a specific category?

I want to remove the color and price filter only for the specific category in Magento 2.4.3-p1. I created a separate XML file (catalog_category_view_id_{category_id}.xml) and apply the below code. &...
Sanjay Gohil's user avatar
  • 2,200
0 votes
1 answer
112 views

Add a template content to detail tab

I want to add some content within the product detail tab. I created my template below <referenceContainer name="product.info.details"> <block class="Magento\Catalog\...
ugo roubzy's user avatar
1 vote
2 answers
784 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? ...
Simon's user avatar
  • 5,736
0 votes
1 answer
205 views

xml to extract data in php

Her are my code. I can't able to get full data in array format. Only Url get this php code. Where am I wrong. $sitemap = 'videomap-1.xml'; $context = stream_context_create( array( "...
Vipul Jethva's user avatar
0 votes
2 answers
151 views

What is the product attribute for product ID?

Every product recieves a unique ID, shown on the left on the product page screenshot. I do not choose this nunmber, the number is assigned by the system. Now I am trying to create a pricefeed with XML ...
Alexander 's user avatar
1 vote
1 answer
438 views

how to override TTL value from theme or module?

<block class="Vendor\Demo\Block\Menu" name="navpro.topnav" template="Vendor_Demo::menu.phtml" ttl="3600" before="-" ifconfig="Demo/top/...
Krishna Bhudiya's user avatar
0 votes
3 answers
376 views

How to hide top Navigation link My Account when signed out but still show up when signed in?

I have been looking around on others solutions but I can't seem to find any fix with my issue. I want to hide My Account link when your signed out. But I want to show it when your signed in. I have ...
i37Ow's user avatar
  • 3
0 votes
1 answer
1k views

Magento 2 - CSP whitelist not work for subdomain

I have whitelisted all the resources that come from facebook inside the csp_whitelist.xml file and for my main domain: www.magento2.com works without problems. But for my subdomains the csp_whitelist ...
Jackom's user avatar
  • 493
0 votes
1 answer
18 views

Control manditory fields for customer create from adminside

how to add custom rule from js for firstname in magento2? <validation> <rule name="required-entry" xsi:type="boolean">true</rule&...
Ajith's user avatar
  • 66
0 votes
1 answer
122 views

Why I can't edit XMLs in my Custom Layout Update via CMS?

I had layout updates via XML configurations per CMS page via admin panel as you can see below. After updating my Magento 2.3 I got another option instead. How could I add my layout changes with an ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
395 views

How to avoid JS minification in an external file add via requirejs-config.js?

I have a custom module called Quicklink it has its own JS files and external JS files too, I've added an external JS from a third-party CDN, but when I enable the JS minification in a Magento 2 clean ...
Rafael Corrêa Gomes's user avatar

1
2 3 4 5
25