Questions tagged [xml]

Denotes questions about XML files and XML processing.

323 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
50 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
172 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
358 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
413 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
761 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
365 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
843 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
141 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
24 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
358 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
605 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
460 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
74 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
166 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
547 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
134 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
191 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
966 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
273 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
361 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
780 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
101 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 ...
0
votes
1answer
774 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
1k 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 ...
0
votes
1answer
447 views

How to add Account-dashboard menu to newsletter/manage/ page

I tried to add the Account dashboard menu on the left side in newsletter/manage/ page. The phtml for this menu is /template/customer/account/navigation.phtml Account dashboard menu it's added like ...
0
votes
1answer
253 views

How to add content to newsletter/manage/ page from XML in Magento 1

I want to add the newsletter sign up(image) from default magento footer into newsletter/manage/ page which now it's empty. Does anyone know how can i add this via XML? Or where i can find the XML ...
0
votes
0answers
121 views

Payment method custom module

How to duplicate config.xml file for payment methods custom module in magento1.9.
0
votes
1answer
678 views

How to call a social login block to header login popup in magento 2

I installed the social login extension, It works fine in registration page & registration page sign-in popup. But in others pages it's not displaying social logins block in sign-in popup. Here is ...
0
votes
1answer
424 views

Completely Disable Module - Magento 1.9

I am trying to disable a Magento programatically.For just trying I added the following code to myadmin header.phtml. // Disable the module itself $moduleName="Thycart_Customcheckout" $...
0
votes
2answers
85 views

I need override a model in third party extension

I'm doing this to override the model in other extension, but doesnt works <global> <modules> <!--<sitemap_resource> <rewrite> &...
0
votes
1answer
562 views

Limit products for specific category in XML

I'm trying to limit the output of products on specific categories, i.e. I'd only like to show the first 3 products (no matter how many there actually are). All solutions I find are to set the pager-...
0
votes
1answer
144 views

Magento : Need a to change position of right side navigation

I have to change in right navigation categories , price filter and Popular tags positions. As you show in Image I want change of popular tags(1) first to last means in last after top Rated Product(5) ...
0
votes
1answer
429 views

Magento2: how to add remove header links conditionally

how to add remove header links conditionally. I am trying to show my account link only when the customer is logged in. Otherwise it should be hidden. How to do the same using xml files.
0
votes
0answers
143 views

Adding script that is not in a .js file in the <head> Magento 2 without using 'misc scripts' in admin

I have some js script which I'd like to place in the section of my Magento 2 site. I do not want to add in 'miscellaneous scripts' section. I want to add this in my themes default.xml file. However, ...
0
votes
0answers
3k views

sidebar and sidebar additional Magento2

In default /vendor/magento/module-theme/view/frontend/page_layout/2columns-left.xml file is next code <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
273 views

how to add a top link in custom module at prefered position

Can anyone let me know how to add custom top link on top menu after create an account link or at any place I want to put before/after. I have tried with after attribute but its not changing position ...
0
votes
1answer
79 views

How to change the id in the <aside> tag on magento content pages

down vote favorite I'm sorting out the blog on my magento based site, currently using an aheadworks extension but moving to wordpress. Both AW and WP have the sidebar (search, recent posts, etc) in ...
0
votes
1answer
126 views

Remove CSS file from installed extension?

I am using theme254k Package of default Theme of Magento 1.8.1.0. I installed an extension. This extension added a CSS file. I would like to remove this CSS file. How can I do that ?
0
votes
1answer
1k 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/...
0
votes
1answer
127 views

How to enable or disable footer link in magento2.1 with helper function dynamically from xml based on my own config value?

I have my own contact us module in magento.I want to remove default contact us link from footer and add my own link. I have remove default contact page link and add my own link. I want that when my ...
0
votes
0answers
213 views

layout xml does not load

I have a module with below details, for some reason layout xml files does not load. I can make this out, because the js and css mentioned in the layout files are not getting loaded. /var/www/html/...
0
votes
1answer
34 views

Getting to block from layout xml issue

This is my layout: <?xml version="1.0"?> <layout> <adminhtml_customer_edit> <reference name="accordion"> <block type="mynamespace_mymodule/...
0
votes
0answers
790 views

Magento 2 moving the sku on product page

I'm trying to move the sku on the product page but no matter what i do it sits at the top when I would like it at the bottom: XML: <page layout="2columns-left" xmlns:xsi="http://www.w3.org/2001/...
0
votes
1answer
110 views

What is Mgt_Base module?

I was hunting for the cause of some SimpleXMLElement errors in my log when I found out the culprit was some module in app/etc/modules called Mgt_Base. The errors showed up when I accessed the ...

1
3 4 5
6
7