Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
2
votes
2answers
3k views

Using Magento's method=“removeItem” to remove js ONLY for IE8 and below

Does anyone know why the following doesn't work for removing items from IE8 and below, but does work for adding items? <action method="removeItem"> <type>skin_js</type> <...
2
votes
3answers
6k views

Why is my default.xml not working?

I have in my CustomTheme a default.xml file. I tried to get the xml to work and used some of the samples I found here on StackExchange. Non of them are working for me? So apparently I have done ...
2
votes
3answers
4k views

How to add breadcrumbs in my account pages

I want to add Breadcrumbs in my account page & it should be displayed on every tab selection below the Navigation menu bar. But it is not showing anything on my page it is looking like this But ...
2
votes
2answers
3k views

Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]

I get the following repeated a lot in magento 1.9.1.1 system.log. any ideas? 2015-05-17T09:17:55+00:00 ERR (3): Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>...
2
votes
1answer
4k views

Magento 2: Move up-sell product to product.info.details tab

I would like to move my up-sell products into a custom tab on product view page and can't find a way. How can it be done by modifying catalog_product_view.xml. Please advise, thanks.
2
votes
1answer
5k views

Magento 2 Block/Element order

A pretty basic question mainly because I'm still trying to wrap my head around Magento 2's templating system. But I'm just trying to switch the order of the mini-cart element and the search element ...
2
votes
2answers
10k views

Adding a css class / div wrapper to a block

I have the below XML which adds my static block to the page sidebar, then removes the wishlist. I would like to add a div wrapper to this static block with a css class. I thought this could be done ...
2
votes
4answers
2k views

not able to add custom block in cart page above coupon block

i am adding the block through xml on cart page. i searching a lot but could not find the find the solution where i am getting wrong. <checkout_cart_index> <reference name="checkout.cart"...
2
votes
2answers
365 views

Magento core code - why module init files some in Mage_All and some not

Looking at the core code under app/etc/modules... Why does Magento use Mage_All for a large part of the modules and individual files for the others? I understand that Magento will ultimately merge ...
2
votes
5answers
162 views

How do I remove recently view products from list view using XML?

this is my xml code: <catalog_category_default> <remove name="right.reports.product.viewed" /> </catalog_category_default> I am trying to remove the recently viewed ...
2
votes
2answers
6k views

Overriding price.phtml template using addPriceBlockType in Magento CE 1.7.0.2

I'm writing a custom extension and trying to override the price.phtml template (catalog/product/price.phtml) with my own but I cannot get it to work. The documentation and examples I have seen ...
2
votes
1answer
793 views

When we have to call a block in phtml as getBlockHtml('') or getChildHtml('')?

In this case I suppose that I can call this block in a phtml as getBlockHtml('my.name') right ! To call it as getChilHtml('my.name') what do I have to do in a xml ? <my_handle_layout> <...
2
votes
3answers
4k views

System.log error simplexml_load_string (Extra content at the end of the document)

System.log error 2016-02-04T03:16:25+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Extra content at the end of the document in /var/www/html/magento/app/code/core/...
2
votes
2answers
1k views

XML tag to add array in cache tag for layout file

As magento1.9.2 is added cachetags function in to construct functon i must have to give seperate cachetags for each block element because its get conflict with varnish to read key. i have solved this ...
2
votes
1answer
161 views

How to override the Catalog Widget PHTML file into custom module?

I need to override the widget template file /vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/new_grid.phtml but in xml file the phtml file was not mentioned at any ...
2
votes
3answers
2k views

How add div after image block in Magento 2?

I want to add custom div after image block of product view page. In that div I will add custom html like add any text, image etc. Anyone have idea how we add custom div by plugin or observer?
2
votes
2answers
616 views

adding a new container to root

I'm trying to add a new container into root. I've tried placing the code to empty.xml, default.xml, 1column.xml. I've checked with changing another element in the same file if the file is loaded and ...
2
votes
1answer
1k views

Wrapping search and cart in element Magento 2

I understand that in mage2 the header is generated through xml and knockout js, so all the blocks can be controlled with xml and the node - move My question is i have the mini cart and search block ...
2
votes
3answers
2k views

How to add custom css in luma theme in magento 2.1.2

Hi As Below path i have added code , app\design\frontend\Magento\luma\Magento_Theme\layout\default_head_blocks.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
1answer
4k views

Moving a block to a different block

I'm using a module of Amasty that adds a block to my catalog product view's content reference. This puts in on the top of the page, but I want to move it just above the upsell in the product.info ...
2
votes
2answers
86 views

layout xml block=“” usage - exam question

A couple of weeks ago I failed my frontend developer exam by 1 point, Tomorrow I am going to retake. I have a question which I want to be sure about. In the exam I had some xml snippets and I had to ...
2
votes
2answers
784 views

Layout file not being loaded

I'm brand new to Magento and am having trouble getting my config.xml file to load my layout file for the url: "localhost/index.php/moduleone/index/index". Can somebody help me figure out what I'm ...
2
votes
2answers
5k views

Calling a template from within a widget

I'm designing a new products widgets that will be used in our CMS page. I'd like to call the toolbar.phtml file in order to display some information on the page, however, i'm unsure where to add this ...
2
votes
2answers
13k views

Add custom block layout to product page inside add to cart area, visible for all types of products

After struggling the whole week to create an simple extension for a project of mine, I thought I finished and covered everything. Turns out I was wrong. The thing that I cannot make it work properly ...
2
votes
1answer
2k views

custom config for module - not store config

If I want to add a custom configuration node in my modules config.xml, how would I go about this and how to retrieve the values? I do not want store configuration, just a node in my modules ...
2
votes
3answers
551 views

How to remove tooltip from email field on checkout

Tell me how to remove tooltip from the checkout email field. I tried this way app/code/Dv/Tooltip/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
2
votes
1answer
2k views

How to add layered navigation in Magento 2 on Top After Menu

I tried to move layered navigation from left-side to top of the products.But Nothing displays When I changed the page layout from 2 column layout to 1 column layout then it shows only product list.
2
votes
3answers
3k views

Remove the main menu from the homepage

I'm trying to remove the main menu from the homepage, for this I used the following code in my custom template: <referenceBlock name="store.menu" remove="true" /> But the menu is still there ...
2
votes
3answers
8k 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 ...
2
votes
1answer
1k views

Can I use Magento_Theme/layout/default.xml for all layout updates?

In magento2 Layout updates are usually spread accross multiple files in your custom theme. e.g. Magento_Catalog/layout/catalog_product_view.xml Magento_Theme/layout/default.xml Magento_Customer/...
2
votes
2answers
233 views

Rewrite block declaration explantation

I want to know some detail in config.xml about rewriting block for exemple, usually when we create a block we need to declare it in a xml like this: <global> <blocks> <...
2
votes
1answer
737 views

Magento 2 layout files & folder discrepancy

I've read about a folder structure discrepancy depending on how you install your Magento 2 which would cause the app/design themes to be moved into a vendor/magento/ folder. Magento 2 - discrepancy ...
2
votes
1answer
296 views

List of Magento XML Layout Tags

I have search google, loads, but with no joy. I am thinking this doesn't exist on the internet, or (more likely) I just don't know the right search terms to find this, so I apologize in advance if ...
2
votes
1answer
121 views

Rewrite with class alias?

In an extension I have a rewrite for Mage_Sales_Block_Order_Info. <config> <global> <blocks> <sales> <rewrite> <order_info>...
2
votes
2answers
9k views

Add block before content in magento page

I need to add a block right after the breadcrumbs in one of my pages, my-page I tried creating a block called my-block in the admin, and adding <?php echo $this->getChildHtml('my-block') ?> ...
2
votes
1answer
4k views

How to move the Layered Navigation on the Search Results page

I'm trying to move the layered navigation block from the left sidebar to a div in my /catalog/product/list.phtml I did this successfully in my product category view, by adding getChildHtml('catalog....
2
votes
1answer
182 views

Magento 2 Product page layout change

Magento 2 change the product page layout as below :- <referenceBlock name="head.components"> <block class="Magento\Framework\View\Element\Js\Components" name="...
2
votes
1answer
226 views

Overwrite Category Display Mode from “Static Content Only” to “Products Only” via Layout XML

I want to overwrite the "Display Mode" backend setting of a certain category via layout xml file (e.g. catalog_category_view_id_XYZ.xml). Any idea how to update the layout handle? I want to do this ...
2
votes
1answer
610 views

Get source xml of error

Is there a way to resolve any xml-file that causes an error? I cannot find the source file that causes this error (happens on checkout): Magento\Framework\Config\Dom\ValidationException): Element '...
2
votes
1answer
175 views

Show different logo when logged in

How to show different logo when the user is logged in?
2
votes
2answers
139 views

Prevent page layout from inheriting default.xml?

I have a <link> tag in the <head> section of my default.xml file, and I'd like to prevent that particular tag from rendering on the checkout page. Is there anything I can add to ...
2
votes
2answers
7k views

How to create a new page without using CMS?

Is there any way to create a new custom web page without using the Magento CMS Admin panel? I'd like to create a new web page (let's say newsletter) using the 1 column layout. But I would like to ...
2
votes
3answers
671 views

what does the <fieldset> node mean in config.xml of a payment module? [duplicate]

I'm trying to learn custom payment modules creation, but I can't really understand what does the node: <fieldsets> <sales_convert_quote_payment> <...
2
votes
2answers
2k views

Magento theme view.xml throws error

I have installed template monster theme 57559 into magento 2.0.2. After so many hassles, loaded sample data . Now view.xml throws an error. How to fix it? Invalid XML in file /opt/lampp/htdocs/...
2
votes
1answer
46 views

How does Magento run if many extensions override it?

2 extensions are used which override customer_account_create.xml Example: Extension 1: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" ...
2
votes
2answers
463 views

Magento 2.1 :- CMS Page and Static Block

Here one issue in my magento 2.1. I create one di.xml file for my own module but i got error in cms page and static block. Check below image for cms page and static block error. CMS Page:- Static ...
2
votes
1answer
3k views

Magento 2: Update the CSS class name of #maincontent

Is there a way for me to remove the class name 'page-main' from the 'maincontent' div and add a new class name?
2
votes
3answers
4k views

simplexml_load_string error

This is my System.log what problem...how can i modification for this error ? my homepage have many usage cpu. (sometimes cpu 100% and not opened homepage) please help me ! 2016-02-15T07:52:34+00:00 ...
2
votes
1answer
2k views

Custom Controller Action Url Rewrite from config.xml Not working

I need to the rewrite custom controller action url, I have tried the below code in config.xmlwith the help of this and this. When I entered the url as http://www.website.com/orders instead of http://...
2
votes
2answers
21 views

Moving Left bar Block UP!

I have just added a static block into the left bar but am sturggling to move it to a certain position! If I want to move it to the top I assumed you leave sibling blank and put after as 0. <...

1
3 4
5
6 7
24