Questions tagged [xml]

Denotes questions about XML files and XML processing.

324 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
332 views

Divide footer into two sections Magento 2

I want to divide my footer into two sections using xml.
1
vote
0answers
21 views

Theme execution flow

I would like to know theme execution flow of Magento 2. I select a theme name 'A' and try to visit a page. Then I change the theme to 'B' and try to visit that same page. Which execution flow the ...
1
vote
2answers
652 views

Add block in layout XML only for one store view

I have a Magento 2.1.x installation with two store views. I would like to show a particular block in the footer only for one store view. In Magento 1.9.x I would have done it in this way: <...
1
vote
0answers
167 views

Add wishlist to my dashboard (customer_account_index)

I want to add the wishlist in my dashboard in the customer account. Problem is I have to make a new block like this. <block class="Magento\Framework\View\Element\Template" name="...
1
vote
0answers
365 views

Magento 2.2 - custom attribute module fails

I've made a custom attribute module using this magento stackexchange Link to article. etc/frontend/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
716 views

How to create custom XML file for new .phtml template page in Magento 2.1?

I can't find a clear guide as to how to link a custom XML file to a custom PHTML template file in Magento 2.1. I created a test.phtml in app/code/Custom/Module/view/frontend/templates/ and also ...
1
vote
0answers
537 views

header my account dropdown not showing magento2.1

I have been trying to add my account drop down menu in my magento website. I found that it is there in luma theme by default. But my base theme is magento/blank. My account links are displayed in 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. */ --> <...
1
vote
3answers
492 views

How to get XML values

I'm using an API to send a request to a webservice, and it returns me an XML, but I don't know how to read the XML values Here is my code: $url = 'http://urlexample'; $headers = array( ...
1
vote
0answers
173 views

Magento 2 : override configurable product

Can u tell me which XML file bind all files to create configurable product so, I can override that file in my custom module at front-end side. Exactly, I want to create configurable button and by ...
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/...
1
vote
0answers
97 views

Error on Container inside referenceContainer checkout.cart.methods

I have a problem with a custom block inside the container Checkout Cart methods. I have add this code on checkout_cart_index.xml on my theme. <referenceContainer name="checkout.cart.methods"> ...
1
vote
1answer
229 views

Magento2 Layout update with XML

I want to move a block on my page. its now located in the header and i want to move it to the panel header. In the xml file of the extension, i see this: <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
98 views

Magento 2 : How to Set Category to Show 5 Columns

The default number is 4, so I want to change (using XML like Magento 1) to 5 or more products per row.
1
vote
0answers
477 views

Magento 2.1: Disable title suffix just for home page

I've set up title suffix for all pages in Content > HTML Head > Title Suffix, so now every page has suffix | Pagename.tld That's all good. But I would like to exclude my homepage from this rule. I ...
1
vote
2answers
603 views

Set default value on select of page layout in cms_page_form.xml

I would like to set a default value for the select on the page layout when creating a new cms page in magento 2. The file I'd like to make an extension for is cms_page_form.xml under module-cms > view ...
1
vote
0answers
405 views

Custom styles not working - Magento 2

Please note the current development is in dev mode & writing to pub/static. It is using browser sync and the sass snowdog theme for magento2. I've got my theme running and using the Sass Snowdog ...
1
vote
1answer
35 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 ...
1
vote
0answers
348 views

Magento 2 : How To Remove Canonical Link on Page

How to remove canonical link on page (using xml)?
1
vote
0answers
217 views

Magento 2 xml/csv convert

I am trying to figure out how that an automatic feed (csv or xml) works within Magento 2. Does anyone know a page with information on how to do so? I have the xml product feed or the CSV product ...
1
vote
0answers
105 views

Exclude CSS/JS file For IE browser from magento 2 XML

How can i exclude a CSS file from XML for IE browsers
1
vote
2answers
602 views

Magento 2: Best way to change customer group event & call if needed?

Trigger event after an order has been created/saved <event name="sales_order_place_after"> <observer name="change_user_group" instance="Custom\Module\Observer\ChangeUserGroupObserver" /&...
1
vote
0answers
60 views

Moving a referenced block via arguments?

Is it possible to reorder elements by passing an <argument> inside a referenceBlock tag if I am not able to add my after/before where the block was first called?
1
vote
0answers
77 views

Magento 2.1 position in layout XML changes position in generated HTML

I'm trying to understand Magento's html building process. Currently I'm stuck at this file: https://github.com/magento/magento2/blob/develop/app/code/Magento/Theme/view/frontend/layout/default.xml ...
1
vote
0answers
1k views

Magento 2 - Can't access to products with direct url

I'm creating my custom theme, now I have a problem with links to my products, I can access to product only going to the category and the clicking on the products. Then if I put the link on the ...
1
vote
0answers
333 views

Transaction email - I like to change the order detail fonts

My goal is to have the Order Confirmation Email have a uniformed look. I am able to make changes the using the Transnational Email admin function in Magento but some parts of the Order Confirmation ...
1
vote
0answers
492 views

Magento 2: Update Billing Address info fields

Sometimes, when the checkout loads, the Region input field is out of position and is placed before all of the other inputs (before firstname input field) in both the Shipping Step (Shipping address) ...
1
vote
0answers
1k views

Magento 2: How to define Order of Events?

In my events.xml I have so 4-5 Observer With Events. I would like to Define Their Call Order <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
0answers
292 views

Magento 2: How to show request variable in Layout file

http://localhost/magento2/module/List/Variable Here Variable is my dynamic value, which would like to show in Breadcrumb & Title via Layout File. app\code\Custom\Module\view\frontend\layout\...
1
vote
0answers
36 views

populating products from xml on into magento catalog

I am looking to develop an automated system for inventory but got no pointers on how to, there is a product XML from a shop with product meta information, which my Magento store should read through ...
1
vote
0answers
284 views

Get data from Soap Xml API using CURL or SOAP Object

I want to integrate some out soap API data with magento store and want to get data from soap API. For this I have two methods to get data one is using curl and other is using soapClient object, and ...
1
vote
0answers
596 views

Export group prices - CSV vs. Dataflow

We want to be able to export specific product data in MS XML Format using Dataflow. I realized it does not export group prices, whereas the CSV standard export does this. I couldn't see any option to ...
1
vote
0answers
57 views

Magento 2 order mass action xml

So i was making a mass action for orders and i was searching for what this: <item name="type" xsi:type="string">delete_order</item> line of xml does and what its used for in the /view/...
1
vote
0answers
46 views

Zend_Http_Client SimpleXMLElement error

Sometimes when i visit my website's admin panel I get these spooky Warnings in my system.log: ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 8: parser error : Premature end of data ...
1
vote
1answer
771 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="-"/>...
1
vote
0answers
375 views

Layouts of cms page don`t work in magento 2

I want to stylize the cms page 404. Content added through the admin page. To override the layout I created a file cms_index_noroute.xml in app/design/frontend/mytheme/Magento_Cms/layout. However, the ...
1
vote
1answer
86 views

Can someone explain what this is in the ui component xml

Can someone explain what ${$.$data} is doing in sales_order_grid.xml <columns name="sales_order_columns"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
1
vote
0answers
2k views

Magento 2: Customising Checkout page – not working!

I am trying to remove input fields (Company and Telephone) from the Checkout page. I have followed what is explained on the M2 site here under 'Disable a component'. I have done the below but nothing ...
1
vote
2answers
331 views

topMenu not displaying as childHtml of custom block

I have the following xml declaration. <reference name="header"> <block type="usability/features" name="usability.features" as="usability_features" template=" client/usability/...
1
vote
0answers
46 views

custom XMl works well on dev machine but doesn't work properly on server

Having a strange issue on custom created modules layout xml in 2 different environments. On dev machine all created xmls are getting loaded and executed but when pushed code on server none of the ...
1
vote
0answers
44 views

Declaring observer from xml for review form submit issue

Hey I am trying to declare an observer from xml but it doesn't work. This is my xml: <config> <global> <events> <review_save_after> ...
1
vote
0answers
222 views

Add a catalog/navigation block to the left_first block - products not displaying

I have a custom navigation layout. <div class="left-navigation"> <?php /* Get the categories that are active for the store */ $_main_categories=$this->getStoreCategories(); ...
1
vote
1answer
1k views

Magento’s XMLConnect basics guidelines please

I have investigated and found that it's possible to make android application via magento's XMLConnect extention. And as inchoo said that it is coming pre-installed in magento since CE1.5 and later. ...
1
vote
1answer
171 views

Magento Dataflow Advance Profile To Export Customer in Google Contact Format

I have difficulty to find any guide relating to this subject. Basically, I want to export all customer using magento dataflow profile export to csv, in a way so I can just import the csv to the google ...
1
vote
2answers
268 views

ECG compliant alternative method for file_get_contents (remote XML)

What is correct "ECG-way" to load an remote XML file? For local files this works: $xml = new Varien_Simplexml_Config($configFile); $node = $xml->getNode('my/selected/node'); But not from remote ...
1
vote
2answers
342 views

Magento admin: Sales / Tax menu disappeared

Tax settings from the Sales menu have disappeared. It appears this is a conflict with a certain module, when I disable this module from app/etc/modules the tax menu reappears. No menu items from the ...
1
vote
1answer
1k views

How do I add canonical or any meta head in Magento 2 via CMS Layout XMLs?

I have a custom CMS page with the url of /test I tried pasting this in the Layout Update XML under Page Layout AND also tried under the Custom Theme Layout Update XML.. both options do not work <...
0
votes
0answers
7 views

How can I get store config value in ui_component xml file?

any idea on get store config value in ui_component xml file? EX: I want to get weight unit for a input form, then I tried <item name="addafter" xsi:type="helper" helper="Magento\Directory\Helper\...
0
votes
0answers
14 views

Show blocks like JQuery UI Tabs on product detail page in magento 2

The related and alternate products blocks are showing as siblings one after the other. See current layout screenshot. The code is inside catalog_product_view.xml: <move element="catalog.product....
0
votes
0answers
55 views

Error: Mismatched anonymous define() module: function(t) in Magento2

i have a problem with requirejs. I want to render a map on, for example catalog_product_view.xml using THIS. So i have to include https://sandbox-geowidget.easypack24.net/js/sdk-for-javascript.js on ...

1 2
3
4 5
7