Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Read data from config admin variable in xml file

Is it possible to read data in xml file ?. For example I create custom block like so: <referencecontainer name="sidebar.knowledge"> <block class="Magento\Cms\Block\Block" name="knowledge-...
0
votes
0answers
15 views

Magento Blocks Positioning

I'm trying to move the social login block to the top of the page but i'm unable to find where to change this. I'v been searching and editing different files without success. URL for customer login ...
0
votes
0answers
12 views

Reorganizing the header on the default.xml of Magento 2

I was using Magento 1.9 and now I'm migrating to Magento 2. I ready Magento devdocs for frontend and tried a lot of things but none works for me. Probably I forgot some details but I'm completely ...
3
votes
3answers
2k views

Disable country field in checkout Magento 2

I tried to disable the country field in checkout but i can't. I already disable few fields like company on checkout page by adding this this <item name="visible" xsi:type="boolean">false</...
0
votes
0answers
21 views

How to add Multiple filter of same attribute in Magento 1.9 soap v2 api?

I'm trying to run magento 1.9 saopV2 api. i'm getting salesOrderList from api by applying filter, i have to get orders with multiple status i.e. pending, processing and complete. when i apply filter ...
2
votes
2answers
2k views

How to create a new page without using CMS?

Is there any way to create a new custom web page without using the Magento CMS Admin panel? I'd like to create a new web page (let's say newsletter) using the 1 column layout. But I would like to ...
3
votes
2answers
366 views

Magento 2.2.1 XML Validation issue

I have upgraded Magento version from 2.1.4 to 2.2.1. Upgrade was successfull but once after Upgrade when i open homepage it's showing following error, 1 exception(s): Exception #0 (Magento\Framework\...
5
votes
1answer
616 views

Magento 2 - assign custom email template to specific payment method

What is the proper way to assign custom email template to specific payment method upon creating an order? For example: When choosing a Bank transfer payment method on the checkout it should send ...
0
votes
1answer
25 views

How to display custom block in product_list_toolbar?

I have a problem with displaing my custom block in toolbar toolbar-products between sorter and toolbar-amount. I tried this code: <referenceBlock name="product_list_toolbar"> <block class="...
11
votes
6answers
19k views

Find out the “name” for a referenceBlock in Magento 2

I want to remove some blocks from my page. Say for example that I want to remove the container for the logo. Then I create /app/design/frontend/MYVENDORNAME/MYTHEMENAME/Magento_Theme/layout/default....
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. ...
2
votes
4answers
818 views

Can't remove layout blocks. (Magento 2)

Information: I'm using Magento 2.1 on CentOS Linux, my theme is a child of the built-in Luma theme. When the theme I made is active, I want some blocks to be removed. Let's say I want to remove the ...
2
votes
3answers
2k views

Move “Add to Wishlist” Button after “Add to Cart” in Product View

How to move "Add to wishlist" button after "Add to cart"? I try using move but it's just working on the configurable products. I want it to work too on the simple products. Check my ...
3
votes
2answers
1k views

Magento Container not working in custom layout

I have created a custom XML layout page that I will be using for my home page. Right now it is a clone of the normal 1column.xml layout, and I'm trying to add a container for an image slider. Here is ...
0
votes
0answers
17 views

How to Receive XML Post Data in Magento2?

I want to receive and validate xml object from third party application in Magento2. How I can write custom endpoint and response for this. Xml payload: <myitems> <item> <info1>&...
0
votes
1answer
51 views

Magento 2, Magento Unprotected XML

I have one Magneto 2.2.3 instance and when we check for security scan it is showing below error: We have determined that your Magento installation's configuration file(s) are publicly accessible over ...
2
votes
5answers
6k views

Magento2 - cannot load custom css - via default_head_blocks.xml

UPDATE Seems that you cannot inherit Luma.... it works properly when inheriting from blank. github magento source says luma wasn't meant to be inherited. Challenge is, I really like luma, but need ...
1
vote
1answer
20 views

Magento 2.3.2 Element 'sequence': This element is not expected. Expected is ( module )

I'm using module Sebwite/SmartSearch. When i try to command line: php bin/magento dev:tests:run default It show a bug: Failed asserting that an array is empty. D:\xampp7212\htdocs\alothemess\...
0
votes
1answer
777 views

Magento 2 - Removing swatches.css from theme

Its a pretty simple and straightforward question, at the moment my theme seems to be pulling through the following: Vendor/default/en_GB/Magento_Swatches/css/swatches.css this isn't in my theme, ...
0
votes
0answers
15 views

Layout does not have a schema properly defined

When we run command line magento dev:tests:run default Our command show a bug: Data set: /app/design/frontend/Vender/name theme/module name/layout/default.xml The XML file at /app/design/frontend/...
0
votes
0answers
21 views

DateTime error on Get Transaction Details request with Authorize.net extension

I am using extension from Authorize.net for payment methods. Everything looks pretty good on testing with sandbox but I am getting errors once launching this extension on live. First everything ...
2
votes
1answer
53 views

Email layout handle phtml doesn't update in magento 2

I am developing a little custom Magento 2 extension that sends emails to admins on certain events. In layout handle's phtml template file I originally made a spelling mistake, which when corrected ...
1
vote
2answers
926 views

Any change to default.xml breaks homepage layout

Fairly new to Magento 2. Working from a cloned version of another site and trying to make simple, cosmetic changes to the custom theme homepage here: app/design/frontend/Vendor/Theme/Magento_Theme/...
1
vote
3answers
733 views

Could not create an acl object: Invalid XML in file

Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error Error Message I am getting 1 exception(s): Exception #0 (LogicException): Could not create an acl ...
0
votes
0answers
53 views

Facing issue when running the command php bin/magento setup:upgrade

Facing issue when running the command php bin/magento setup:upgrade The XML in file "D:/wamp64/www/porto/vendor/magento/module-inventory-catalog/etc/communication.xml" is invalid: Element 'topic', ...
0
votes
1answer
48 views

strict_types declaration must be the very first statement in magento 2.3.1

I have Magento 2.3.1. I am facing below error when I run command setup:di:compile. Fatal error: strict_types declaration must be the very first statement in the script in vendor/magento/module-...
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
804 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
725 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
773 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
9k 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
701 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
637 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
667 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
25 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
25 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
59 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
1k 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
664 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
33 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
938 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 ...