Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
1
vote
1answer
38 views

Magento 2 | Blocks don't appear

I created a new page layout for my home page. I want it to display 3 blocks next to each other. It should look like this: I created the blocks in backend but with the below code they don't show up. ...
3
votes
1answer
66 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/...
1
vote
1answer
167 views

Magento Dataflow Advance Profile To Export Customer in Google Contact Format

I have difficulty to find any guide relating to this subject. Basically, I want to export all customer using magento dataflow profile export to csv, in a way so I can just import the csv to the google ...
2
votes
0answers
234 views

Syntax for overriding config.xml module configuration with config.php in magento2?

I have a module MyCompany_ExampleModule. Its etc/config.xml file: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/...
2
votes
1answer
350 views

Move breadcrumb before sort by feature of toolbar section in Magento2

How to move breadcrumb of category list page into toolbar section of category list page. I need to move the breadcrumb to toolbar or either left sidebar before the filters. Is it possible to do like ...
1
vote
1answer
909 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 ...
2
votes
0answers
65 views

How to trim text before saving in system.xml

In my custom module in system.xml in Admin I have field: <field id="user_key" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1"> <label&...
2
votes
1answer
30 views

Is it possible to display an XML Block based on an IF?

I use the below code in a module within catalog_product_view.xml to display a new Tab on the Product Page. <body> <referenceBlock name="product.info.details"> <block class="...
3
votes
3answers
175 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
166 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 ...
0
votes
3answers
37 views

Magento 2 accidental theme move

I FTP'd into my server with filezilla. I accidentally moved one theme into another. I have since moved it back but now its pulling in the footer from its parent theme, luma. Default.xml and Default ...
0
votes
2answers
645 views

How to give condition in xml file for showing different block in different pages

How to give condition in xml file for showing different block in different pages. Like I place a block name "Footer Block" in default xml file, and I want different footer for different pages. &...
0
votes
1answer
103 views

Magento 2 - How to create a calculator

I've created a new module in magento 2 and I want to add some additional files so that I can create a calculator. I'm unsure where to create a file that calls the functions of my calculator class and ...
3
votes
0answers
55 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 ...
1
vote
1answer
190 views

Customer Account page title is at the bottom, and margin-bottom is being set to 0 but i cant find where

I'm so close to having this site finished and then this happens. I logged into the customer account section to check all was good and then i was greeted with this... It should look like this... I ...
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-...
0
votes
4answers
1k views

Magento 2 Customer Account Navigation Add Css Class to link not working

XML: <referenceBlock name="customer_account_navigation"> <block class="Magento\Customer\Block\Account\SortLinkInterface" name="customer-account-navigation-account-link"> <...
0
votes
1answer
169 views

How to Change Block class for sales order status history tab

Below is the Block <action method="addTab"> <argument name="name" xsi:type="string">order_history</argument> <argument name="block" ...
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 ...
1
vote
0answers
12 views

how to fetch value from URL and post in form M2

I have product grid in admin panel where I have edit link too. Edit link looks like http://localhost:8888/backend/division/products/productedit/a_id/10/id/26794/ in ui form I need to send this id :...
2
votes
1answer
278 views

Magento 2: Conditionally process layout XML file

I have an XML layout file, specifically customer_account_login.xml, which is processed automatically by Magento and replaces the out-of-the-box copy. In some cases I would like to do this, while in ...
2
votes
2answers
1k views

Magento 2 custom column sorting not working

I have created custom column in Sales -> Order UI Grid. I have added "Profit" column. Which is not related to any database table and not the attribute. This column display just calculation of ...
1
vote
0answers
221 views

Magento 2.2.5: How to create Button in Widget

i'm looking for the way to create Button in Widget I've done this but it throw an error said "Invalid xml type". So i thing that there's no such thing called xsi:type="button" in magento 2 widget. &...
0
votes
1answer
43 views

Magento2 Multisite now loading store specific default_head_block.xml

I have a magento 2.2.3 that I am trying to setup with a Multisite where each store view has a different child theme. Now My workflow is that I work on a local MAMP version of the website I then ...
1
vote
0answers
47 views

Magento 2: Alternative layout for bundle

I need two different layouts for bundles. For this I created an alternative page layout in the page_layout folder. I am able to access the page layout in the backend of the bundle what works like a ...
2
votes
3answers
3k 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
1answer
343 views

Magento2 Hide Custom Tab based on Condition

I have created custom tab in Magento2 in my Custom module. The code used to make tab was using xml like - <referenceBlock name="product.info.details"> <block class="...
0
votes
1answer
152 views

In checkout when i get to the payment information i get this error. Attention [XML2Array] Error parsing the XML string

This would be the last step in the checkout process. I hit checkout and it would take me to a success page. Right when i hit the button it throws this error. I did a search on the server for what ...
0
votes
0answers
102 views

Remove Links from 'My Account' side navigation

I am trying to remove some links from the 'My Account' section of Magento 2.2.5. the links i want to remove are My Downloadable Products Stored Payment Methods Billing Agreements My Subscription ...
1
vote
0answers
169 views

Adding a widget into a tab - Magento 2

When you add a new widget you can specify a layout update container. I want to create a custom container that inserts the widget into a tab on the product page. If the tab is empty then hide it. I ...
0
votes
1answer
35 views

Add .js file in root folder from xml, Magento version 1.9.3.8

Is it possible to add in xml configuration .js file from root folder. In root folder we have the folder js_components. How can I add a file in xml? I can not move this "js_components" folder in ...
3
votes
1answer
49 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 ...
1
vote
1answer
265 views

Moving grouped product table

I want to move the grouped.phtml table from next to the product image to underneath the image/short description within its own row. So it sits above the description/review tabs. How would it be best ...
2
votes
0answers
81 views

Custom REST API returns duplicate “response” tag

I am struggling because I get an invalid response from my custom API module for Magento 2 (2.2.5). When I send a request to my endpoint via GET with the header "Accept application/xml" (which is ...
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
vote
1answer
139 views

Layout not loading in the correct order aw_blog module

I'm currently facing a problem where the sidebar for the blog module of aheadworks does not load inside the content. Here's a screenschot My layout.xml is as follow: <?xml version="1.0"?> <...
1
vote
0answers
28 views

Remove/Unset content of CMS page

I have created a custom module which shows some custom product listing and banner data. I have created a system setting to set those things in homepage or use default one. Now what i want if admin ...
0
votes
2answers
496 views

How to disable add to cart in magento 2

I feel like i've read and tried every solution i possibly could and nothing works. I removed from product page by overiding .phtml files in custom theme, easy. I then successfully removed from the ...
0
votes
1answer
54 views

Magento2 Display dynamic data in XML

I have created a custom Tab on the product details page. Now I want to show the count of those articles, like how Reviews count are shown in tab title. <arguments> <argument translate="...
1
vote
0answers
57 views

ifconfig does not work in <css /> tags in Magento 2

ifconfig does not work in <css /> tags in Magento 2. 0 (Magento\Framework\Config\Dom\ValidationException): Element 'css', attribute 'ifconfig': <page xmlns:xsi="http://www.w3.org/2001/...
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 ...
0
votes
1answer
179 views

Adding a CSS file which isn't in your custom theme to Layout xml file

We have a stylesheet that is present in a theme from an old website, since we want to keep the same overall template files but only change styles, we want to keep the old stylesheet and add another ...
2
votes
1answer
194 views

how to debug 'page not rendering' in magento 2- possible problem with the xml

How do you debug a page in a custom module. or more to the point. How do you debug whether the xml is rending the correct page content. I am trying to create a page in my custom module, I am able to ...
0
votes
2answers
97 views

Magento 2 - Filter on category

I want to do something like this to add a filter: http://demo-acm2.bird.eu/gear/bags.html How and where to add that ? I've overrided catalog_category_view.xml to have a custom layout: EDIT : to be ...
0
votes
2answers
2k views

Magento 2 Element 'file': This element is not expected

I am getting following error after upgrading magento 2.1 to 2.2.3 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'file': This element is not expected. Line: ...
0
votes
1answer
251 views

Magento 2 : Add Duplicate of Block or Button Somewhere Else

I have an extension for quote in my store, which displays a request a quote button in the cart, when there is content in it. I want the exact same Button at the top in my menu bar. Tried to copy ...
3
votes
0answers
656 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-...
6
votes
1answer
1k views

How to modify magnifier small lens and bigger preview

I have modified as follows <var name="magnifier"> <var name="fullscreenzoom">2</var> <!-- Zoom for fullscreen (integer)--> <var name="top"></...
0
votes
1answer
125 views

Hide columns under condition when exporting csv

Fyi, I did read from another similar post where I came to a good solution (Setting is system true will prevent it from getting exported). However, my problem is I would like to have two type of csv ...
0
votes
1answer
126 views

Magento catalogProductAttributeOptionManagementV1 AddOption SOAP

I am sending a soap request to Magento and getting an error per below. <?xml version="1.0" encoding="UTF-8"?> -<soap:Envelope xmlns:def="XXX/soap/all? services=...

1
3 4
5
6 7
23