Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

Magento 2.3.2 LayoutXML Update remove canonical

Under Stores > Configuration > Catalog > Catalog, We have "Use Canonical Link Meta Tag For Categories" set to "Yes" There are a couple of category pages that we want to edit the Canonical Link for. I ...
1
vote
1answer
28 views

How to remove tooltip from email field on checkout

Tell me how to remove tooltip from the checkout email field. I tried this way app/code/Dv/Tooltip/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
0
votes
3answers
611 views

I have create system.xml for system config value but not work

I have created one extension now i released i have also need some system config value where user can easily to handle this module. so i have created system.xml in adminhtml folder but its not work ...
1
vote
0answers
51 views
+50

Magento 2 Build Xml Request For External API

I would need to pass request payload in xml format for an 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 XML ...
1
vote
1answer
80 views

How to fetch post method xml data in Magento2 controller

We have to implement the punchout concept in magento2. There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
2
votes
0answers
15 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 ? ...
3
votes
2answers
2k views

Magento 2: How to remove Tooltips from checkout page?

I tried to remove tooltip in several ways but anything worked. What's the XML code needed to do this and in which xml file do i have to make the change? Here is one of my attempts <...
1
vote
2answers
1k views

Any change to default.xml breaks homepage layout

Fairly new to Magento 2. Working from a cloned version of another site and trying to make simple, cosmetic changes to the custom theme homepage here: app/design/frontend/Vendor/Theme/Magento_Theme/...
0
votes
0answers
13 views

Cannot filter by created_at field in magento SOAP

Title says it all. The API can't seem to filter by product's created_at value. I am able to filter by any other value, especially the updated_at but not created_at. I have noticed that the particular ...
0
votes
1answer
864 views

How to make checkout page 2columns-left on magento 2

I try to make the checkout page 2columns-leftlayout, but i can't. If i add this code in checkout_index_index.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-...
3
votes
3answers
3k 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</...
0
votes
0answers
24 views

Magento XML feed

I have a magento feed output with filters setup as to which products to export but it still exports absolutely everything on my webshop. I've included the xml code below, is there something wrong ...
3
votes
1answer
148 views

What is the purpose of validation.xml file in Magento 2?

What is the purpose of validation.xml file in Magento 2? When and where do we use them ? I see there are couple of validation.xml files in Magento 2 directory. For example: vendor/magento/module-...
2
votes
1answer
15 views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...
0
votes
0answers
17 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
0
votes
1answer
41 views

How to add a custom action to a xml button inside a listing element in ui_component? Magento 2

I have a custom module with a view folder. In this view folder, there is a ui_component folder with an XML file called mobileplans_listing_xml. This XML file is creating a listing element as the ...
0
votes
0answers
10 views

changes are not showing init.xml in magento 1

In Magento 1 - custom theme,path - app/design/frontend/xyz/xyz_abc/etc/init.xml init.xml <layout_handle_2><![CDATA[]]></layout_handle_2> <position_2><![CDATA[]]></...
4
votes
1answer
888 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"...
20
votes
7answers
43k views

Magento 2: Call a static block using xml

How i include a static block in a page using xml. For example i created a static block with identifier promo. In magento 1 we include a static block using below code <block type="cms/block" ...
2
votes
2answers
812 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 ...
1
vote
2answers
29 views

Move add to cart to below price (and above description) Magento 2.2.5

How can I move the add to cart button immediately below the price in Magento 2? I presume it's an XML update but I am unsure of the code required. I want to move it from under the description to ...
0
votes
2answers
967 views

Move related products to “Details” tab on product page

I would like to move related products to "Details" tab below description on product page.
0
votes
2answers
41 views

Add custom row to Order View on Frontend Magento 2

I have my own custom discount, and on checkout I can use it. When I place the order, I see that grand total is changed, but me need to show discount. I want to paste it between subtotal and shipping.
2
votes
3answers
119 views

Magento2.3: How to upload profile picture and show it on My Account dashboard?

We have customized the My Account dashboard with our own design. Now we wanted to implement the profile picture option while the customer do the registration. After the registration, in My Account ...
1
vote
1answer
45 views

Magento 2.3 - Can not hide account navigation links based on customer groups

I'm trying to hide account navigation links based on customer groups. In order to hide the links, I have installed a module https://github.com/KishanSavaliya/magehelper-magento2-hide-account-sidebar-...
3
votes
4answers
7k views

Add .phtml file on all pages magento 2

I want to add my custom.phtml file on the top of all pages. How can I do this using custom module ? Any suggestion would be appreciated. Thanks
0
votes
1answer
652 views

Product get Small image from collection

i have tried a lot to get only small image from product collection of product object to create custom XML feed for my products. but could not able to get succeed yet. $imgname = Mage::helper('...
0
votes
0answers
9 views

How the Quotes enter between the URL written in the default.xml file?

I have created a block for the header. And it contains static page URLs. I have added the URLs from the Theme default.xml. Here is the code. <block class="Magento\Framework\View\Element\Html\Link" ...
0
votes
1answer
739 views

How to add toolbar and pager to new.phtml?

How to add toolbar and pager to new.phtml ? I tried this code below but the toolbar/pager doesn't show up. Thankyou!! <reference name="head"> <action method="addItem"> <...
0
votes
2answers
29 views

product detail page - move block to primary product container

I would like to move the static block (a custom block from infortis ultimo theme) block_product_secondary_bottom to the container_product_primary_1 container after product.info.price. How do I do that?...
0
votes
2answers
38 views

Magento 2 - Add Class to ReferenceBlock

I need to add a new class to a referenceBlock, specifically the nav items in the Account Page. <referenceBlock name="customer-account-navigation-account-link"> <arguments> ...
4
votes
1answer
799 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-...
0
votes
1answer
53 views

Magento 2 backend error

Got this problem after installing new module using composer. Module has been removed already but error still is present. This error appears only after trying to log into backend. Frontend as well as ...
0
votes
0answers
11 views

Change Price Templates for Related Crosssell etc Only

I want to change the template Magento_Catalog::product/price/amount/default.phtml but only for Crosssell Related and Upsell. Im starting here with related and have tried like below: Step 1 Block for ...
0
votes
1answer
1k views

Magento 2.2.2 - Move custom navigation into header-wrapper in XML and make it responsive

Below xml adds custom navigation before category. To make it responsive I have included it under block navigation.sections. <referenceBlock name="navigation.sections"> <...
0
votes
1answer
703 views

Magento 2 - Move block or container only for specific Device

Is it possible to move block or container in Magento 2 only for specific device? For example, I want to move minicart like that <move element="minicart" destination="header.panel" before="-"/>...
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="-" /> <...
0
votes
0answers
23 views

Facing issue while sending a single element XML payload in array type

So I am sending below-mentioned XML payload to Magento's API: https://magento2.jitterbit.com/rest/all/V1/products/{sku}/links XML Payload: <items> <link_type>related</link_type>...
0
votes
1answer
36 views

Add custom field in shipping address form of Checkout for Magento 2?

Below I have a shipping address form of checkout page and I would like to add another field (P.O. Box) in this form. I tried to look it up every forums and most of the answers were based on overriding....
0
votes
1answer
1k views

Product Page Layout

I'm trying to find a way to add a new custom layout for some products so I can just go to the Design Tab and choose the "Page Layout" from the dropout. I can only find CMS Layout pages in google. Also ...
1
vote
1answer
31 views

Magento2 : Something about category_form.xml

I want to add a input only can be put in a url like "http://www.google.com", I do it like this: <field name="url"> <argument name="data" xsi:type="array"> <item ...
0
votes
1answer
37 views

I am trying to add a phtml through xml. But I can not add. Code shared below

trying to add a phtml through xml to account page sidebar. but i am not getting it right. the xml code is:
1
vote
1answer
24 views

How to add a JS Component via XML?

How could I add a new JS Component, using required and following the Magento's pattern via an XML which I can determine a unique page (e.g. using a checkout_index_index.xml) I don't want to create a ...
1
vote
1answer
1k 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. */ --> <...
8
votes
2answers
2k views

Generate xml file programmatically

I need to generate an .xml file from my extension. Inside Namespace/Module/view/adminhtml/ui_component/ folder, I need to do this pro-grammatically because the .xml file will be generated based on ...
0
votes
2answers
781 views

Magento 1.9.2.4 Add Cart To Header

I need to add a cart to the header. I am creating my own custom theme which feeds of the RWD theme. I need a cart that shows total items and value.
1
vote
2answers
2k views

Xml Element reference is not allowed here

I am new to Magento & I am using Magento version 2.1.7 in my Windows 8.1 system with Xampp while creating a new module I am getting an error in my XML file located in the app/code/vendor/module/...
0
votes
1answer
1k views

Magento 2: Change UI template

For the checkout, I would like to use a different UI template to that which is used on the cart. Currently, they both use the same UI template: <item name="template" xsi:type="string">ui/form/...
0
votes
0answers
14 views

How to get XML file from Magento 2

I need this to external marketing automation system. I need XML-file from Magento 2 to SALESmanago system.
13
votes
6answers
12k views

Admin config error: Undefined index: id in Iterator.php on line 59

Can someone please explain this error to me? Exception #0 (Exception): Notice: Undefined index: id in /home/staging/vendor/magento/module-config/Model/Config/Structure/Element/Iterator.php on line 59 ...