Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

The best way to set and call layout is in controller or in the layout.xml?

I know that in Magento there are two ways to call a layout: in controller something like: public function indexAction(){ $this->loadLayout(); //... $block = $this->getLayout()->...
3
votes
4answers
8k views

How do I remove a block with local.xml?

I am trying to remove a block named catalog.leftnav. After reading this- https://stackoverflow.com/questions/16937018/magento-remove-block-using-update-xml I created a local.xml file and put this in ...
3
votes
1answer
230 views

How Magento 2 loads and manipulates configuration information?

In Magento 1.X We know how the configuration is loading. If we trace the code performance starting from index.php, we’ll get the following key points ( The exact order may be differ ). For example ...
3
votes
2answers
2k views

Js file is not removed from xml

I am using the cjm colorselectorplus module. In their xml they have this line: <action method="addJs"><script helper="colorselectorplus/data/canShowjQuery" /></action> and in ...
3
votes
2answers
15k views

Adding custom css-files to theme (page.xml) - custom css-files for single storeviews

Question #1: For some reason, I can't seem to get my custom CSS file to be implemented into the theme. I've basically done this with the page.xml: Before: <action method="addItem"><type>...
3
votes
1answer
163 views

Is it possible to add an event (hook) to a core action without overriding it?

I'd like to add a hook to a Magento core action (in this specific case Mage_Adminhtml_Sales_Order_CreateController::saveAction() but I hope there's a general solution). Just a hunch, but it seems to ...
3
votes
1answer
379 views

What is the purpose of validation.xml file in Magento 2?

What is the purpose of validation.xml file in Magento 2? When and where do we use them ? I see there are couple of validation.xml files in Magento 2 directory. For example: vendor/magento/module-...
3
votes
1answer
1k views

Difference between Extend a layout and Override layout

In Magento2 currently, I override XML file using below way and make required changes. app/design/frontend/Vendor/Theme/Magento_Catalog/layout/default.xml But I have seen in Magento dev docs ...
3
votes
1answer
4k views

Magento 2: How to show New Products in a particular Category?

I have a category named NEW and I want to show all new products in this category (filter by Set Product as New From To attribute), how can I do that? Thank you.
3
votes
1answer
5k views

Custom module role permission. How to add acl

I need to be able to control my custom module's role permission and I can see I have to add acl in my XML. I have tried to add it in config.xml and also made an adminhtml.xml in the same location. ...
3
votes
1answer
619 views

iterate over array value not display in phtml

I´m trying to display Ebay GetSingleItem response (http://developer.ebay.com/devzone/shopping/docs/callref/GetSingleItem.html) and I´m having problems displaying array ["ItemSpecifics"]. The call is ...
3
votes
3answers
11k views

Admin layout file not loading in custom module

I'm trying to load in a block on one of my admin pages in a custom module, but it doesn't appear to be loading. At first I thought it was a handle issue, but I've found out that the handle is ...
3
votes
2answers
4k views

How to add files for custom module under system configuration? [duplicate]

I have my own module in System->Configuration and want to add js and css files for it. Now it is so: <layout version="0.1.0"> <default> <reference name="head"> ...
3
votes
1answer
108 views

Call to the “Get_Item_Quantity” function in the web service (trying to call soap api using magento restful services)

I have a function in an XML document and I want to return its parameters. My knowledge of connecting the two services is very limited. Do I need to create some middleware or is it possible just to ...
3
votes
2answers
78 views

Move title between sort by and number of items

I need my title of the category page to be placed between the number of items and the sort by option. What should I do? Which container has to be moved to which destination?
3
votes
1answer
187 views

what is translate=“label” in xml file what it does?

I am working with Magento XML files and I found translate=" label" <tabs> <training translate="label" module="training"> <label>training</label> <...
3
votes
2answers
602 views

default.xml showing error “Cannot resolve symbol 'string'” in PHP Storm IDE

default.xml showing error "Cannot resolve symbol 'string'" in PHP Storm IDE, but it's not effecting anything. Is this ok? Or is there something wrong?
3
votes
2answers
326 views

Magento 1 exception log - Invalid Block type

Having an issue with my exception.log, it keeps firing these errors. I understand (i think) it has something to do with an xml block with eyemagine and expression engine. Which files should i ...
3
votes
2answers
781 views

Magento 2.2.1 XML Validation issue

I have upgraded Magento version from 2.1.4 to 2.2.1. Upgrade was successfull but once after Upgrade when i open homepage it's showing following error, 1 exception(s): Exception #0 (Magento\Framework\...
3
votes
1answer
4k views

How to remove the sidebar.main block from the search results page

I am trying to remove the sidebar.main block from my search results page as I do not require the layered navigation on this page. I have copied the following XML: \vendor\magento\module-layered-...
3
votes
1answer
658 views

Adding UI for Third Party Category Attributes in Magento 2.1?

Is there a standard/best practices way to add UI for third party category attributes in Magento 2.1? In previous versions of Magento 1 and Magento 2, the user interface at Products -> Categories ...
3
votes
2answers
3k views

Magento 2 - Moving Category Listing Toolbar

I'm trying to move the category page's toolbar above the left and right column in the 2columns-left layout so it spans over both the left column and right column, but nothing seems to be working. In ...
3
votes
3answers
5k views

Magento2: 3columns Layout only renders 2columns-right

I have the following layout in Magento2: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="3columns" xsi:noNamespaceSchemaLocation="../../../../../../....
3
votes
1answer
339 views

Change the load order from addtocart block with the addto block

I getting crazy with the template system from Magento. I tried to change the load-order of my "Add to Cart" and "Add To" block for customize article. So that the "Add To" block gets loaded before ...
3
votes
3answers
3k views

How to put my block in catalog_product_view page

My XML code is here <?xml version="1.0"?> <layout version="0.1.0"> <catalog_product_view> <reference name="product.info"> <block type="demo/demo" before="...
3
votes
2answers
7k views

Varien/SimpleXML/Config.php errors in system.log

I'm seeing weird errors in my system.log: 2014-12-01T13:35:05+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 47: parser error : Opening and ending tag mismatch: config line 1 and ...
3
votes
1answer
319 views

Editing the layout of additional product info in sales email? [closed]

I have an individual block in app/design/frontend/base/default/layout/sales.xml <block type="core/text_list" name="additional.product.info" /> I want to style it's output like so ("PHP" would ...
3
votes
1answer
372 views

Disable default magento free shipping method at frontend ONLY

Store -> Settings -> Configuration -> Sales -> Shipping Methods -> Free Shipping How can I disable this default feature of Magento in frontend only?
3
votes
1answer
212 views

magento 1.9 custom module fronted error 404

I have problem to acces the custom module frontend controller. I am following a basic tutorial to build a custom module. These are the files I've edited: /var/www/html/magento/app/etc/modules/...
3
votes
2answers
264 views

Extending the `events.xml` file

I'm trying to disable the default UrlRewrite event observers in the magento-catalog-url-rewrite Module. I have extended the file under app/code/xyz/MagentoCatalogUrlRewrite/etc/events.xml, set the ...
3
votes
1answer
53 views

Add js file to Magento 2 admin

EDIT: After recreating the folder structure the default.xml worked. It was somehow not loaded. I am trying to add a js file to the backend of Magento 2. I have seen several posts about it and it ...
3
votes
3answers
4k views

Magento 2 - How to remove main navigation from XML

We want to remove Magento's default main navigation using xml file but don't want to use remove, because ifconfig not working with remove. We want to remove main navigation only when our custom ...
3
votes
1answer
1k views

How to change the layout of category page when user logged in magento 2?

I want to change category layout when user/customer successfully logged in. I had a normal category page with 2 column layout for public user(not login) and I want to change into 1 column when user ...
3
votes
1answer
1k views

Adding custom layout xml to adminhtml

I want to add a custom layout xml file to update adminhtml. I have it working now by adding the xml file to app/design/adminhtml/default/default/layout/[module]/custom.xml. I don't like adding this ...
3
votes
2answers
60 views

Unable to create menu in magento admin panel

I need to create menu in the magento admin panel. I am not able to create menu in my admin panel. Here below is my xml code. The following code contains the adminhtml part using which I need to create ...
3
votes
2answers
99 views

Is it OK to make all XML changes in a singe file in Magento 2.x?

In my /app/design/frontend/VENDORNAME/THEME/Magento_Theme/layout/default.xml I have made changes like this (changes that are effecting Magento_Catalog): <move element="product.info.media" ...
3
votes
1answer
526 views

convert widget block codes to phtml and xml layout

Sorry I am new to Magento and please bear with me if I am not using the proper terms. So I got an extension and it can be integrated anywhere on my CMS or any pages with the following codes: {{block ...
3
votes
1answer
5k views

Add CMS Static Block underneath categories in left sidebar

Because my category pages are quite empty, I wanted to fill up some space with a Static Block on the left sidebar of the page. I've created a Static Block in the CMS of Magento, and I'm able to place ...
3
votes
1answer
130 views

Layout VS Layout update

When I started to learn abot XML Layout in magento, I come to know two terms namely Layout and Layout Update. Definition for these two terms in an article was The term layout refers to the visual ...
3
votes
0answers
23 views

Ordering JS/CSS load order across multiple xml blocks

When rendered, the below core XML loads the require.js file in (for example) Position 10 in the HTML Source: vendor/magento/module-theme/view/frontend/layout/default_head_blocks.xml <head> ...
3
votes
0answers
220 views

how to add default filter in magento admin ui component in magento 2

Hi I want to filter the admin grid data in default Magento 2 how to add default filter in Magento admin UI component in Magento 2
3
votes
1answer
80 views

Custom Theme XML Files Changes 2.2 to 2.3

Does anybody know if there have been changes to the way XML files from custom themes are included in Version 2.3? I have a very simple XML file to modify the Magento Advanced Search page. The custom ...
3
votes
0answers
132 views

Magento 2 - product details tab title as an clickable link url to another page

How to make the product details tab title is clickable link, and grab the SKU from the current product page to the link? For example, I created a custom product tab called "Download", and when ...
3
votes
0answers
929 views

Magento SOAP Fault “Invalid XML”

When i try to access https://www.example.com/index.php/api/v2_soap/index/ It always gives <SOAP-ENV:Envelope xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-...
3
votes
0answers
372 views

How can I change grand total when user Clicks on Custom Payment method?

I am using the one-page checkout module. I want to change the grand total when user/customer selects the payment method. If customer/user selects the online payment option then grand total should ...
3
votes
4answers
5k 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
0answers
491 views

Magento 2: Customer session not getting on enabling cache in backend

This is my XML file. <referenceBlock name="category.products.list"> <action method="setTemplate"> <argument name="template" xsi:type="string" cacheable="false">Company_Module::...
3
votes
3answers
395 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-...
3
votes
2answers
2k 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
5answers
13k views

Magento 2: How to change image size of swatches?

I found the file to change the image size of Swatches here and it works when I change it in that place: vendor/magento/module-swatches/etc/view.xml However, if I move it to my theme it doesn't ...

1 2 3
4
5
24