Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Magento 2.2.3 admin ui component works on developer not on production page is blank

My Custom admin page isn't loading up. I get a blank screen I have taken a look at the similar questions in Magento.StackExchange but none of them did the trick. it works if I put the MAGE_MODE to ...
0
votes
0answers
22 views

Please correct the XML data and try again. Element 'head': This element is not expected. Line: 2

I am trying to remove the <meta name="robots" content="INDEX,FOLLOW"/> Using Layout Update XML within Magento 2 Design Tab but i am keep getting the following error Please correct the XML ...
0
votes
0answers
10 views

Custom theme magento 2 from Luma missing Customer sign in

I have "create account" but I am missing "Sign in" here is my custom default XML - I am getting system error report, "main.CRITICAL: Broken reference: No element found with ID 'customer. not sure its ...
0
votes
0answers
20 views

How to create a custom table in Magento 2.3 using XML (Declarative Schema) and integrate in custom admin grid?

I need to create an admin grid and for that i need to create a custom table using Declarative Schema in Magento 2.3. How to create a custom table using declarative schema and integrate the table with ...
0
votes
0answers
9 views

Magento 2 in how to upload the image in multiple images (image.jpg,image1.jpg) ? ita not working in this magento fields add options

Magento 2 in how to upload the image in multiple images (image.jpg,image1.jpg) ? ita not working in this magento fields add options I need the upload image with in multiple image select to upload, ...
0
votes
1answer
35 views

Magento 2.3.3: Does catalog_product_view.xml not pass down containers to specific product types?

I have created a catalog_product_view.xml in my theme and when I go to create a widget and select all product types in the layout updates section I can see my custom container I created. If I then ...
0
votes
0answers
8 views

Magento 2 : How to create rss xml file

I want to create RSS feed like this It is a link abc.com/feed.rss Any help? Thank in advance.
0
votes
0answers
26 views

xml code is wrong

was trying to add custom head script for favicons / app icons <link rel="apple-touch-icon" sizes="180x180" href="Magento_Theme::icons/apple-touch-icon.png" /> <link rel="icon" type="...
0
votes
1answer
39 views

Magento - Canonical URL for catagory page is not taking

I am trying to add a canonical URL in category page custom design. But it is not taking. Here is my code, <reference name="head"> <action method="addItem"><type>skin_js</...
0
votes
1answer
27 views

What is the difference between usage of '/' and '\'?

<block class="Magento\Framework\View\Element\Template" name="test" template="test/example.phtml" /> In above example for class used '\' and template '/' use Magento\Framework\...
0
votes
1answer
18 views

Enabled RSS in Magento 2.3 doesn't work

RSS page shows an error This page contains the following errors: error on line 1 at column 7: XML declaration allowed only at the start of the document Below is a rendering of the page up to the ...
0
votes
1answer
20 views

Adding div around footer elements causes issue

I'm trying to add a simple div around the copyright & bug report links in the footer. I can achieve this by doing this: <referenceContainer name="footer-container"> <container name="...
1
vote
1answer
27 views

Exception in Magento log: the element can't have a child

I found the following errors in the exception.log and debug.log files in /var/log folder: [2019-12-17 16:23:05] main.CRITICAL: The element "product.info.options" can't have a child because "product....
0
votes
3answers
52 views

Magento 2.2.4 Overriding vendor/magento/module-catalog/view/adminhtml/layout/catalog_product_edit.xml

I am trying to hide the Store View change option by overriding vendor/magento/module-catalog/view/adminhtml/layout/catalog_product_edit.xml and commenting out like this: <?xml version="1.0"?> &...
1
vote
1answer
39 views

Move bundle options via XML - Magento 2

I've tried absolutely everything I can think of to move the bundle options but for some reason they won't move. When you click the customize and add to cart button it's those options that I want to ...
0
votes
0answers
19 views

How can I use a block I created in my plugin to be used as a CMS block?

What am I trying to achieve? I want to show a block of my plugin on every product page of a specific category. What my problem is right now. In the Magento CMS you can add XML layout to a category ...
1
vote
1answer
45 views

How to disable button url in Magento 2?

I tried to put # places of the url, but the url still works and e.stopImmediatePropagation () with js also didn't help. Is there any way to do this through xml or otherwise? Thanks <item name="...
2
votes
0answers
67 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
1answer
28 views

How to access a variable declared in a phtml from another phtml?

I have inserted two blocks in the catalog_product_view.xml file: <block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-...
1
vote
0answers
41 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
36 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\...
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 ? ...
1
vote
1answer
158 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
83 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 ...
0
votes
0answers
28 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 ...
0
votes
0answers
23 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 ...
2
votes
1answer
26 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
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[]]></...
0
votes
1answer
62 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 ...
1
vote
2answers
31 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
66 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.
1
vote
1answer
65 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-...
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
2answers
73 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> ...
0
votes
2answers
34 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
0answers
15 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
0answers
13 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 ...
2
votes
3answers
154 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 ...
0
votes
1answer
71 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
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
42 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
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
26 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 ...
0
votes
0answers
15 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.
0
votes
2answers
35 views

How to reate two different headers for desktop and mobile using xml?

I want to create two headers one for desktop and other for mobile. How can I achieve this, do i need to edit default.xml or need to add some conditions to meet the requirements ?
0
votes
0answers
20 views

I have SOAP API for shipment, how to integrate in magento 2

I have Posta Plus shipment WSDL file. I have installed the SOAP UI and with that WSDL I retrieved the data. WSDL : http://www.postaplus.net/APIService/PostaWebClient.svc?wsdl I don't know what to do ...
0
votes
1answer
32 views

Magento2 - Modify surrounding divs of layouts

I'm using the 2columns-left as a layout for my category pages and I want to modify these divs, change their classes, without having to add javascript afterwards. I can already modify the templates ...
0
votes
1answer
77 views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
1
vote
1answer
18 views

How to fix “element is not expected” in a CMS page with no XML changes?

I'm receiving this error message which is mentioned below, but as you can see in the image there are no XML updates, neither content, how can I fix it? Please correct the XML data and try again. ...
0
votes
0answers
20 views

How to print all xml loaded tree and also able to debug XML?

I want to debug xml loaded tree and also able to debug XML, is there any tool available?