Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xml]

Denotes questions about XML files and XML processing.

2
votes
1answer
59 views

module.xml active attribute

Sometimes in module.xml the attribute active="true" is used but I could not find out what difference it makes to use it or not. <module name="xxxx" schema_version="0.0.1" active="true"/>
2
votes
1answer
296 views

Set page title without using deprecated <action>

Every answer I can find for setting the page title (H1 tag not the tab title) uses this format: <action method="setPageTitle"> <argument translate="true" name="title" xsi:type="string"&...
2
votes
1answer
171 views

Braintree and Kount (GENE version 2.2.3) installation on Magento ver. 1.14.0.1

I'm trying to configure ENS via a Braintree, Kount, Magento workflow, and are experiencing errors that i'm unable to diagnose. Here's what I'm doing: Order # 100096149 | Jan 8, 2018 3:51:07 PM (...
2
votes
1answer
445 views

Add custom block to product page on 2columns-right In Magento 2

I have changed my page product layout to 2colums-right like this: <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-right" xsi:noNamespaceSchemaLocation="urn:magento:...
2
votes
1answer
362 views

Magento 2 : Debug Xml

I need to work with xml and something doesn't work same it's always. Is there a way to see errors in xml syntax, calls, or something. I don't see nothing in Magento's log, or even in apache's log. ...
2
votes
1answer
415 views

Magento 2 - Override an xml file defined in the etc folder in a theme?

I am attempting to override the email templates for the Aheadworks_Giftcard extension. It seems that the email templates are defined in a xml file in the etc directory called sample_email_templates....
2
votes
1answer
415 views

Magento 2: How to move recently viewed

Having problems working out how to move the recently viewed block. I want it to sit above the details/review tabs but can't work out how to move it in the xml?
2
votes
1answer
84 views

Inserting blocks into custom places

In Magento 1 I can edit local.xml like so: <default> <reference name="root"> <block type="core/template" name="above_main" template="page/html/banner.phtml" /> </...
1
vote
1answer
16 views

Add custom block under long description (product.info.description)

I'd like to add a custom block in description tab just after long description field. I Tried <referenceBlock name="product.info.description"> <block class="Magento\Catalog\Block\Product\...
1
vote
1answer
25 views

Remove class on div from empty.xml layout

I am running Magento 2.2. I have custom HTML I want to add to a CMS page. After navigating to the page where this HTML resides, the content is automatically displayed inside a div with class page-...
1
vote
1answer
66 views

How to create page in customer account section Magento 2

I want to create new page and link to => HISTORY how i can do this?? where I can add a new link?
1
vote
1answer
33 views

When I switch the mode default to developer of magento2.2.3 then got this error Element 'count': This element is not expected

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'count': This element is not expected. Expected is ( argument ). Line: 1077
1
vote
1answer
15 views

Editing bundle product page

i'm still new in magento 2 and i want to edit layout of bundle product page of magento 2, so i extend xml file of magento 2 from module-bundle. i create folder Magento_Bundle/layout/...
1
vote
1answer
103 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 ...
1
vote
1answer
24 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="...
1
vote
1answer
149 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 ...
1
vote
1answer
91 views

Magento 2.1.7 custom module UpgradeSchema not adding column

I'm not able to add new column to existing table UpgradeSchema.php: namespace Company\Module\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\...
1
vote
1answer
145 views

M2 Can't add new Checkout Step

I'm following the Magento dev docs Add a new checkout step how to guide. But I get the following error in my browser console once I go to the checkout... GET http://example.test/checkout/...
1
vote
1answer
432 views

Magento 2: Change links html class in customer account navigation

I'm trying to change the html classes for my customer_account_navigation block. What I actually want to achieve is to display different icons for every single link. I tried the following in the ...
1
vote
1answer
73 views

Edit New Products Title Magento 2

In my home i added a widget for new products but i want to rename new products to something else`
1
vote
1answer
238 views

Divide footer into two sections Magento 2

I want to divide my footer into two sections using xml.
1
vote
1answer
174 views

Magento2 Layout update with XML

I want to move a block on my page. its now located in the header and i want to move it to the panel header. In the xml file of the extension, i see this: <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
1answer
1k views

How do I add canonical or any meta head in Magento 2 via CMS Layout XMLs?

I have a custom CMS page with the url of /test I tried pasting this in the Layout Update XML under Page Layout AND also tried under the Custom Theme Layout Update XML.. both options do not work <...
1
vote
1answer
79 views

Can someone explain what this is in the ui component xml

Can someone explain what ${$.$data} is doing in sales_order_grid.xml <columns name="sales_order_columns"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
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. ...
0
votes
1answer
15 views

Hide custom UI element in extended XML file in custom theme

This is original file in code dir of a third part module: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="checkout" xsi:noNamespaceSchemaLocation="...
0
votes
1answer
18 views

Some of product detail page error- Element 'reference': This element is not expected

When I tried to change or open product I got next message: 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'reference': This element is not expected. Line: 1 ...
0
votes
1answer
18 views

Magento 2 read custom xml file from third party server and load it in our magento site

I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible. Not any authentication set. <valley street name="jackson"> <item> &...
0
votes
1answer
29 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...
0
votes
1answer
29 views

Override function from grouped.php

I am changing the table for a grouped product. I have overridden the grouped.phtml file to make changes. But I need to override the function: getAssociatedProducts($product) // Grouped.php Because ...
0
votes
1answer
49 views

Magento 2 - what event should I observe to change/intercept the calculation of subtotals on Cart

I am using Magento 2. I made an observer that observes anytime a new item is added to the cart. The observer works properly, I also managed to create a single product discount with this observer, ...
0
votes
1answer
220 views

Magento 2 - Move Block Not Working

I've created a faqs.xml for a bespoke page template and this is my code: <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
1answer
121 views

How add text in custom theme header magento 2

<referenceContainer name="header.wrapper"> <block class="Magento\Theme\Block\Html\Header" name="header.links" after="logo"> <arguments> <...
0
votes
1answer
146 views

Magento 2 Add CMS/phtml block bottom before product_list_toolbar and after product_list (Between)

I am not able to add a cms block in category page. XML: <block class="Magento\Framework\View\Element\Template" name="catalog.filter.content.bottom" template="my_module::test.phtml"/> what I ...
0
votes
1answer
88 views

Magento 2 overwrite checkout.cart.item.renderers block

I tried to set a new template for checkout.cart.item.renderers block and i found some issue, beucause I didn't know that i have to overwrite separately each type of product. I will post my solution, ...
0
votes
1answer
607 views

Move related products to “Details” tab on product page

I would like to move related products to "Details" tab below description on product page.
0
votes
1answer
82 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" ...
0
votes
1answer
28 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 ...
0
votes
1answer
90 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
1answer
24 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 ...
0
votes
1answer
180 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 ...
0
votes
1answer
37 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
93 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=...
0
votes
1answer
304 views

How canl I set condition in layout file?

I have layout file have block like this <referenceContainer name="sidebar.additional"> <block class="Partsoto\CategoryCustom\Block\Search" name="category.custom.replacement.search" before=...
0
votes
1answer
60 views

Magento Config XML Path

In my custom module I have added a tab to the admin configuration section to manage service providers for an external service. I have creted the following group in my system.xml of my module: <...
0
votes
1answer
78 views

How to use dev:xml:convert?

I'm exploring the Magento 2 CLI and I don't know how could I apply the command below in real life? bin/magento dev:xml:convert Can you show me some example? Thanks!
0
votes
1answer
203 views

Move block to a different reference block

I need to move a subscription block from MageMonkey module. Here is the magemonkey.xml file and block that I want to move: <checkout_onepage_review> <reference name="checkout.onepage....
0
votes
1answer
122 views

Why would my layered navigation not close anymore?

I have created a child theme based off of Luma. On my category page layered navigation instead of it saying Shopping Options at the top I would like to have an image there. In my child theme I created ...
0
votes
1answer
234 views

Move upsell after product description using xml

I am trying to move the up-sell block below the the description tabs I have this so far app/design/frontend/THEME/main/Magento_Catalog/layout/catalog_product_view.xml <page layout="1column" xmlns:...
0
votes
1answer
65 views

Google Search Console and Html tags

I have 2 questions, I am new to Magento but not to programming in general. Where do i change html content like H1, H2 in home page, products page, etc. I noticed the difference between cms and ...