Questions tagged [xml]
Denotes questions about XML files and XML processing.
1,210 questions
0votes
1answer
29views
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/#...
0votes
1answer
25views
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="...
0votes
2answers
64views
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/...
0votes
0answers
26views
Add layout update in category not working magento 2.2.11
I am just trying to add a custom layout update to one category. When I click in this category on design->layout update xml there nothing happens and there is always "no update" to see. I ...
0votes
0answers
29views
How to add a file uploader field in the Product form using PHP UI component Data Provider?
I'm working on a dynamic product row attribute in Magento 2, and I've successfully added multiple fields. Now, I want to include a video uploader field in the product form. The text fields are ...
0votes
0answers
40views
Updating cms_page_view but not cms_index_index htmlClass
Trying to update all cms_page_view pages except for cms_index_index layouts. E.g. on Magento_Theme/page_layout/cms_page_view.xml <referenceContainer name="columns" htmlClass="columns ...
0votes
1answer
46views
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,...
0votes
0answers
51views
xml update with current category variable
How can I insert "currentcategory" variable instead of 504 in category_ids ? <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
0votes
1answer
18views
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/...
-1votes
2answers
57views
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"?> <!-- /** * ...
0votes
1answer
77views
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 ...
0votes
1answer
54views
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 ...
1vote
0answers
80views
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, ...
1vote
2answers
40views
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"> ...
0votes
2answers
66views
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"> ...