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.

7
votes
1answer
381 views

Generate get parameter in XML layout Admin

I have a custom extension that generate grid using XML, the problem is that I need to add button which will generate link with a get parameter from get request that passed via url, the xml code for ...
5
votes
1answer
572 views

Magento 2 - assign custom email template to specific payment method

What is the proper way to assign custom email template to specific payment method upon creating an order? For example: When choosing a Bank transfer payment method on the checkout it should send ...
4
votes
1answer
575 views

Magento 2 Blank Layout Page

I tried to create a new tab in customer edit backend. First i create the app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
4
votes
1answer
730 views

XML - Cannot move product.info.review after product.info.overview

I'm trying to do the following, moving product.info.review after product.info.overview (short description) I've used the following code, but it is not working: <move element="product.info.review"...
3
votes
1answer
47 views

Custom Theme XML Files Changes 2.2 to 2.3

Does anybody know if there have been changes to the way XML files from custom themes are included in Version 2.3? I have a very simple XML file to modify the Magento Advanced Search page. The custom ...
3
votes
1answer
2k views

Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login

After successful login, Luma theme shows customer account details in dropdown on header as seen in below image I need to replicate the same in our custom theme which has Blank as its parent. Vendor/...
2
votes
1answer
73 views

Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file

I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to ...
2
votes
1answer
69 views

How to get to know the XML file and its path for that template Path Hint in Magento 2

As we can enable template path hints in settings along with blocks but there is no option to show from which xml file it is coming in the frontend. How should I know which xml file to write to move, ...
2
votes
1answer
114 views

Magento 2: Conditionally process layout XML file

I have an XML layout file, specifically customer_account_login.xml, which is processed automatically by Magento and replaces the out-of-the-box copy. In some cases I would like to do this, while in ...
2
votes
1answer
401 views

Magento 2 custom column sorting not working

I have created custom column in Sales -> Order UI Grid. I have added "Profit" column. Which is not related to any database table and not the attribute. This column display just calculation of ...
0
votes
0answers
22 views

Magento2 Functional Testing Framework (MFTF) - URL not redirecting properly

I want to redirect below page - <amOnPage url="admin/system_config/edit/section/adminconf/" stepKey="navigateToIncommCartTimeout"/> But it is redirecting only admin/system_config/edit/...
0
votes
0answers
25 views

Override function from grouped.php

I am changing the table for a grouped product. I have overridden the grouped.phtml file to make changes. But I need to override the function: getAssociatedProducts($product) // Grouped.php Because ...
0
votes
0answers
14 views

Magento 2.2.5 Conflict when deleting links from the customer account page

When deleting the following links, the block-wishlist-management block is deleted as well when checking the Wishlists on the customer account space. Why? : <referenceBlock name="customer-...
0
votes
0answers
49 views

call breadcrumbs block twice in page.xml magento 1.9

I am trying to call breadcrumbs.phtml file twice through page.xml file. In page.xml breadcrumbs are added here <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">...
0
votes
0answers
101 views

Copy block in XML file

I need to copy the block cart.summary in checkout_cart_index.xml. How can I do this ? I've copied the block and change the same but it not working. (I only have my original block)
0
votes
0answers
14 views

Magento 2 - Move Blocks based on Design Layout Type of Product

I want to have a few layout types for products and control this via either the category and apply to child products or via individual products. I want for example to change to a 2 column view ...
0
votes
0answers
72 views

Loads of system error logs in Magento 1

For instance when i'm clearing cache i get some errors and they are pointing to a core module here: 2018-10-04T15:20:26+00:00 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser ...
0
votes
0answers
52 views

How to generate xml sitemap with new request_path after URL re-write?

I have just updated request_path for the product from www.xyz.com/my_product to www.xyz.com/my_product_new through url rewrite. The request_path is inserted in the database correctly and working ...
0
votes
0answers
153 views

Magento 2: Warning: simplexml_load_string(): Entity: line 1: parser error : XML declaration allowed only at the start of the document

I am using magento 2.0 I have learn magento2 tutorials(No frills magento2 layout) of alan storm. I have create two xml files. when i run controller file then give Following error Warning: ...
0
votes
0answers
14 views

Magento 2: Add custom JS based on product id via XML

I am trying to load a JS-file based on a product id in Magento 2.1.7. I used the following approach: <head> <catalog_product_view_id_1> <link src="css/one.js" /...
0
votes
0answers
85 views

Remove Links from 'My Account' side navigation

I am trying to remove some links from the 'My Account' section of Magento 2.2.5. the links i want to remove are My Downloadable Products Stored Payment Methods Billing Agreements My Subscription ...
0
votes
0answers
29 views

Config returns as plain text, not as xml

I am following this little magento 1 tutorial in which you create a class which shows configs of your entire application. It works fine, showing me all the configs, but i expected to see a nice xml ...
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?
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> <...
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 ...
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
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 ...
0
votes
0answers
246 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/...
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: ...
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 ...
0
votes
0answers
506 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
0answers
121 views

magento 1.7 XML_ERROR: <config/>

I updated a extension in a working magento 1.7.0.2 (running on localhost), after updating it stopped working, so I got back with git and restored the database. After going to the previous version and ...
0
votes
0answers
465 views

Call to a member function count() on null when loading Gallery

Im using Amastys Gallery plugin to implement into a tab on the product page, however the above error has come up when I pasted the code into my custom template. I have called my tab in the local.xml ...
0
votes
0answers
23 views

How to find current xml loaded in product page

I understand the magento 2 template engine but I have difficulties in find the current xml loaded in the product page. I have searched in the template folder for catalog_product_view.xml, I have ...
0
votes
0answers
1k views

Exporting all products in a xml file

I would like to export ALL of my products and their fields into an XML file. I tried this but didn't work. I'm using Magento 1.9.
0
votes
0answers
60 views

Change the footer on the homepage

I would like to change only the footer of the homepage, I know how to change only one page per xml, but according to module, controller and etc, how would you do that for homepage? Display a ...
0
votes
0answers
102 views

Magento2 XML: How to replace an <item> definition by another

In order to change the checkout page summary item info, I need to replace in checkout_index_index.xml the following line <item name="component" xsi:type="string">Magento_Checkout/js/view/summary/...
0
votes
0answers
92 views

Payment method custom module

How to duplicate config.xml file for payment methods custom module in magento1.9.
0
votes
0answers
122 views

Adding script that is not in a .js file in the <head> Magento 2 without using 'misc scripts' in admin

I have some js script which I'd like to place in the section of my Magento 2 site. I do not want to add in 'miscellaneous scripts' section. I want to add this in my themes default.xml file. However, ...
0
votes
0answers
3k views

sidebar and sidebar additional Magento2

In default /vendor/magento/module-theme/view/frontend/page_layout/2columns-left.xml file is next code <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
0answers
163 views

layout xml does not load

I have a module with below details, for some reason layout xml files does not load. I can make this out, because the js and css mentioned in the layout files are not getting loaded. /var/www/html/...
0
votes
0answers
680 views

Magento 2 moving the sku on product page

I'm trying to move the sku on the product page but no matter what i do it sits at the top when I would like it at the bottom: XML: <page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
57 views

Add content to media.phtml without modifying the code

I have added custom code to media.phtml. media.phtml shows the product image. The product images get cached and therefore my custom code is getting cached also and I do not want it to be. What I ...
0
votes
0answers
58 views

How do I change Magento Success Page XML layout?

This is the content of my layout: <checkout_onepage_success> <reference name="content"> <remove name="checkout.success"></remove> <block type="...
0
votes
0answers
424 views

Change app/etc/local.xml programmatically (simplexml?)

does anybody know the best way to change a node in local.xml within a custom module? Is there functionality within magento I can use or do I need to focus on a simplexml function in php? Currenly I ...
0
votes
0answers
435 views

Magento2 attributes construct error in Entity

I have made a dummy module in Magento2 , just wanted to observer cart add event, but while making few files i am getting this error a:4:{i:0;s:168:"Warning: DOMDocument::loadXML(): attributes ...
0
votes
0answers
145 views

Shopping cart and checkout in 1 page

How do I put shopping cart and checkout in the same page? I don't want any extensions. I want to do it in XML, but I don't how to do it.