Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
6 views

Magento2 Functional Testing Framework (MFTF) - URL not redirecting properly

I want to redirect below page - <amOnPage url="admin/system_config/edit/section/adminconf/" stepKey="navigateToIncommCartTimeout"/> But it is redirecting only admin/system_config/edit/...
0
votes
2answers
38 views

Magento2.2.5 change create account link in top right header

I want to change the URL of the "create An account" link that is on the top right of the site. I want the link to instead of being customer/account/create/ I want it to be customer/account/login I ...
0
votes
0answers
16 views

What is the purpose of validation.xml file in Magento 2?

What is the purpose of validation.xml file in Magento 2? When and where do we use them ? I see there are couple of validation.xml files in Magento 2 directory. For example: vendor/magento/module-...
0
votes
1answer
10 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
3answers
40 views

Magento 2 Add block before another block using XML

I want to move minicart block to top.links block. This did the trick for me: <move element="minicart" destination="top.links" /> Now, I added a custom block with custom .phtml file to the top....
0
votes
1answer
24 views

Sales order history : remove tab

In xml, how can I remove tab of order in sales/order/history? Can't find the referenceBlock I just need to remove this tab, not the link. To be precise, I'm using an API that will replace this table. ...
1
vote
1answer
12 views

Adding a nav item via XML puts it in the UL but not the correct css classes. How can I add css in my xml?

<block class="Magento\Framework\View\Element\Html\Link\Current" name="nav.sitehome"> <arguments> <argument name="label" xsi:type="string">Link Name</argument> <argument ...
0
votes
0answers
12 views

Magento 2 xsd autocomplete in Netbeans 8

In Netbeans 8, how to establish autocomplete xml. Via 'Tools' > 'DTD and XML Schemas' > User Catalog > "add local DTD or schema ..." I have: urn:magento:framework:View/Layout/etc/page_configuration....
0
votes
1answer
19 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/...
2
votes
1answer
54 views

Module custom page 404 error

An extension I'm using creates two custom pages in website: app/design/frontend/mytheme/default/layout/scommerce_competition.xml <?xml version="1.0"?> <layout version="0.1.0"> <...
1
vote
0answers
21 views

Magento 2: understand processing order of layout handles and other directives?

I am preparing for certification on Magento 2 and I am having difficulty understanding this questions. Can anyone help me with these questions? Understand processing order of layout handles and other ...
0
votes
1answer
19 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
2answers
38 views

Magento 2: Calling a cms block in default xml

I am trying to call a static block in the footer block but it does not work. I created a theme and then created a default xml: \app\design\frontend\MyTheme\Theme-frontend-default\Magento_Theme\...
0
votes
0answers
11 views

Magento 2.2.5 Conflict when deleting links from the customer account page

When deleting the following links, the block-wishlist-management block is deleted as well when checking the Wishlists on the customer account space. Why? : <referenceBlock name="customer-...
2
votes
1answer
25 views

Overwrite Category Display Mode from “Static Content Only” to “Products Only” via Layout XML

I want to overwrite the "Display Mode" backend setting of a certain category via layout xml file (e.g. catalog_category_view_id_XYZ.xml). Any idea how to update the layout handle? I want to do this ...
0
votes
1answer
20 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
0answers
23 views

Magento 2 Ultimo Theme - Change the order of the product tabs

I am using the Ultimo Theme. Currently I have 5 product tabs ordered as follow Description|Review|FAQ|Specification I would like to change the order to Description|Specification|Review|FAQ I have ...
0
votes
0answers
8 views

How to show product info with out tabs magento 2

I want to have product info shown without tabs anyone knows how to make this?
0
votes
1answer
70 views

How to hide Vat number?

I want the VAT number filed on to present when i click the user to zero vat customer group.If click any other group i dont want to show the vat field. Anyone has any idea how to fix this. /private/...
0
votes
0answers
36 views

Magento 2 - Ui Export on product grid

I am trying to put the Export functionality that is found on other pages such as sales->orders, where the export functionality will put the current contents on the grid into a CSV file. I have placed ...
0
votes
1answer
22 views

How to get to know the XML file and its path for that template Path Hint in Magento 2

As we can enable template path hints in settings along with blocks but there is no option to show from which xml file it is coming in the frontend. How should I know which xml file to write to move, ...
0
votes
0answers
11 views

New Order Import & Payment Processing

We currently receive orders from a retailer in an xml format that we would like to process through our Magento 2.1.6 installation. Ideally by uploading. The xml includes payment info so would like the ...
0
votes
0answers
13 views

call breadcrumbs block twice in page.xml magento 1.9

I am trying to call breadcrumbs.phtml file twice through page.xml file. In page.xml breadcrumbs are added here <block type="page/html" name="root" output="toHtml" template="page/3columns.phtml">...
0
votes
1answer
20 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
33 views

sitemap.xml shows different base path when generate

I have generated the sitemap for my live instance. But after generating it it is showing staging url in xml sitemap. When I see my xml sitemap in the browser for live site, it shows the links with ...
0
votes
1answer
69 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.
1
vote
2answers
35 views

Adding a Block between Menu and Breadcrumbs

Going a bit nuts trying to get my head around this. Debug mode doesn't help me. I'm trying to add a block just before the </header> on only Product Pages. I've created a phtml file with my ...
0
votes
1answer
18 views

I have an error pointing to this block class but i'm not sure what's wrong with it.. (magento 2.2.5)

A validation error occured in an XML layout file <block class="Magento\Cms\Block\Block" name="gbp_success_page-block"> <container name="gbp-fullwidth-hero-wrapper" as="heroWrapper" ...
2
votes
0answers
25 views

Element 'argument': The type definition is abstract and The state object to be removed is not the first in the list

I'm throwing this error on my /success/ page and it seems like such a generic error. It looks like further down the trace it's pointing to stuff like GoogleTagManager and other third-party modules ...
0
votes
0answers
22 views

Why would I use x-magento-init over declaring in XML

So I have a custom module in a custom theme and in the xml file of the module I'm declaring a js file. In that file I'm using the requirejs format to declare dependencies that are configured in my ...
2
votes
1answer
46 views

Disable default magento free shipping method at frontend ONLY

Store -> Settings -> Configuration -> Sales -> Shipping Methods -> Free Shipping How can I disable this default feature of Magento in frontend only?
0
votes
0answers
44 views

Copy block in XML file

I need to copy the block cart.summary in checkout_cart_index.xml. How can I do this ? I've copied the block and change the same but it not working. (I only have my original block)
0
votes
0answers
6 views

Magento 2 - Move Blocks based on Design Layout Type of Product

I want to have a few layout types for products and control this via either the category and apply to child products or via individual products. I want for example to change to a 2 column view ...
0
votes
1answer
67 views

Magento\Framework\Exception\LocalizedException: Invalid XML file 0.1.0 Payeezy Magento 2

Facing below error: >Magento\Framework\Exception\LocalizedException: Invalid XML in file 0.1.0 Payeezy_PayeezyCheckout_Model payeezycheckout_mysql4 Payeezy_PayeezyCheckout_Model_Mysql4 ...
5
votes
1answer
108 views

Magento2 : Use of echo language construct is discouraged

I have my RSS feed from controller returned /displayed on frontend using echo , how do I replace echo any alternate method availabale? MEQP1.Security.LanguageConstruct.DirectOutput public ...
1
vote
1answer
36 views

Remove order in customer dashboard

How to remove "recently order" in customer dashboard ? I tried this : <referenceBlock name="sale.reorder.sidebar" remove="true"/> but nothing happened
0
votes
2answers
68 views

Remove My Account top bar when user is not logged in

i want to remove magento top link My Account if user is not logged in ,i do not want to modify core files, i tried to get solution but could not find any working one . i tried below method in : "...
0
votes
0answers
30 views

Loads of system error logs in Magento 1

For instance when i'm clearing cache i get some errors and they are pointing to a core module here: 2018-10-04T15:20:26+00:00 ERR (3): Warning: SimpleXMLElement::__construct(): Entity: line 1: parser ...
0
votes
0answers
23 views

How to generate xml sitemap with new request_path after URL re-write?

I have just updated request_path for the product from www.xyz.com/my_product to www.xyz.com/my_product_new through url rewrite. The request_path is inserted in the database correctly and working ...
0
votes
0answers
32 views

Magento 2: Warning: simplexml_load_string(): Entity: line 1: parser error : XML declaration allowed only at the start of the document

I am using magento 2.0 I have learn magento2 tutorials(No frills magento2 layout) of alan storm. I have create two xml files. when i run controller file then give Following error Warning: ...
0
votes
0answers
11 views

Magento2 Wildcard in <depends> tag

Is it possible to add a wildcard in the depends tag inside a widget.xml parameter? I need to substitude value="" with whatever but empty.
2
votes
1answer
26 views

How to apply “if” condition to XML generation file

I have a Magento 1.7 Community plataform, connected to an ERP (Bling). We have a file that take all those php information and send as an invoice to Bling. In our products, we have a field named "...
1
vote
1answer
26 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
18 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
26 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
33 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
38 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
votes
1answer
94 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
39 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&...
1
vote
1answer
21 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="...