Questions tagged [xml]

Denotes questions about XML files and XML processing.

296 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

Add .js file in root folder from xml, Magento version 1.9.3.8

Is it possible to add in xml configuration .js file from root folder. In root folder we have the folder js_components. How can I add a file in xml? I can not move this "js_components" folder in ...
0
votes
2answers
55 views

Magento 2 - Filter on category

I want to do something like this to add a filter: http://demo-acm2.bird.eu/gear/bags.html How and where to add that ? I've overrided catalog_category_view.xml to have a custom layout: EDIT : to be ...
0
votes
1answer
204 views

Magento 2 : Add Duplicate of Block or Button Somewhere Else

I have an extension for quote in my store, which displays a request a quote button in the cart, when there is content in it. I want the exact same Button at the top in my menu bar. Tried to copy ...
0
votes
1answer
45 views

Hide columns under condition when exporting csv

Fyi, I did read from another similar post where I came to a good solution (Setting is system true will prevent it from getting exported). However, my problem is I would like to have two type of csv ...
0
votes
1answer
102 views

Magento catalogProductAttributeOptionManagementV1 AddOption SOAP

I am sending a soap request to Magento and getting an error per below. <?xml version="1.0" encoding="UTF-8"?> -<soap:Envelope xmlns:def="XXX/soap/all? services=...
0
votes
1answer
329 views

How canl I set condition in layout file?

I have layout file have block like this <referenceContainer name="sidebar.additional"> <block class="Partsoto\CategoryCustom\Block\Search" name="category.custom.replacement.search" before=...
0
votes
2answers
44 views

CSS custom not added

I have this structure : |-app/design/frontend |-Magento |-Theme |-layout |--default.xml |--default_head_blocks.xml |-Magento_Theme |-templates |-web |...
0
votes
0answers
47 views

XML sitemap redirects to HTML sitemap after change

I have a strange issue where when you visit www.website.com/sitemap.xml or www.website.ca/sitemap.xml, it shows the sitemap as an html page. The following has been added to my .htaccess : #Sitemap: ...
0
votes
1answer
63 views

Magento Config XML Path

In my custom module I have added a tab to the admin configuration section to manage service providers for an external service. I have creted the following group in my system.xml of my module: <...
0
votes
1answer
92 views

How to use dev:xml:convert?

I'm exploring the Magento 2 CLI and I don't know how could I apply the command below in real life? bin/magento dev:xml:convert Can you show me some example? Thanks!
0
votes
0answers
46 views

Custom register form

I want to create a custom register form. But, the user can only create an account if he is in my XML File. For now, I get the information of the user from my XML. Then I want to use this ...
0
votes
0answers
581 views

Magento 2 - Admin UI Component drag and drop rows example XML

I have a table that displays and fetches data from the database working fine. I have been searching for examples of how to layout the XML file to add drag and drop to the rows but just can't work it ...
0
votes
1answer
226 views

Move block to a different reference block

I need to move a subscription block from MageMonkey module. Here is the magemonkey.xml file and block that I want to move: <checkout_onepage_review> <reference name="checkout.onepage....
0
votes
2answers
406 views

Magento custom block not showing on frontend

I'm trying to create custom block to show some info on the page, but got some weird issue that this block not showing. Already broke my brain by trying to debug why. There are some code snippets: ...
0
votes
0answers
134 views

magento 1.7 XML_ERROR: <config/>

I updated a extension in a working magento 1.7.0.2 (running on localhost), after updating it stopped working, so I got back with git and restored the database. After going to the previous version and ...
0
votes
2answers
186 views

How do I move a block to the top of the sidebar?

I have created a block in the backend of Magento and using the below code added it to the category page- <page> <body> <referenceBlock name="page.main.title" remove="true"/> ...
0
votes
1answer
134 views

Why would my layered navigation not close anymore?

I have created a child theme based off of Luma. On my category page layered navigation instead of it saying Shopping Options at the top I would like to have an image there. In my child theme I created ...
0
votes
1answer
246 views

Move upsell after product description using xml

I am trying to move the up-sell block below the the description tabs I have this so far app/design/frontend/THEME/main/Magento_Catalog/layout/catalog_product_view.xml <page layout="1column" xmlns:...
0
votes
1answer
72 views

Google Search Console and Html tags

I have 2 questions, I am new to Magento but not to programming in general. Where do i change html content like H1, H2 in home page, products page, etc. I noticed the difference between cms and ...
0
votes
1answer
52 views

Magento 2 : ui_component and its values

I know most of been gone through the Magento 2's ui_component. I would like to know that If i add new field in existing ui_component of core code, Do i need to write my custom code to save my ...
0
votes
1answer
217 views

How to disable slider only in home page?

I have an slider in home page and this slider show 5 product in every line everything all right but, when a user's page is small the number of products decreases and the slide starts to move. How can ...
0
votes
1answer
2k views

Override base/ui_component/customer_form.xml

I'm trying to override the following file and I need the changes to show in adminhtml. vendor/magento/module-customer/view/base/ui_component/customer_form.xml I have copied the file to the location ...
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 ?
0
votes
1answer
35 views

I need to add some blocks on New Product view Page for Quick view

i am trying to create a new product detail page for only quick view section, rest of functionality i have completed and my final URL of product is like https://example.com/product_quick_view/product/...
0
votes
1answer
97 views

Add to Parent Group in Magento 2.2

How to assign any block to group detailed_info in magento using <referenceBlock> tag in magento 2.2? In Magento 1.x it was like: <action method="addToParentGroup"><group>...
0
votes
1answer
200 views

Remove script via xml

I got the following script loaded in the head: <script src="https://selfservice.robinhq.com/external/robin/XXXX.js" async="async"></script> What is the correct way (syntax) to remove it ...
0
votes
1answer
293 views

add phtml file in every cms page

I just started working on magento 2 and i want to call a phtml file for every cms page. I have created a theme and under Magento_Cms i have copied cms_page_view.xml from vendor and placed it in there....
0
votes
0answers
522 views

Call to a member function count() on null when loading Gallery

Im using Amastys Gallery plugin to implement into a tab on the product page, however the above error has come up when I pasted the code into my custom template. I have called my tab in the local.xml ...
0
votes
1answer
340 views

Upgrade to 2.2 XML error

I am having an issue upgrading to 2.2.2 from 2.1.9. The following occurs when I load the frontend: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block': ...
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
1answer
537 views

Huge input lookup on admin configurable product page

Whenever I try to open a large configurable product with over 4000 simple products I get the following error: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : internal ...
0
votes
1answer
120 views

404 error system>config>new module

I'm trying to setup a section in system>configuration for an existing module which doesn't yet have a section there. This is my first time doing this so I may have missed something. adminhtml.xml (...
0
votes
0answers
23 views

How to find current xml loaded in product page

I understand the magento 2 template engine but I have difficulties in find the current xml loaded in the product page. I have searched in the template folder for catalog_product_view.xml, I have ...
0
votes
1answer
318 views

Change media template for single product

I am trying to update the media template via XML in Magento. Somehow my method is not working: First I included <?php var_dump($this->getNameInLayout()); ?>in the template to get the correct ...
0
votes
1answer
531 views

'Varien_Exception' with message 'Invalid method Mage_Sales_Model_Order

I have created a module witch Generating order xml for ERP. I have created a Observer file but it gives me a Invalid method Mage_Sales_Model_Order. My code is :- protected function sendFile($filePath,...
0
votes
2answers
400 views

XML attribute “after” throwing error after upgrade to Magento 2.2

We just upgraded a development site from Magento 2.1.X to 2.2. I have a custom CSS file called in the default_head_blocks.xml of my specific theme (which had no issues working at all with 2.1.X). The ...
0
votes
0answers
1k views

Exporting all products in a xml file

I would like to export ALL of my products and their fields into an XML file. I tried this but didn't work. I'm using Magento 1.9.
0
votes
0answers
68 views

Change the footer on the homepage

I would like to change only the footer of the homepage, I know how to change only one page per xml, but according to module, controller and etc, how would you do that for homepage? Display a ...
0
votes
2answers
138 views

Magento 1 layout xml reference all controller's actions

I need to add into head custom css file, but it should be applied only for admin pages that are inside my extension. So I don't need this: <default> <reference name="head"> ...
0
votes
1answer
403 views

Magento doesn't support camelCase in URL/route?

If you are declaring your router in etc/adminhtml/routes.xml with similar way <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
113 views

Magento2 XML: How to replace an <item> definition by another

In order to change the checkout page summary item info, I need to replace in checkout_index_index.xml the following line <item name="component" xsi:type="string">Magento_Checkout/js/view/summary/...
0
votes
1answer
20 views

Magento 404 (expecting controller to load)

I'm trying to follow this tutorial: http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-5.html I am using Magento 1.9.x (not 2) I'm stuck at creating a weblog module, the module is ...
0
votes
1answer
989 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
1answer
144 views

Move custom block Magento 2

I have added a custom block to the order information page. But I would like to move it under account information. How would I go on about doing this? view/adminhtml/layout/sales_order_view.xml <?...
0
votes
1answer
769 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-...
0
votes
1answer
209 views

Adding AMP JS library to Magento using XML

Requirements: Add <script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script> to the head of the page Problem: JS library needs to be ...
0
votes
1answer
297 views

Can I have two header.links blocks in the same default.xml file?

Can I have two header.links blocks in the same default.xml file? So that one appears in the header-wrapper and the other in the store.menu What I'm trying to do is have the join/register links in the ...
0
votes
1answer
11 views

i need to link the js file in admin inside pdate layout xml tab in magento 2

I need to link a JS file in admin inside update layout xml tab in magento 2 please give if you any solution. <head> <script src="js/productcollection.js"> </head>
0
votes
3answers
487 views

I have create system.xml for system config value but not work

I have created one extension now i released i have also need some system config value where user can easily to handle this module. so i have created system.xml in adminhtml folder but its not work ...
0
votes
1answer
94 views

Custom attribute - Product page

I created a custom attribute dispname and I would like to add it under the name on the product page. I tried to change the xml file catalog_product_view.xml but it doesn't work. I can add it in the ...