Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Magento2 - Wrong Template after click Edit Button in Checkout

I am using a custom template which is controlled over the SKU: catalog_product_view_sku_XXXXX.xml If I add the product to the cart and want to go back from the checkout page it shows me the standard ...
4
votes
1answer
763 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"...
2
votes
3answers
11k views

Adding a class to block Magento 2

I have the following custom xml inside of my Magento_theme > layout > default.xml <referenceBlock name="top.links"> <block class="Magento\Framework\View\Element\Html\Link" name="...
1
vote
2answers
3k views

Magento 2: How to move category description to main column

How can I move the category description from top of the page into main column of the category page just above product list toolbar? I guess it should be doable by extending the catalog_category_view....
2
votes
3answers
3k views

MAGENTO 2 remove sidebar.main sidebar.aditional with xml update does not work

So I have the in my category->Display Settings->Display Mode set to "Static block only" And category->Design->Layout set to "1 column" And category->Design->Layout Update XML <...
0
votes
1answer
661 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.
13
votes
6answers
9k 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 ...
0
votes
1answer
738 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-...
30
votes
4answers
8k views

Magento 2 xml validation

For a while Magento 2 had a way to validate (and autocomplete) any xml by using an XSD file. For examplemodule.xml looked like this: <?xml version="1.0"> <config xmlns:xsi="http://www.w3.org/...
0
votes
1answer
680 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
1answer
635 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('...
4
votes
1answer
629 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-...
1
vote
0answers
23 views

Override Api xml Magento1

i made changes in app/code/core/Mage/Customer/etc/api2.xml now i want to override this xml in my local module how i do
1
vote
0answers
24 views

template is not working magento 2 admin customer_index_edit

I am calling a js function form this file current.phtml like this <script type="text/javascript"> require([ 'jquery', 'jquery/ui'], function($){ $(document).ready(function($) { updateAjax()...
0
votes
0answers
49 views

Magento 2.3.2 Error XML declaration allowed only at the start of the document

I need for a programm to (webwinkelfacturen.nl) to read my taxrates so I can be pushed in an accountingsystem. But I am getting this error when I want to call domainname/ndex.php/rest/V1/taxRates I ...
0
votes
1answer
960 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
0answers
16 views

PHP Storm XML scan result : redundant default attribute value assignment

I ran a PHP Storm XML scan https://magento.stackexchange.com/a/227343/70343 The part you are interested in is 'How to use PhpStorm code inspector to validate project xml-files' And I just ...
0
votes
1answer
656 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
1answer
31 views

Magento2.2.5 remove default product title and add custom phtml file on product detail page

in Magento2.2.5 I want to remove the product name and instead where it is load a custom phtml file that will call in a custom product attribute However my phtml file is not being called in here is ...
0
votes
3answers
4k views

Why is my default.xml not working?

I have in my CustomTheme a default.xml file. I tried to get the xml to work and used some of the samples I found here on StackExchange. Non of them are working for me? So apparently I have done ...
1
vote
3answers
5k views

magento 2 add static block on category page left sidebar only

I have override Module-Catalog into my theme's folder. I want to add custom blocks in category sidebar. so in catalog_category_View.xml file i have added following code which works if i put it in ...
0
votes
1answer
11 views

History order comment not show when export order in magento 1.x

I have three field comment, this can save after order. It work and show on order history comment like this But when i export xml it not show, i think problem at here, 2 links are the same. 2 comment ...
0
votes
1answer
895 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 ...
6
votes
0answers
72 views

Inconsistent package.xml - Magento 1

I tried finding a Slack or Discord server for Magento before coming here. I am trying to submit a Magento 1 extension for technical review @ marketplace and the package.xml won't pass marketplace ...
0
votes
1answer
35 views

How to override catalog_product_view.xml?

I want to have a different theme on special products. So I have a main theme --> app/design/frontend/Main/Default and I want a different theme, which is child of my main: -- app/design/frontend/...
0
votes
0answers
24 views

magento dev:urn-catalog:generate command fails to detect secret file

I'm running the following command "magento dev:urn-catalog:generate .idea/misc.xml " to use the functionality of Magento 2 to automatically resolve all my URN's so PhpStorm will stop giving me ...
0
votes
1answer
33 views

Override function from grouped.php

I am changing the table for a grouped product. I have overridden the grouped.phtml file to make changes. But I need to override the function: getAssociatedProducts($product) // Grouped.php Because ...
0
votes
1answer
956 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. */ --> <...
0
votes
0answers
17 views

system.log from getFeedData() they are filling up my logs

Every time I am checking my system.log file I would always find the following warnings. ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Space required after the ...
0
votes
2answers
749 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.
0
votes
0answers
28 views

Export All Products From Magento to XML File

I'm trying to export all our listed products from our magento site to an XML file - appears the only option via admin site is to do this via CSV - this comes out unreadable. Can you advise?
0
votes
0answers
16 views

Change mobile navigation

I am trying to work out which xml file controls the menu on luma for mobile so that I can remove the Menu/Account section here at the top So I can achieve something similar to this
9
votes
1answer
936 views

Magento 2 - block name vs as name

I've been doing some work in Magento 2 and have been overwriting some modules i've installed ( on the frontend ). However today i've just come across something that I've not encountered before. The ...
2
votes
1answer
173 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
0
votes
0answers
22 views

How to render UI Component grid using .xhtml file?

I was used following code but no luck 1) abc.phtml include ($block->getTemplateFile('Vendorname_Modulename::event.xhtml')); 2) event.xhtml <?xml version="1.0" encoding="UTF-8"?> <...
2
votes
0answers
26 views

how to add default filter in magento admin ui component in magento 2

Hi I want to filter the admin grid data in default Magento 2 how to add default filter in Magento admin UI component in Magento 2
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
0answers
13 views

magento 2 use class constant value into XML file

Hi I am working with the Magento 2 constant, the following constant i want to use in XML file class Data extends \Magento\Framework\App\Helper\AbstractHelper { const CUSTOM_TAX_CODE = 'customtax'...
1
vote
2answers
46 views

Magento 2 how to remove “SKU field” via Layout Update XML?

I'm stuck on this: I need to remove the SKU field from product page only for few products, I'm sure that I can do it with "layout update XML" tab but all my attempts have failed.. any help? :)
1
vote
2answers
2k views

Magento 2: Re-order the Customer Account links

I'm trying to re-order the links in the Customer Account (mysite.com/customer/account/) of my site. I've created: #app/design/frontend/Mike/sitename/Magento_Customer/layout/customer_account.xml <...
0
votes
1answer
928 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/...
1
vote
1answer
17 views

how to move the custom block middle of the page in Magento 2

I added custom block in home page Magento 2, but it's showing in the top of the page I want to move to after banners how can I achieve this? cms_index_index.xml <?xml version="1.0"?> &...
0
votes
0answers
28 views

magento : Give condition in xml file

Condition in xml file catalog.xml <xsl:if product="bundle" > <block type="catalog/product_view" name="product.clone_prices" as="prices" template="catalog/product/view/price_clone.phtml"/&...
2
votes
1answer
888 views

Invalid XML in file view.xml

I'm getting this error in my store: Invalid XML in file /Library/WebServer/Documents/Magento/app/design/frontend/vendor/vendor_theme/etc/view.xml: Element 'theme': No matching global declaration ...
0
votes
1answer
83 views

XML declaration allowed only at the start of the document

i am getting this error on developer mode but works in default Exception #0 (Magento\Framework\Config\Dom\ValidationException): Theme layout update file XML declaration allowed only at the start of ...
0
votes
1answer
54 views

Magento 2.3: Mass Action For Status Not Working

I'm very new to Magento 2.3, i created a Mass Action for Status Change, when i open action dropdown and click Change status a tree menu should open with 2 options, but when i click on Change status ...
0
votes
1answer
17 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
1
vote
4answers
943 views

Layout Update XML doesn't properly work for the home page

I'm using magento 2 and I'm trying to add this code into my Layout Update XML. <reference name="head"> <action method="addItem"> <type>skin_js</type><script>...
0
votes
2answers
1k views

Add js in head in magento 1.9

All js script are loaded in footer in magento 1.9. I want them in head. Can Anyone let how to do this ?