Questions tagged [xml]

Denotes questions about XML files and XML processing.

311 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
578 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
441 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
73 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
155 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
477 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
126 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
172 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
859 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
247 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
334 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
611 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
99 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
739 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
429 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
241 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
119 views

Payment method custom module

How to duplicate config.xml file for payment methods custom module in magento1.9.
0
votes
1answer
594 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
360 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
82 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
551 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
132 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
421 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
131 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
267 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
78 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
117 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
122 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
194 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
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
0answers
747 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
101 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
703 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
0answers
59 views

Add content to media.phtml without modifying the code

I have added custom code to media.phtml. media.phtml shows the product image. The product images get cached and therefore my custom code is getting cached also and I do not want it to be. What I ...
0
votes
1answer
347 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
117 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
2answers
139 views

Magento 2: New theme XML files not loaded on live site

My new theme works locally, but when once uploaded to live server, selected in the Admin, it shows some content, but it's not using my new XML files. The new default_head_blocks.xml defintely isn't ...
0
votes
0answers
60 views

How do I change Magento Success Page XML layout?

This is the content of my layout: <checkout_onepage_success> <reference name="content"> <remove name="checkout.success"></remove> <block type="...
0
votes
2answers
781 views

Magento 1.9.2.4 Add Cart To Header

I need to add a cart to the header. I am creating my own custom theme which feeds of the RWD theme. I need a cart that shows total items and value.
0
votes
1answer
149 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
3answers
2k views

Show/Hide Editor Not Responding

I have tried to look for previous solution and couldn't find any relevant topics. So I guess I should post a new question here. We are trying to toggle the WYSIWYG editor (Which is turned by default) ...
0
votes
1answer
48 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 ...