Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Remove “Add to Cart” via Layout Update XML Magento 2.1

I'm trying to figure out how to remove the add to cart from specific items only in Magento 2.1 via "Layout Update XML on the product backend. In magento 1.x it was simple <reference name="content"...
4
votes
2answers
521 views

how Magento validate XSD schema?

As we all know that Magento 2 uses XSD schema files to validate the contents of all module configuration files. But at that point, I have one question in my mind. How does Magento validate XSD ...
4
votes
4answers
6k views

Move “Add to Wishlist” Button after “Add to Cart” in Product View

How to move "Add to wishlist" button after "Add to cart"? I try using move but it's just working on the configurable products. I want it to work too on the simple products. Check my ...
4
votes
4answers
1k views

Disabling a UI component field while add new product in Magento 2

I have a UI component defining field, I want to display this field while edit existing product, and hide this field when add new product. Namespace\Modulename\view\adminhtml\ui_component\...
4
votes
2answers
2k views

Move/Push page.main.title block into Breadcrumbs Magento2

I want to move page.main.title block to my breadcrumbs container, not before or after it, I want to push it inside breadcrumbs template and remove other wheres. So this is my ~/Magento_Theme/...
4
votes
1answer
2k views

Magento 2 : </depends> is Not Working in Widget.xml

</depends> is not working in my below widget configuration inside widget.xml. Can any one help me on this. I want to display values based on pre selected value. <parameters> &...
4
votes
1answer
487 views

Magento 2 urn: no schema location

when I open up a magento2 module.xml file, I see the location of the default module.xsd schema, if there is not a schema already set, defined like this : xsi:noNamespaceSchemaLocation="urn:magento:...
4
votes
3answers
445 views

Magento writes system.log with log disabled

I disabled logging from the System > Advanced > Developer screen (I've checked that is disabled for all the websites/stores/storeviews) but Magento continues to write errors inside "/var/log/system....
4
votes
1answer
3k views

Layout update handle per storeview

I'd like to change the title of certain blocks per storeview in my local.xml, however, I've tried numerous things and it doesn't seem to pick up on my changes, not even when I 'unset' the data, and ...
4
votes
3answers
995 views

Is It Possible To Move An Admin Menu Node?

We're using Fishpig's Attribute Splash module which inserts a node "Splash" at the top level of the admin menu. We'd prefer it to live under the Catalog menu though. Here's the original XML the ...
4
votes
2answers
301 views

xml of config is incomplete (countries not shown)

I'm having problems with showing the countries in my magento website. When you want to give in you're billing address it's required to give in your country. The problem is that the countries are empty ...
4
votes
1answer
3k views

How to pass arguments to phtml block?

I've updated the default breadcrumbs.phtml which now displays the company logo within the breadcrumb section, however I do not need the logo to show on category pages. I have tried to update my ...
4
votes
1answer
1k views

How can we write an XSD file in Magento 2?

I'm looking for some documentation or tutorial for creating custom xsd in Magento 2 but failed to find any good resource. I already found URN Schema Validation article in Magento 2 official ...
4
votes
3answers
2k views

How to override custom css by parent css using local.xml?

I have a simple local.xml that attempts to include a custom wc_styles.css in my head block, to apply for all pages in my site. <?xml version="1.0"?> <layout> <default> <...
4
votes
1answer
2k views

Invalid XML - Element 'config': Missing child element(s)? [closed]

It is in the checkout process. It seems the ajax call get 500. It only appears in the local environment. I don't know how to fix it... The URL is: {localhost}/default/rest/default/V1/guest-carts/...
4
votes
0answers
83 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
4
votes
1answer
2k views

Magento 2 Blank Layout Page

I tried to create a new tab in customer edit backend. First i create the app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
4
votes
1answer
5k views

Magento 2.2.2 - Display Customer Account header dropdown and remove Sign Out link post login

After successful login, Luma theme shows customer account details in dropdown on header as seen in below image I need to replicate the same in our custom theme which has Blank as its parent. Vendor/...
4
votes
0answers
2k views

Magento 2 - Overwrite di.xml for Core Cms module

I've looked and looked, but can't find anything explaining what i need to do. Problem is, i want to add an svg file to the image uploader in the WYSIWYG. I know i need to extend the core to do this, ...
4
votes
4answers
2k 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="-" /> <...
4
votes
1answer
1k views

XML - Cannot move product.info.review after product.info.overview

I'm trying to do the following, moving product.info.review after product.info.overview (short description) I've used the following code, but it is not working: <move element="product.info.review"...
3
votes
4answers
13k views

Add .phtml file on all pages magento 2

I want to add my custom.phtml file on the top of all pages. How can I do this using custom module ? Any suggestion would be appreciated. Thanks
3
votes
3answers
10k views

Magento 2: Rearrange the Checkout page Summary Sidebar

Currently, the Summary on the Checkout page displays the totals at the top of the summary and the cart items beneath it. I would like it the other way around – to place the cart items at the top of ...
3
votes
3answers
9k views

How to remove tool bar in Magento 2

I would like to remove the tool bar from my theme since I don't have that many products. So far I have tried this in my /app/design/frontend/VENDORNAME/THEME/Magento_Theme/layout/default.xml <...
3
votes
3answers
8k views

How to change column layout for contact us page in magento?

I want to change contact us page layout from current 2columns-rightlayout to 1column layout, i have no idea how to do that.
3
votes
3answers
6k views

How to create custom cms page layout file?

In Magento 2, is there any solution to creating a custom layout XML file for custom cms page? I want to add XML code and CSS and Js only for my custom cms page. I know about there is one field ...
3
votes
2answers
8k views

Magento 2 - Rearrange the order of the Cart and Totals on the Order Summary Checkout Sidebar

I would like to move the Cart to be above the Totals in the Order Summary Checkout Sidebar. I have located both the Totals and Cart xml items in the checkout_index_index.xml in the Magento checkout ...
3
votes
1answer
5k views

Move short description below page product detail title via XML

I want to move the short description below the title. See this screenshot: I tried it with XML in catalog_product_view.xml: <move element="product.info.extrahint" destination="page.main.title" /...
3
votes
2answers
2k views

Default page in System Config? Everything displays but the main content

Can someone explain me, which page is shown as default when entering the system configuration in the backend? What is the logic behind it? Is there a cookie based "remember the last system config page ...
3
votes
3answers
14k views

Magento 2: Add class to pre existing xml container

How do you add a class to a pre existing xml block? Example: <container name="alert.urls" as="alert_urls" label="Alert Urls" after="product.price.tier"/> <block class="Magento\...
3
votes
1answer
2k views

How to change layout of categories on base of categoy level in magento 2

I have a lot of categories with different levels (parent/child structure) and I want to implement different design/structure of each level category. Suppose I have these categories => Category A (...
3
votes
2answers
6k views

How to move correctly block-search and minicart to panel wrapper? Magento 2

How to move correctly block-search and minicart to panel wrapper?
3
votes
3answers
996 views

Get Block name for getPriceHtml()

I want to get block name from where price.phtml called.Also I cant find block name from catalog.xml.I fount this function but I don't know block name for this. <?php echo $this->getPriceHtml($...
3
votes
1answer
713 views

Possible XML handles in Magento 2?

I'm aware of how the XML system in Magento works with handles such as catalog_product_view.xml and catalog_category_view.xml to define resources for specific (sorts) of pages. For seperate simple ...
3
votes
3answers
9k views

Newsletter subscription box positioning in footer

EDIT: SOLVED, see answer below (will accept when I can). I wanted to move the newsletter block on the frontend of my site to the footer. So I changed this in newsletter.xml: ( Previously the ...
3
votes
3answers
24k views

magento 2 : where is Layout XML File for Homepage located

\vendor\magento\module-catalog\view\frontend\layout\catalog_product_view.xml is the layout xml file for Product Detail Page. Where are the layout xml files for Homepage and for Category Page (page ...
3
votes
3answers
311 views

What is “product wrapper” XML name?

I'm trying to move products element and can't find it's name to reference via XML. The element has class "products wrapper grid products-grid" in rendered HTML. Using Magento 2.
3
votes
2answers
12k views

Magento parser error “Start tag expected, '&lt;' not found”

I am getting these errors in system.log. 2017-06-20T11:59:55+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '&lt;' not found in home/www/lib/...
3
votes
5answers
8k views

Magento2 - cannot load custom css - via default_head_blocks.xml

UPDATE Seems that you cannot inherit Luma.... it works properly when inheriting from blank. github magento source says luma wasn't meant to be inherited. Challenge is, I really like luma, but need to ...
3
votes
1answer
8k views

Move navigation.sections into the page.header element in XML?

This is my code: <move element="navigation.sections" destination="page.header" /> But the navigation bar disappears then. Whats wrong here?
3
votes
1answer
2k views

What is the use of the view.xml of theme etc directory

I found this file located in the app/design/frontend/Magento/luma/etc/view.xml Can we depend on this file to make change to the image resolution? Any other specific use of this file. Shall we put ...
3
votes
2answers
3k views

Magento 2 - Custom Homepage block not showing

I have developed a custom homepage layout and applied to the homepage. I've tried to add a created block in Magento_theme/templates/html/homepage.html but it is not displaying. Can anyone check ...
3
votes
3answers
2k views

Magento 2: Why my custom CSS isn't working?

I'm creating a new Magento 2 theme. I've needed to add custom CSS to I'd created 2 CSS files local-l.css and local-n.css in this location: app/design/frontend/myvendor/mytheme/Magento_Theme/web/css ...
3
votes
1answer
5k views

Magento 2 theme header - Welcome message

I've been learning the ropes in theming in magento 2, I've started to get the hang of it with my own theme using Snowdog as my parent and styling in sass. My question is, I came to remove the welcome ...
3
votes
2answers
1k views

How to use Customer Account menu on custom page

I am rebuilding an old 1.x module for Magento 2, adding a "customer invoices" page to the Customer Account section of the site, which brings in PDF invoices from a proprietary external source. I have ...
3
votes
3answers
5k views

Magento 2: Add main menu to checkout page

Using Magento 2 with my child theme of Luma I would rather the checkout pages showed the header and footer. Thanks to this thread I have found how to add most of it back in. The only bit I am ...
3
votes
1answer
3k views

What /etc/acl.xml file is used for in Magento 2.0.X

I see that most(if not all) of the Magento core modules have a acl.xml file placed in magento-module/etc/ I could not find any documentation on this, so basically I want to know, what is this ...
3
votes
2answers
290 views

using local.xml or specific .xml

What are the advantages (or disadvantages) of using local.xml to modify a block (or something else) instead of editing a specific page (ie. catalog.xml or something else)? When to use which? I'm ...
3
votes
1answer
6k views

error on line 11 at column 16: xmlParseEntityRef: no name in Magento 2

I am getting following issues when XML file open in the browser:- This page contains the following errors: error on line 11 at column 16: xmlParseEntityRef: no name Below is a rendering of the page ...
3
votes
1answer
2k views

How add new tab with links to menu (mobile version) on Magento 2?

I create CMS block with my links and include them to app/design/frontend/My-vendor/Name-theme/Magento_Theme/layout/default.xml <referenceContainer name="header.panel"> <block ...

1 2
3
4 5
24