Questions tagged [xml]

Denotes questions about XML files and XML processing.

335 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
208 views

How content from layout_update table is set?

I have a row in the layout_update table that adds element to pages. I'd like to know how [some xml] from this row was set in the backed: id | handle | xml | sort_order | updated_at 194 | ...
1
vote
0answers
216 views

Recoverable Error: Object of class Credis_Client could not be converted to string

I'll add items to the cart and then they will disappear. I don't have too much more information at this point. line 374 is the last line here: if ($lock != 1) { $this->_log(...
1
vote
1answer
2k 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"> <...
1
vote
0answers
156 views

Change select value toggle name

How can i change Yes to Active and No to Deactive? i've tried it with toOptionArray(): class ActiveDeactive implements \Magento\Framework\Option\ArrayInterface { public function toOptionArray() ...
1
vote
0answers
24 views

XML Error in storeviews Magento 1.9

Hello i try to create an xml feed, but it works only in some of my store views. I get the following error on line 419 at column 29: Input is not proper UTF-8, indicate encoding ! Bytes: 0x1F 0x63 ...
1
vote
0answers
138 views

Magento 2 override Magento_Checkout updatecart.phtml and include js file

I want to override updatecart.phtml and put some custom javascript in this file. When i put it in my theme file it goed wel, but how to include the javascript? I prefer it to do it in my own module ...
1
vote
1answer
93 views

Edit New Products Title Magento 2

In my home i added a widget for new products but i want to rename new products to something else`
1
vote
1answer
347 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
792 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
174 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
366 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
752 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
583 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
582 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
174 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
99 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
233 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
100 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
494 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
685 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
425 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
42 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
350 views

Magento 2 : How To Remove Canonical Link on Page

How to remove canonical link on page (using xml)?
1
vote
0answers
233 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
108 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
652 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
339 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
513 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
308 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
286 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
610 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
805 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
384 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
88 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
342 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
227 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 2
3
4 5
7