Questions tagged [xml]
Denotes questions about XML files and XML processing.
312
questions with no upvoted or accepted answers
1
vote
0answers
485 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
423 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
172 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
94 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
207 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
96 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
463 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
504 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
359 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
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 ...
1
vote
0answers
339 views
1
vote
0answers
184 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
101 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
537 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
59 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
310 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
463 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
958 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
270 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
278 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
586 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
54 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
0answers
365 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
85 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
323 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
218 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
149 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
250 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
330 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
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 ...
0
votes
0answers
18 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
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
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
41 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
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
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
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
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.