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.

5
votes
4answers
3k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
3
votes
4answers
1k views

How to call module block after header?

I have a module layout file like below <default> <block name="ampromo_notification" type="ampromo/notification" template="amasty/ampromo/notification.phtml" before="-" /> <...
1
vote
4answers
935 views

Layout Update XML doesn't properly work for the home page

I'm using magento 2 and I'm trying to add this code into my Layout Update XML. <reference name="head"> <action method="addItem"> <type>skin_js</type><script>...
0
votes
4answers
52 views

Loading a custom block into Magento

Magento is still very much a learning curve for myself but I'm trying to steer away from so much of my hard-coded, procedural PHP and start following the Magento MVC. I've set myself the task of ...
3
votes
3answers
2k views

Disable country field in checkout Magento 2

I tried to disable the country field in checkout but i can't. I already disable few fields like company on checkout page by adding this this <item name="visible" xsi:type="boolean">false</...
3
votes
3answers
229 views

What are the possible Argument Namespaces for Logos

I am tweaking my theme using the xml approach. I have this xml code: <referenceBlock name="logo"> <arguments> <argument name="logo_file" xsi:type="string">images/my-...
2
votes
3answers
739 views

Can't remove layout blocks. (Magento 2)

Information: I'm using Magento 2.1 on CentOS Linux, my theme is a child of the built-in Luma theme. When the theme I made is active, I want some blocks to be removed. Let's say I want to remove the ...
1
vote
3answers
5k views

magento 2 add static block on category page left sidebar only

I have override Module-Catalog into my theme's folder. I want to add custom blocks in category sidebar. so in catalog_category_View.xml file i have added following code which works if i put it in ...
1
vote
3answers
334 views

How to get XML values

I'm using an API to send a request to a webservice, and it returns me an XML, but I don't know how to read the XML values Here is my code: $url = 'http://urlexample'; $headers = array( ...
0
votes
3answers
26 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
3answers
457 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
3answers
1k 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) ...
3
votes
2answers
1k views

Magento Container not working in custom layout

I have created a custom XML layout page that I will be using for my home page. Right now it is a clone of the normal 1column.xml layout, and I'm trying to add a container for an image slider. Here is ...
2
votes
2answers
271 views

Can't apply custom layout update to block?

I have a static block identifier named 'can_content_block_ideas' and within that block the following template file is being called {{block type='core/template' template='can/home/featured.phtml}} ...
2
votes
2answers
997 views

Magento 2. Change column sort order

Columns in magento 2 has item sort order: <item name="sortOrder" xsi:type="number">44</item> But it doesn't change the column order. What need I to do to change columns order?
1
vote
2answers
22 views

Magento 2.3 How to override the custom theme's etc/layouts.xml file in recommended way?

There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts). app/code/CompanyTheme/LayoutSwitcher/etc/...
1
vote
2answers
783 views

Any change to default.xml breaks homepage layout

Fairly new to Magento 2. Working from a cloned version of another site and trying to make simple, cosmetic changes to the custom theme homepage here: app/design/frontend/Vendor/Theme/Magento_Theme/...
1
vote
2answers
355 views

Add block in layout XML only for one store view

I have a Magento 2.1.x installation with two store views. I would like to show a particular block in the footer only for one store view. In Magento 1.9.x I would have done it in this way: <...
1
vote
2answers
2k views

Xml Element reference is not allowed here

I am new to Magento & I am using Magento version 2.1.7 in my Windows 8.1 system with Xampp while creating a new module I am getting an error in my XML file located in the app/code/vendor/module/...
1
vote
2answers
228 views

ECG compliant alternative method for file_get_contents (remote XML)

What is correct "ECG-way" to load an remote XML file? For local files this works: $xml = new Varien_Simplexml_Config($configFile); $node = $xml->getNode('my/selected/node'); But not from remote ...
1
vote
2answers
418 views

Set default value on select of page layout in cms_page_form.xml

I would like to set a default value for the select on the page layout when creating a new cms page in magento 2. The file I'd like to make an extension for is cms_page_form.xml under module-cms > view ...
1
vote
2answers
460 views

Magento 2: Best way to change customer group event & call if needed?

Trigger event after an order has been created/saved <event name="sales_order_place_after"> <observer name="change_user_group" instance="Custom\Module\Observer\ChangeUserGroupObserver" /&...
1
vote
2answers
313 views

topMenu not displaying as childHtml of custom block

I have the following xml declaration. <reference name="header"> <block type="usability/features" name="usability.features" as="usability_features" template=" client/usability/...
1
vote
2answers
308 views

Magento admin: Sales / Tax menu disappeared

Tax settings from the Sales menu have disappeared. It appears this is a conflict with a certain module, when I disable this module from app/etc/modules the tax menu reappears. No menu items from the ...
0
votes
2answers
128 views

How to override order sales model in magento 1.9

I have stuck with this. I am trying to override sales/ order model _saveafter function with my custom module. I have the following code \app\code\local\Rkt\SalesNew\etc\config.xml <modules> ...
0
votes
2answers
370 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
2answers
47 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
2answers
41 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
2answers
346 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
2answers
140 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
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
2answers
369 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
2answers
673 views

Could not create an acl object: Invalid XML in file

Hello I've this custom module for Magento when loggin in to Magento Admin I am getting this error Error Message I am getting 1 exception(s): Exception #0 (LogicException): Could not create an acl ...
0
votes
2answers
121 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
2answers
78 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
2answers
138 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
2answers
734 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
2answers
79 views

How to write direct link of js in magento

In magento 1 in xml <script src="http://www.abc/aa/abc.js"></script> In magento 2 i am trying to ad like this in my xml but its not adding how can i add js using link without download ...
0
votes
2answers
223 views

Remove a shipping method from a store view

I have a magento store with 1 website operating 2 store views within it. I want to hide a shipping method which is displayed in a list item in one of the store views. I understand I can use css ...
0
votes
2answers
70 views

Is the order notification email avaiable by default in Magento 1.9.1 version?

but in magento 1.9.1 the order notification email are available by default ?, because It does not work