Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
2answers
380 views

How to override or extend etc/view.xml file in custom module in Magento2?

I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module. I have tried to override in app/code/<vendor>/<module>/etc/view....
1
vote
1answer
521 views

magento dev:urn-catalog:generate command fails to detect secret file

I'm running the following command "magento dev:urn-catalog:generate .idea/misc.xml " to use the functionality of Magento 2 to automatically resolve all my URN's so PhpStorm will stop giving me ...
1
vote
1answer
1k views

Magento 2 Knockout XML->PHTML->JS->HTML

I want to display static block in html login popup during checkout, but there is a problem. This is the html template which is called from js, this js is called from phtml, and this phtml template ...
1
vote
1answer
874 views

Exception in Magento log: the element can't have a child

I found the following errors in the exception.log and debug.log files in /var/log folder: [2019-12-17 16:23:05] main.CRITICAL: The element "product.info.options" can't have a child because "product....
1
vote
2answers
1k 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
879 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 ...
0
votes
1answer
17 views

adding tag to a specific page

hello everyone i have added a specific tag to all page of my website , but I want to add it to just the home page , can i achieve that ? i have added the meta tag like below, but it appears on all ...
1
vote
2answers
2k 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
3answers
1k 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
2answers
860 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.
0
votes
1answer
1k 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-...
2
votes
2answers
6k 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 ...
7
votes
2answers
4k views

Magento 2 - How to reset XML block arguments such as CSS

I'm wondering how to unset CSS that has been set through the XML, for example: <block class="Magento\Framework\View\Element\Template" name="navigation.sections" before="-" template="Magento_Theme::...
1
vote
1answer
1k views

Magento’s XMLConnect basics guidelines please

I have investigated and found that it's possible to make android application via magento's XMLConnect extention. And as inchoo said that it is coming pre-installed in magento since CE1.5 and later. ...
2
votes
2answers
79 views

Magento 2.3.4 new layout update doesnt work

I have an issue with the new Magento layout update xml feature. I added a custom layout update file to change a category. It shows up in the Magento backend, but when I select it, nothing changes on ...
0
votes
0answers
10 views

Resize just bundge and grouped images for list and PDP

How to resize just bundge and grouped images for list and PDP? Looks like it's necessary to do via view.xml, but IDs are not clear
1
vote
1answer
2k 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"> <...
3
votes
1answer
100 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 ...
0
votes
1answer
824 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
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="-" /> <...
0
votes
0answers
29 views

Migration from M 1.9.2.4 to M 2.4.1 XML file is invalid

I have created a custom module then override the config.xml & map.xml for 1.9.2.4 folder as instructed by magento. I have added the source and destination db info. and M1's key as requested there. ...
0
votes
3answers
41 views

Magento 2 - How to render a block inside another?

On the PDP I am trying to create a new block (product.info.main.inner) inside of product.info.main so I can pass arguments to it and then move all off the child blocks inside product.info.main.inner. ...
0
votes
2answers
33 views

Magento 2 how to show custom block before product.info.details and after media

Magento 2.3.5-p2 how to show custom block before product.info.details and after media ? <div class="product-info-main"></div> <div class="product media"></div&...
0
votes
1answer
21 views

M2.4.2 - XML the footer HTML markup not coming altogether any clue?

Developing a new frontend using BS5, the issue with the layout XML keeps breaking, the footer HTML markup not coming altogether any clue? <?xml version="1.0"?> <page xmlns:xsi="...
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
3answers
9k views

MAGENTO 2 remove sidebar.main sidebar.aditional with xml update does not work

So I have the in my category->Display Settings->Display Mode set to "Static block only" And category->Design->Layout set to "1 column" And category->Design->Layout Update XML <...
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</...
1
vote
1answer
850 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="-"/>...
2
votes
1answer
155 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 ...
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 ...
1
vote
2answers
44 views

How to add an input field with a date to the checkout page?

I'm studying Magento2, downloaded the module https://github.com/ecomteck/module-delivery-date and added it to the app / code / vendor / module-delivery-date folder I cannot understand in which files ...
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
851 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
1answer
19 views

Magento 2 force secure URL via XML?

In M1 it was possible to add some lines to config.xml to force secure urls for certain pages ... <?xml version="1.0"?> <config> ... <frontend> ... &...
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 ...
0
votes
0answers
21 views

Invalid XML Magento 2 theme

Recently I purchased a Magento 2 theme and their support has been less than helpful. I'm still pretty new to Magento 2 and XML Files overall. Is there anything obvious that I'm missing? Exception #0 (...
1
vote
2answers
3k 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
1answer
366 views

Magento “left” reference element xml layout problem

I have been trying to solve the issue for past few days with no luck. The left sidebar is missing from all of the 2column-left pages. It worries me especially when it comes to customer account as the ...
1
vote
1answer
647 views

Customer account information links disappeared from left column [duplicate]

I have been struggling with my Magento 1.9.2.4 store. Left customer account navigation is missing and I can't get it back. Been searching for hours and hours and can't find the answer, maybe one of ...
1
vote
3answers
1k views

Magento customer account navigation missing from left column

I have a issue where my customer account navigation is missing from the left column in the account area. In my customer.xml file: <customer_account translate="label"> <label>...
0
votes
2answers
4k 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
1answer
2k 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. */ --> <...
0
votes
1answer
43 views

Magento 2: Edit data-mage-init attribute from body tag

I am trying to edit the data-mage-init attribute from the Magento 2 body element. I am optimizing page load and this attribute is passing a gif file that is not needed. I tried to remove it with: <...
13
votes
6answers
18k views

How can i hide Discount Code form checkout payment page in Magento 2?

I tried to hide the Discount Code field from checkout payment page, but i can't find anything in xml files. For cart page, i found this field in checkout_cart_index.xml, and i was able to hide like ...
0
votes
0answers
10 views

Consume xml api from third party in magento2?

I have found an answer for magento 1 here https://stackoverflow.com/questions/47789660/magento-third-api-integration But the directions and example is for magento 1?
0
votes
1answer
20 views

why I can't set a custom template for street field in checkout shipping step via checkout_index_index.xml

Could you explain me please why I can't set custom template for 'Street' fields group via checkout_index_index.xml. My code below: <item name="street" xsi:type="array"> &...
0
votes
2answers
166 views

Magento Shipping Method

I have created a custom shipping method in Magento but my question how i can call a request from external gateway and read XML data in Magento shipping method .
3
votes
3answers
5k 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 ...
5
votes
4answers
5k 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 ...
0
votes
2answers
27 views

How to make the input is selected on admin form?

I have a form like this. This is used to save a new custom admin. But I have a problem with showing a value in the store_id field while editing. While showing this form the store field must be ...

1
2 3 4 5
24