Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

Denotes questions about XML files and XML processing.

3
votes
1answer
48 views

Add js file to Magento 2 admin

EDIT: After recreating the folder structure the default.xml worked. It was somehow not loaded. I am trying to add a js file to the backend of Magento 2. I have seen several posts about it and it ...
1
vote
1answer
146 views

Moving grouped product table

I want to move the grouped.phtml table from next to the product image to underneath the image/short description within its own row. So it sits above the description/review tabs. How would it be best ...
2
votes
0answers
55 views

Custom REST API returns duplicate “response” tag

I am struggling because I get an invalid response from my custom API module for Magento 2 (2.2.5). When I send a request to my endpoint via GET with the header "Accept application/xml" (which is ...
0
votes
0answers
21 views

How to debug if magento 1 reach xml file, or xml tag?

When I need to know if magento search a php file or method, I just put Mage::log("controller is loaded"). But, how can I do something like that for xml tags or files? It is really hard to work like ...
0
votes
0answers
40 views

Changing the style of xml widget in Magento 2

Is it possible to change the css style of how the parameters are displayed in the xml widget?
1
vote
1answer
89 views

Layout not loading in the correct order aw_blog module

I'm currently facing a problem where the sidebar for the blog module of aheadworks does not load inside the content. Here's a screenschot My layout.xml is as follow: <?xml version="1.0"?> <...
1
vote
0answers
25 views

Remove/Unset content of CMS page

I have created a custom module which shows some custom product listing and banner data. I have created a system setting to set those things in homepage or use default one. Now what i want if admin ...
0
votes
2answers
196 views

How to disable add to cart in magento 2

I feel like i've read and tried every solution i possibly could and nothing works. I removed from product page by overiding .phtml files in custom theme, easy. I then successfully removed from the ...
0
votes
1answer
17 views

Magento2 Display dynamic data in XML

I have created a custom Tab on the product details page. Now I want to show the count of those articles, like how Reviews count are shown in tab title. <arguments> <argument translate="...
0
votes
0answers
38 views

How to edit and add XML file using PHP

I am trying to edit xml file using php. This is my xml content. <source> <database host="localhost" name="magento1" user="root" /> </source> <destination> <...
1
vote
0answers
45 views

ifconfig does not work in <css /> tags in Magento 2

ifconfig does not work in <css /> tags in Magento 2. 0 (Magento\Framework\Config\Dom\ValidationException): Element 'css', attribute 'ifconfig': <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
16 views

Is it possible to change the layout based on attribute set name?

We have many different types of products on our website and for this reason, I have multiple attribute sets (e.g. default, beds, chairs, sofas). All of the products under these attribute sets tend to ...
3
votes
1answer
1k views

What is the use of the view.xml of theme etc directory

I found this file located in the app/design/frontend/Magento/luma/etc/view.xml Can we depend on this file to make change to the image resolution? Any other specific use of this file. Shall we put ...
0
votes
1answer
143 views

Adding a CSS file which isn't in your custom theme to Layout xml file

We have a stylesheet that is present in a theme from an old website, since we want to keep the same overall template files but only change styles, we want to keep the old stylesheet and add another ...
2
votes
1answer
90 views

how to debug 'page not rendering' in magento 2- possible problem with the xml

How do you debug a page in a custom module. or more to the point. How do you debug whether the xml is rending the correct page content. I am trying to create a page in my custom module, I am able to ...
0
votes
2answers
47 views

Magento 2 - Filter on category

I want to do something like this to add a filter: http://demo-acm2.bird.eu/gear/bags.html How and where to add that ? I've overrided catalog_category_view.xml to have a custom layout: EDIT : to be ...
0
votes
0answers
37 views

Issue to get the image in frontend uploaded using system config in magento 1.9

My issue is I created a system.xml then uploaded images using admin. When uploaded it create default folder on uploaded directory and store the file in it. After adding this script getUrl('...
0
votes
2answers
972 views

Magento 2 Element 'file': This element is not expected

I am getting following error after upgrading magento 2.1 to 2.2.3 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'file': This element is not expected. Line: ...
0
votes
1answer
177 views

Magento 2 : Add Duplicate of Block or Button Somewhere Else

I have an extension for quote in my store, which displays a request a quote button in the cart, when there is content in it. I want the exact same Button at the top in my menu bar. Tried to copy ...
3
votes
0answers
398 views

Magento SOAP Fault “Invalid XML”

When i try to access https://www.example.com/index.php/api/v2_soap/index/ It always gives <SOAP-ENV:Envelope xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-...
6
votes
1answer
409 views

How to modify magnifier small lens and bigger preview

I have modified as follows <var name="magnifier"> <var name="fullscreenzoom">2</var> <!-- Zoom for fullscreen (integer)--> <var name="top"></...
0
votes
1answer
36 views

Hide columns under condition when exporting csv

Fyi, I did read from another similar post where I came to a good solution (Setting is system true will prevent it from getting exported). However, my problem is I would like to have two type of csv ...
0
votes
1answer
93 views

Magento catalogProductAttributeOptionManagementV1 AddOption SOAP

I am sending a soap request to Magento and getting an error per below. <?xml version="1.0" encoding="UTF-8"?> -<soap:Envelope xmlns:def="XXX/soap/all? services=...
1
vote
2answers
276 views

Magento 2 : How to pre-fill the value of a textarea (XML)

Here is my text area (admin side) code : <field id="description" type="textarea" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Enter description here</...
2
votes
1answer
101 views

custom widget in custom page footer

looking for some help. I have created a custom page with url: http://localhost/magento2/hello_mvvm/hello/world and here is a code from, view/frontend/layout/hello_mvvm_hello_world.xml code: &...
0
votes
0answers
12 views

Generate custom order file after each order and save it to upload dir?

After each order, how can i generate an xml file of that order (custom layout and data of the file), and then save it to servers upload folder? any ideas on how to do this? Im completely new to this, ...
0
votes
0answers
21 views

Magento2 - Add JS file which can be reinitiated

I'm trying to add a JS file to my DOM which can be resetted with the trigger contentUpdated. I've tried to add the script in the head like this, but I can't seem to find an option in the layout xml ...
0
votes
0answers
198 views

Dropdown My Account / Login

I want to do a dropdown menu on my computer layout (not mobile and tablet). I want this : |--My Account (where I want to click) |--Log in |-- Create I don't know if I need to change in the ...
1
vote
1answer
813 views

Move product info in details tab

I basically want to move the tabs in the product info area. But within the details tab I want all the content of product.info. So I have tried to move the info section which has all short description ...
0
votes
1answer
301 views

How canl I set condition in layout file?

I have layout file have block like this <referenceContainer name="sidebar.additional"> <block class="Partsoto\CategoryCustom\Block\Search" name="category.custom.replacement.search" before=...
0
votes
0answers
244 views

Warning: DOMDocument::loadXML()

I did a reinstall of Magento 2 and when installing my theme I got this error: Warning: DOMDocument::loadXML(): Empty string supplied as input in /opt/bitnami/apps/magento/htdocs/vendor/magento/...
1
vote
0answers
192 views

Magento 2: How to add custom attribute in an admin field?

I created a new field using the file system.xml, but I need to add a custom attribute, for example, data-mycustomattr="true". You can see an example on this image below, the console shows a custom ...
0
votes
2answers
41 views

CSS custom not added

I have this structure : |-app/design/frontend |-Magento |-Theme |-layout |--default.xml |--default_head_blocks.xml |-Magento_Theme |-templates |-web |...
0
votes
0answers
45 views

XML sitemap redirects to HTML sitemap after change

I have a strange issue where when you visit www.website.com/sitemap.xml or www.website.ca/sitemap.xml, it shows the sitemap as an html page. The following has been added to my .htaccess : #Sitemap: ...
1
vote
0answers
24 views

Toggle data in xml for ui_configuration

I want to be able to enable/disable the following ui_configuration fieldset via configuration conditions. Much like an ifconfig. I know I can provide a boolean item named 'disabled' in ordered to ...
0
votes
1answer
60 views

Magento Config XML Path

In my custom module I have added a tab to the admin configuration section to manage service providers for an external service. I have creted the following group in my system.xml of my module: <...
0
votes
1answer
74 views

Magento 2 overriding a vendor xml file

I want to override an xml file of an extension module into my custom module, how can I do it?
0
votes
1answer
78 views

How to use dev:xml:convert?

I'm exploring the Magento 2 CLI and I don't know how could I apply the command below in real life? bin/magento dev:xml:convert Can you show me some example? Thanks!
0
votes
2answers
540 views

Adding block into an existing template

I'm trying to add some content of my block into the sales/order/history part. I have this: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
2answers
1k views

Create plugin LayoutProcessor::process vs override checkout_index_index.xml

To add a custom field, I can create a plugin and it will add input on the checkout. 1) Create plugin LayoutProcessor::process Exapmle : Namespace/Module/etc/frontend/di.xml <config xmlns:xsi="...
2
votes
0answers
453 views

Magento 2 How to add Magnifier to product list page?

I have enabled Magnifier to product detail page from theme etc/view.xml <var name="magnifier"> <var name="fullscreenzoom">20</var> <!-- Zoom for fullscreen (integer)--> ...
0
votes
0answers
46 views

Custom register form

I want to create a custom register form. But, the user can only create an account if he is in my XML File. For now, I get the information of the user from my XML. Then I want to use this ...
1
vote
1answer
61 views

Get source xml of error

Is there a way to resolve any xml-file that causes an error? I cannot find the source file that causes this error (happens on checkout): Magento\Framework\Config\Dom\ValidationException): Element '...
0
votes
0answers
503 views

Magento 2 - Admin UI Component drag and drop rows example XML

I have a table that displays and fetches data from the database working fine. I have been searching for examples of how to layout the XML file to add drag and drop to the rows but just can't work it ...
0
votes
1answer
200 views

Move block to a different reference block

I need to move a subscription block from MageMonkey module. Here is the magemonkey.xml file and block that I want to move: <checkout_onepage_review> <reference name="checkout.onepage....
0
votes
1answer
53 views

Magento OnePageCheckout | Adjust layout

I want to move the Ebizmarts_MageMonkey_Block_Checkout_Subscribe block to be under Mage_Checkout_Block_Agreements. What would be the best way to approach it? Here is a screen shot of current layout: ...
0
votes
2answers
343 views

Magento custom block not showing on frontend

I'm trying to create custom block to show some info on the page, but got some weird issue that this block not showing. Already broke my brain by trying to debug why. There are some code snippets: ...
0
votes
2answers
45 views

Finding Where Modules Are Coming From

I am using a third-party theme called Porto. It has a slider on the main screen, and I can't figure out which files are used in displaying it. Turning on backend template hints doesn't help located ...
8
votes
7answers
3k views

Magento2 How to move toolbar

Anyone have any idea about How to move toolbar before left and right sidebar in magento2 using XML? Currently it is showing in Right side-bar.
0
votes
1answer
588 views

Magento 2.2 Store Selector not showing on the front end?

I've literally put this in my theme's default.xml file: <block class="Magento\Store\Block\Switcher" name="store_switcher" as="store_switcher" template="Magento_Store::switch/stores.phtml"/> ...