Questions tagged [xml]
Denotes questions about XML files and XML processing.
332
questions with no upvoted or accepted answers
9
votes
1
answer
2k
views
Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar
I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
8
votes
0
answers
1k
views
How to extend core UI Component in Magento 2
I've tried to bring the Sales -> Shipments grid into my extension. It works fine when I use this in my layout file .xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3....
7
votes
1
answer
847
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 ...
6
votes
0
answers
180
views
Inconsistent package.xml - Magento 1
I tried finding a Slack or Discord server for Magento before coming here.
I am trying to submit a Magento 1 extension for technical review @ marketplace and the package.xml won't pass marketplace ...
6
votes
2
answers
3k
views
Magento2: How to add separate css file on each cms page?
Is it possible to add individual CSS file on each cms page? Upon researching, I can do it by adding code on Layout update XML.
Unfortunately, it isn't working. Here's my code:
<head>
<...
5
votes
3
answers
2k
views
Facing issue when running the command php bin/magento setup:upgrade
Facing issue when running the command php bin/magento setup:upgrade
The XML in file "D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml" is invalid:
Element 'topic', ...
5
votes
4
answers
5k
views
Magento 2 - Backend custom module 404 error
I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
5
votes
0
answers
2k
views
Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns
What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
5
votes
1
answer
1k
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
0
answers
95
views
Product's "Layout Update XML" code disappears from the site every 24 hours
I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
4
votes
1
answer
2k
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
2
answers
6k
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/...
4
votes
0
answers
2k
views
Magento 2 - Overwrite di.xml for Core Cms module
I've looked and looked, but can't find anything explaining what i need to do.
Problem is, i want to add an svg file to the image uploader in the WYSIWYG. I know i need to extend the core to do this, ...
4
votes
4
answers
2k
views
How to call module block after header?
I have a module layout file below
<default>
<block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" ...
4
votes
1
answer
2k
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
0
answers
38
views
Ordering JS/CSS load order across multiple xml blocks
When rendered, the below core XML loads the require.js file in (for example) Position 10 in the HTML Source:
vendor/magento/module-theme/view/frontend/layout/default_head_blocks.xml
<head>
...
3
votes
0
answers
655
views
how to add default filter in magento admin ui component in magento 2
Hi I want to filter the admin grid data in default Magento 2
how to add default filter in Magento admin UI component in Magento 2
3
votes
1
answer
101
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
0
answers
167
views
Magento 2 - product details tab title as an clickable link url to another page
How to make the product details tab title is clickable link, and grab the SKU from the current product page to the link?
For example, I created a custom product tab called "Download", and when ...
3
votes
0
answers
1k
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-...
3
votes
0
answers
424
views
How can I change grand total when user Clicks on Custom Payment method?
I am using the one-page checkout module. I want to change the grand total when user/customer selects the payment method.
If customer/user selects the online payment option then grand total should ...
3
votes
1
answer
2k
views
Magento2 : How to add <item> in XML <block> <arguments>
I would like to update the following layout .xml :
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<...
3
votes
0
answers
499
views
Magento 2: Customer session not getting on enabling cache in backend
This is my XML file.
<referenceBlock name="category.products.list">
<action method="setTemplate">
<argument name="template" xsi:type="string" cacheable="false">Company_Module::...
3
votes
3
answers
441
views
What are the possible Argument Namespaces for Logos
I am tweaking my theme using the xml approach.
I have this xml code:
<referenceBlock name="logo">
<arguments>
<argument name="logo_file" xsi:type="string">images/my-...
3
votes
2
answers
2k
views
Magento Container not working in custom layout
I have created a custom XML layout page that I will be using for my home page. Right now it is a clone of the normal 1column.xml layout, and I'm trying to add a container for an image slider.
Here is ...
2
votes
1
answer
284
views
How to move the block under the sidebar in the payment step of checkout
I have a block that I display on the checkout at the bottom of the page
<referenceContainer name="page.wrapper">
<block class="Magento\Framework\View\Element\Template" name="...
2
votes
1
answer
284
views
Magento 2 admin Uncaught TypeError: this.linksFieldset(...).visible is not a function
When we edit product from admin then its showing loading continue and also getting this error
"Uncaught TypeError: this.linksFieldset(...).visible is not a function"
is showing error in console. We ...
2
votes
0
answers
259
views
Magento 2 Export all coupon codes in the XML format
Like sitemaps, I wanted to export/ get all active coupon code/ cart rule in XML format.
Please guide me how to do it?
2
votes
0
answers
61
views
Unit Test for XML code Changes in Magento 2
We can run Unit test cases for PHP classes in Magento 2 using phpUnit.
I would like to know how to configure and run Unit test cases for XML files like cms_block_form.xml or any other XML files ?
...
2
votes
0
answers
322
views
Magento 2 Build Xml Request For External API
I would need to pass request payload in XML format for a web service. Below is the code I tried.
How do I verify & view XML is constructed properly?
Is there a better Magento way to create an ...
2
votes
1
answer
42
views
Changing config/connection type for consumers
I would like to set this consumers: 'async.operations.all' connection type from rabbitmq (amqp) to crontab+sql (message queue & mysqlmq)as default so my setup of external crontab can execute .
...
2
votes
1
answer
764
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
0
answers
234
views
Solved: Layered Navigation of Parent Categories
The layered navigation of the Child Categories it's working okay. The problem is with Parent Categories.
I'm trying to have the same filters on Parent Categories but i still can't solve it.
What I ...
2
votes
0
answers
2k
views
Exception #0 (Exception): Notice: Undefined index: id in \vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63
1 exception(s):
Exception #0 (Exception): Notice: Undefined index: id in C:\wamp64\www\codility-magento-market-place\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63
...
2
votes
1
answer
1k
views
Magento 2 - Move Block Not Working
I've created a faqs.xml for a bespoke page template and this is my code:
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
2
votes
1
answer
500
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
1
answer
1k
views
Element 'argument': The type definition is abstract and The state object to be removed is not the first in the list
I'm throwing this error on my /success/ page and it seems like such a generic error. It looks like further down the trace it's pointing to stuff like GoogleTagManager and other third-party modules ...
2
votes
0
answers
653
views
Syntax for overriding config.xml module configuration with config.php in magento2?
I have a module MyCompany_ExampleModule. Its etc/config.xml file:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/...
2
votes
0
answers
143
views
How to trim text before saving in system.xml
In my custom module in system.xml in Admin I have field:
<field id="user_key" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label&...
2
votes
1
answer
36
views
Is it possible to display an XML Block based on an IF?
I use the below code in a module within catalog_product_view.xml to display a new Tab on the Product Page.
<body>
<referenceBlock name="product.info.details">
<block class="...
2
votes
1
answer
586
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
1
answer
696
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
0
answers
263
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 ...
2
votes
0
answers
695
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)-->
...
2
votes
1
answer
162
views
module.xml active attribute
Sometimes in module.xml the attribute active="true" is used but I could not find out what difference it makes to use it or not.
<module name="xxxx" schema_version="0.0.1" active="true"/>
2
votes
0
answers
930
views
Get upload_dir for custom system configuration file upload || getFieldConfig for custom system configuration
Im trying to add a file_upload to my custom module system configuration.
The backend part works flawlessly and im able to upload the files to the directory i want them to.
But i cant read the file ...
2
votes
0
answers
355
views
How content from layout_update table is set?
I have a row in the layout_update table that adds element to pages. I'd like to know how [some xml] from this row was set in the backed:
id | handle | xml | sort_order | updated_at
194 | ...
2
votes
1
answer
992
views
Set page title without using deprecated <action>
Every answer I can find for setting the page title (H1 tag not the tab title) uses this format:
<action method="setPageTitle">
<argument translate="true" name="title" xsi:type="string"&...
2
votes
0
answers
32
views
missing XML start tag in theme.xml
Normally a XML file always needs at least the following starting line:
<?xml version="1.0"?>
The theme.xml files in the official distribution lack this tag, see for example the luma theme's ...
2
votes
1
answer
294
views
Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1
I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose.
Here's what I'm doing:
Order # 100096149 | Jan 8, 2018 3:51:07 PM (...