Questions tagged [xml]

Denotes questions about XML files and XML processing.

293 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
394 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
0answers
72 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
0answers
703 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 ...
5
votes
4answers
3k 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
0answers
933 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
1answer
589 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
629 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
4answers
1k views

How to call module block after header?

I have a module layout file like below <default> <block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" before="-" /> <...
4
votes
1answer
763 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
0answers
50 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 ...
3
votes
0answers
424 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
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/...
3
votes
0answers
1k 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, ...
3
votes
2answers
1k 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> <...
3
votes
3answers
2k views

Disable country field in checkout Magento 2

I tried to disable the country field in checkout but i can't. I already disable few fields like company on checkout page by adding this this <item name="visible" xsi:type="boolean">false</...
3
votes
0answers
479 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
3answers
231 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
2answers
1k 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
0answers
26 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
2
votes
0answers
16 views

Custom feed get only hidden image Magento 2.3.1

I am working on a module which creates an xml feed for a price comparison engine. I need in there to pull only the hidden image of the products that exist in the xml. All products have one hidden ...
2
votes
0answers
17 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
1answer
92 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
0answers
40 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 ...
2
votes
0answers
36 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
1answer
87 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
0answers
75 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
0answers
140 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
0answers
53 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
1answer
125 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
466 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 ...
2
votes
0answers
58 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
0answers
476 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
1answer
59 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
0answers
287 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
0answers
324 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 ...
2
votes
1answer
324 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
0answers
20 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
1answer
173 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 (...
2
votes
2answers
281 views

Can't apply custom layout update to block?

I have a static block identifier named 'can_content_block_ideas' and within that block the following template file is being called {{block type='core/template' template='can/home/featured.phtml}} ...
2
votes
0answers
341 views

Magento 2.2: Add/Remove class in a div from default.xml

How to add or remove a class in the store-switcher div from default.xml ? I tried this : <referenceBlock name="store_switcher"> <arguments> <argument name="...
2
votes
1answer
466 views

Add custom block to product page on 2columns-right In Magento 2

I have changed my page product layout to 2colums-right like this: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-right" xsi:noNamespaceSchemaLocation="urn:magento:...
2
votes
0answers
398 views

Warning: simplexml_load_string(): lib/Varien/Simplexml/Config.php on line 383

I know this is a very general error but i need help getting it fixed. I believe there is an extension with invalid XML and that's the cause of this error. So if i have a syntax error somewhere in an ...
2
votes
0answers
613 views

Magento 2 name attribute shows empty when creating custom fields on product page

When i try to add new fields to product creationg form in Magento 2 the html name attribute shows up empty, I tried more or less everything and by everything i mean: 1) Adding the custom field i ...
2
votes
1answer
371 views

Magento 2 : Debug Xml

I need to work with xml and something doesn't work same it's always. Is there a way to see errors in xml syntax, calls, or something. I don't see nothing in Magento's log, or even in apache's log. ...
2
votes
1answer
420 views

Magento 2 - Override an xml file defined in the etc folder in a theme?

I am attempting to override the email templates for the Aheadworks_Giftcard extension. It seems that the email templates are defined in a xml file in the etc directory called sample_email_templates....
2
votes
3answers
777 views

Can't remove layout blocks. (Magento 2)

Information: I'm using Magento 2.1 on CentOS Linux, my theme is a child of the built-in Luma theme. When the theme I made is active, I want some blocks to be removed. Let's say I want to remove the ...
2
votes
0answers
24 views

How to change the /contact router to something else?

By default Magento2 offers a contact form. This can be reached under http://domain.tld/mage2orwhatever/contact. But we want to have the router to be translated, in our case it'd be kontakt. How can ...
2
votes
0answers
227 views

Move a specific widget to another container via XML

I want to move a specific widget, lets name it demoWidget to the top container, when it is on a site. How can I achieve this? I've thought about this solution, but have no idea how to do it: give ...
2
votes
1answer
441 views

Magento 2: How to move recently viewed

Having problems working out how to move the recently viewed block. I want it to sit above the details/review tabs but can't work out how to move it in the xml?