Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
1answer
73 views

error when creating a new container inside page.wrapper in magento2

I'm trying to create a container inside page.wrapper to contain some custom blocks for my checkout page. When I try the following in app/design/frontend/MyTheme/myname/Magento_Theme/layout/...
0
votes
0answers
52 views

XML product feed category problem

I have written a php script so I can produce for my Magento 1.9.3.8 an xml product feed to send my products to another price comparison site. I have a problem with the category path of my products ...
1
vote
1answer
202 views

Magento 2 How to disable admin menu based on configuration?

xcz I want to hide my custom module menu based on configuration. If in configuration it set to "yes" then the menu should display and if set to "no" then menu should not appear at admin. I have ...
1
vote
1answer
316 views

Magento 2 move reviews form inside list.phtml file

By default magento 2 review structure is like this - /templates/review.phtml and inside it you have - /product/view/list.phtml and Magento_Review/templates/form.phtml files. form.phtml file is ...
0
votes
0answers
26 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
440 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
1answer
35 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 ...
1
vote
0answers
78 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
84 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
213 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
41 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
16 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
1answer
275 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
143 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
77 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
212 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
90 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
14 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
86 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
174 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 ...
1
vote
1answer
236 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/...
2
votes
1answer
108 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
57 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
102 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
373 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
725 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
128 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
21 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
78 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 ...
2
votes
1answer
176 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
109 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
16 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
511 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
318 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
137 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
466 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
86 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
62 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
177 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: ...
2
votes
1answer
27 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
36 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
30 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
120 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
148 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
180 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
442 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
57 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
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="...
3
votes
3answers
87 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
124 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 ...