Questions tagged [xml]
Denotes questions about XML files and XML processing.
1,209 questions
0
votes
1
answer
44
views
Problem when modifying inherited theme
/home/pedromontesi/Documentos/magento/src/vendor/magento/theme-frontend-luma/Magento_Theme/layout/default.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/...
0
votes
2
answers
155
views
XML Error: "Element 'publisher', attribute 'queue': The attribute 'queue' is not allowed. " in Module magento/module-negotiable-quote
I started to have this error when logging into the Magento storefront (url= /customer/account/loginPost/referer/):
1 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): ...
0
votes
0
answers
73
views
ModSecurity: XML parser error: XML: Failed parsing document
I am trying to add a product on Magento ver. 1.9.2.4. using SOAP API:
https://www.domainname.com/index.php/api/v2_soap/
using the following XML:
<soap:Envelope xmlns:xsi="http://www.w3.org/...
0
votes
1
answer
116
views
HTML & W3C Validation errors - Unable to fetch the errors from Markup Validation Service
I've been assigned the task of fixing the HTML and W3C validation errors. Of course, before I can fix them, I need to verify the errors first.
So I navigate to the URL:
https://validator.w3.org/#...
0
votes
1
answer
60
views
Tie dynamic fields from custom phtml block to Product Edit Save request
I have created a custom block on my Product Edit admin page by adding this to product_form.xml:
<fieldset name="my_custom_fields">
<argument name="data" xsi:type="...
0
votes
2
answers
168
views
DOMDocument::loadXML(): Argument #1 ($source) must not be empty
My exception log in magento 2.4.7-p3 if full of:
main.CRITICAL: ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /home/public_html/vendor/magento/framework/View/Element/...
0
votes
1
answer
79
views
How can I write XML data to an XML file?
I am generating XML data that I need to write to an XML file and store in a directory on the server, making it accessible for future use. What is the best approach for writing this data to an XML file,...
0
votes
1
answer
43
views
How to change the magento2 layout to all options in the personal area?
is there a faster way to change the layout from 2columns-left to 3columns to all the personal area pages (account, wishlist, orders etc..) ?
i just got done creating this file:
app/design/frontend/...
-1
votes
2
answers
86
views
how to add sidebar.additional in search page?
I don't know how to add the sidebar.additional in the search page, can anyone help?
here's what i tried so far in catalogsearch_result_index.xml :
<?xml version="1.0"?>
<!--
/**
* ...
0
votes
1
answer
141
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 ...
0
votes
1
answer
108
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 ...
1
vote
0
answers
113
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, ...
1
vote
2
answers
70
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">
...
0
votes
2
answers
83
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">
...
0
votes
2
answers
113
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 ...