Questions tagged [xml]

Denotes questions about XML files and XML processing.

303 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
114 views

Copy block in XML file

I need to copy the block cart.summary in checkout_cart_index.xml. How can I do this ? I've copied the block and change the same but it not working. (I only have my original block)
0
votes
2answers
542 views

Remove My Account top bar when user is not logged in

i want to remove magento top link My Account if user is not logged in ,i do not want to modify core files, i tried to get solution but could not find any working one . i tried below method in : "...
0
votes
0answers
191 views

Magento 2: Warning: simplexml_load_string(): Entity: line 1: parser error : XML declaration allowed only at the start of the document

I am using magento 2.0 I have learn magento2 tutorials(No frills magento2 layout) of alan storm. I have create two xml files. when i run controller file then give Following error Warning: ...
0
votes
3answers
32 views

Magento 2 accidental theme move

I FTP'd into my server with filezilla. I accidentally moved one theme into another. I have since moved it back but now its pulling in the footer from its parent theme, luma. Default.xml and Default ...
0
votes
1answer
144 views

How to Change Block class for sales order status history tab

Below is the Block <action method="addTab"> <argument name="name" xsi:type="string">order_history</argument> <argument name="block" ...
0
votes
1answer
35 views

Magento2 Multisite now loading store specific default_head_block.xml

I have a magento 2.2.3 that I am trying to setup with a Multisite where each store view has a different child theme. Now My workflow is that I work on a local MAMP version of the website I then ...
0
votes
1answer
118 views

In checkout when i get to the payment information i get this error. Attention [XML2Array] Error parsing the XML string

This would be the last step in the checkout process. I hit checkout and it would take me to a success page. Right when i hit the button it throws this error. I did a search on the server for what ...
0
votes
0answers
94 views

Remove Links from 'My Account' side navigation

I am trying to remove some links from the 'My Account' section of Magento 2.2.5. the links i want to remove are My Downloadable Products Stored Payment Methods Billing Agreements My Subscription ...
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
58 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
222 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
55 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
107 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
388 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
48 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
49 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
70 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
100 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
633 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
250 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
468 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
143 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
236 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
142 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
276 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
79 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
53 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
234 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
2k 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
37 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
120 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
216 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
320 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
581 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
347 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
607 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
127 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
334 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
553 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
426 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
72 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
150 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
443 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
119 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 ...