Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
1answer
966 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-...
1
vote
2answers
1k 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/...
0
votes
0answers
34 views
+50

Error: Mismatched anonymous define() module: function(t) in Magento2

i have a problem with requirejs. I want to render a map on, for example catalog_product_view.xml using THIS. So i have to include https://sandbox-geowidget.easypack24.net/js/sdk-for-javascript.js on ...
0
votes
0answers
14 views

Show blocks like JQuery UI Tabs on product detail page in magento 2

The related and alternate products blocks are showing as siblings one after the other. See current layout screenshot. The code is inside catalog_product_view.xml: <move element="catalog.product....
4
votes
1answer
963 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"...
0
votes
1answer
16 views

What does “catalog_category_view_type_default_without_children.xml” do exactly?

What does the layout file "catalog_category_view_type_default_without_children.xml" do exactly? From the name of the file it sounds like it's purpose is to allow you to customize the layout of ...
0
votes
1answer
24 views

i want to override file vendor/magento/module-theme/view/frontend/layout/default.xml in magento 2.3 porto theme

I am using smartwave porto theme in magneto 2.3.2.I am new in magento.How to override this above title file. But I checked in app/design/frontend/Smartwave/porto/Smartwave_Porto/ In above path module-...
3
votes
3answers
2k 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 ...
0
votes
1answer
671 views

Product get Small image from collection

i have tried a lot to get only small image from product collection of product object to create custom XML feed for my products. but could not able to get succeed yet. $imgname = Mage::helper('...
0
votes
1answer
1k views

Magento 2.2.2 - Move custom navigation into header-wrapper in XML and make it responsive

Below xml adds custom navigation before category. To make it responsive I have included it under block navigation.sections. <referenceBlock name="navigation.sections"> <...
0
votes
2answers
47 views

Element 'handle': Character content other than white space is not allowed because the content type is 'element-only

Migration from Magento1 to Magento2 was done using the data migration tool successfully. However, certain product pages end up throwing the exception as seen on the attached screenshot. To isolate ...
0
votes
1answer
772 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"> <...
4
votes
1answer
1k 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
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="-" /> <...
0
votes
0answers
22 views

How to exclude all JS in a custom theme?

I want to include my own js or include only a few js in require.js, but need to exclude all js files / css files being loaded default by Magneto or any module. It is explained here: https://devdocs....
0
votes
0answers
17 views

Please correct the XML data and try again Magento 2.1.9

Getting these errors in my system.logs continuously [2020-03-05 07:11:13] main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_391fccd54da687afc76a5d6559b714906 and handles default, ...
0
votes
2answers
1k views

Add inline style to element in XML Magento 2

How do I apply an inline style to an element in an XML layout file in Magento 2? <container name="header.container" as="header_container" label="Page Header Container" htmlTag="header" htmlClass="...
0
votes
0answers
17 views

Images invisible on catalog page upon resizing images in view.xml

I have changed the size of image in view.xml as <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <view ...
1
vote
1answer
767 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
0answers
19 views

In checkout page while I'm switching the address the shipping method is not get updated Is there any way to fix the issue?

In checkout page while I'm switching the address the shipping method is not get updated Is there any way to fix the issue ?
2
votes
1answer
42 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="...
1
vote
1answer
32 views

How to Set Condition for MetaDescription in Magento 2

I am trying to set a meta description dynamically for Magento 2 categories as default rules. And I did manage to do it, here is my code. public function execute( \Magento\Framework\Event\Observer $...
1
vote
1answer
31 views

Dynamically Set the Category Page Title and Meta Description

I am using Algolia Instant Search for the category to show quick results on the category page the same as on the search result page. I have many categories on the website, and 90% of them missing the ...
0
votes
3answers
302 views

Magento 2, Magento Unprotected XML

I have a Magneto 2.2.3 instance and when we check for security scan it is showing below error: We have determined that your Magento installation's configuration file(s) are publicly accessible ...
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 ...
3
votes
2answers
332 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?
1
vote
1answer
18 views

Magento2 - How to create sitemap pro-grammatically with custom script

I want to create sitemap pro-grammatically using script, any one have idea, to create sitemap using API or another way...
0
votes
0answers
28 views

Magento2 - Category filter is not working for all product list

Magento2 - Category filter is not working for all product list Issues page
2
votes
2answers
278 views

How to fetch post method xml data in Magento2 controller

We have to implement the punchout concept in magento2. There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
0
votes
1answer
26 views

Get custom attribute in one step checkout

I'm trying to get a custom attribute (mgs_brand) in MagePlaza's One Step Checkout. I've created a catalog_attributes.xml file like so - <?xml version="1.0"?> <config xmlns:xsi="http://www....
0
votes
2answers
121 views

Layout Update XML for Category in Magento 2.3.4

Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
1
vote
0answers
20 views

Magento 2 How can I add 2columns-left in container area like the one I have shared

I want to add 2 columns one for the menu and other for the text in container Page.top is the menu container which I have move into a new container Now In that new container page top after banner I ...
0
votes
2answers
40 views

Magento2 - Change my account label to image

I tried to change the my account link to a image but then found that it was called in xml in vendor/magento/module-customer/view/frontend/layout/default.xml as label . So how could I change it to ...
1
vote
1answer
21 views

Error of layout xml : Element 'update': This element is not expected

I'm upgrading a theme from 2.2.x to .2.3 there are so many xml in this theme have the following directive <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
3
votes
2answers
64 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?
12
votes
3answers
30k views

Magento new custom block module

I'm using Magento version 1.8.1.0. I'm trying to create a new custom block module, which I'll use for creating a new home page. Namespace: Crusader Module: CLHomePage Block Type: crusade home Class:...
0
votes
1answer
122 views

Move custom block immediate after nav

I created a custom block on the category page to show category title full width after the menu. For that, I created one XML code on local.xml of the theme layout file. <catalog_category_default>...
1
vote
1answer
1k views

Magento2 : How to add <item> in XML <block> <arguments>

I would like to update the following layout .xml : <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <...
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/...
0
votes
0answers
28 views

Magento2 - Change position of wishlist on catalog-category view page

I want to change the position of Wishlist icon on the top of image . Do I have to achieve this through xml or through css? I tried through xml but I couldn't move it over the image. Here is the ...
0
votes
1answer
836 views

Huge input lookup on admin configurable product page

Whenever I try to open a large configurable product with over 4000 simple products I get the following error: Warning: DOMDocumentFragment::appendXML(): Entity: line 1: parser error : internal ...
0
votes
2answers
807 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
0answers
15 views

magento 2 in how to category filter in all subcategory list show?

magento 2 in how to category filter in all subcategory list show ? Category • Technology & gadgets ◦ Power Bank ◦ Fitness Tracker ◦ Smart Watch ◦ Wireless Chargers ◦ Mobile ...
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
2answers
2k 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 ?
2
votes
2answers
84 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\...
0
votes
1answer
36 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
3
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/...
0
votes
1answer
29 views

how to make noindex nofollow for login page

I want to make noindex nofollow for login page, i tried <customer_account_login translate="label"> <label>Customer Account Login Form</label> <!-- Mage_Customer ...
1
vote
2answers
5k views

What is <update handle=“customer_account”/>?

What is the Handler? Can someone explain the below code? <update handle="customer_account"/> or same code like above for example : <update handle="default"/> and how it worked !?

1
2 3 4 5
23