Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

Denotes questions about XML files and XML processing.

0
votes
1answer
51 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
197 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
1answer
32 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
74 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
180 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
262 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
1answer
318 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
924 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
453 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
113 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
1answer
304 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
495 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
1answer
367 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
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
902 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
128 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
702 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
190 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
274 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
1answer
86 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
668 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
860 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
381 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
201 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
1answer
460 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
322 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
1answer
497 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
112 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
396 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
1answer
248 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
76 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
101 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
902 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
117 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
1answer
33 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
1answer
88 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 ...
0
votes
1answer
66 views

Module causing simpleXML error

After digging around for the cause of a SimpleXMLElement::__construct() error in my logs, I found the culprit to be the module called Mgt_Base.xml in app/etc/modules/. When disabling this module, the ...
0
votes
1answer
651 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="-"/>...
0
votes
1answer
2k views

Change meta title of customer login page

Trying to change the meta title of the customer login page in Magento2 at example.com/customer/account/login/. Added tag to my xml file but no luck. Please advise. Here's my xml layout: <?xml ...
0
votes
1answer
101 views

Loading Javascript file when module load

I am developing custom Module in Magento 1. Now I would like to load my module specific JS file when then module enabled. In this regard I used below xml code in a separate xml file named as module ...
0
votes
1answer
311 views

How to add column in orders Excel xml export?

In magento backend it is possible to export the list of the orders in Excel XML format. I would like to add columns in this file such as the company name (present in the customer address) and the ...
0
votes
1answer
110 views

Serving a different product page for certain products with router

I've developed a module that sends some product pages to a product customization wizard. I've used getProductUrl() to change the links to point to the customization URL. http://mywebsite.com/designer/...
0
votes
1answer
142 views

Magento Shipping Method

I have created a custom shipping method in Magento but my question how i can call a request from external gateway and read XML data in Magento shipping method .
0
votes
1answer
45 views

Filter products (out of stock) with xml

I found this code in a xml file: <action method="setAvailableProducts"> <value helper="mmartinovic_productlist/getAvailableOrders"></value> </action> Is there a similar ...
0
votes
1answer
515 views

How to add js file to admin category edit via xml?

I have created a module and I am trying to include a custom js file into the category edit page. In my config.xml file I have: <config> ... <adminhtml> <layout> ...
0
votes
1answer
160 views

system.log to so many error message

my magento shopping mall is so many error comes up what problem...? and cpu28~27% possession..this is normality ? please tell me ! this is my systemp.log 2016-01-29T00:09:03+00:00 CRIT (2): Not ...
0
votes
1answer
629 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('...
-1
votes
1answer
77 views

Magento 2.2.2 How to add external script in Design Layout update XML?

What is the equivalent to the bellow code for Magento 2.2.2 This work for magento 1.9.2.7 : <reference name="head"> <block type="core/text" name="pixel"> <action method="...