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.

1
vote
2answers
14 views

Magento 2.3 How to override the custom theme's etc/layouts.xml file in recommended way?

There is, in a theme that I bought a layout.xml file that is used in the backoffice to hydrat a select element (that allows you to switch between 5 layouts). app/code/CompanyTheme/LayoutSwitcher/etc/...
2
votes
1answer
22 views

Removing block from layout doesn't work

I want to remove the register-link from the header links, so I have wrote in the default.xml of the Module_Customer of my theme: <referenceBlock element="register-link" remove="true"/> The ...
0
votes
1answer
18 views

Apply a jQuery whitespace trim to an adminhtml filter input

My goal is to load a simple jQuery function to trim any whitespace in an admin backend filter input. The use case involves a scanner inputting codes with spaces that will turn up no results. I have ...
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
24 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
0
votes
1answer
11 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> &...
1
vote
1answer
15 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\...
3
votes
1answer
47 views

Custom Theme XML Files Changes 2.2 to 2.3

Does anybody know if there have been changes to the way XML files from custom themes are included in Version 2.3? I have a very simple XML file to modify the Magento Advanced Search page. The custom ...
0
votes
0answers
12 views

create custome xml in magento 2

i create custom XML file <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:chalaksoft:...
1
vote
1answer
23 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-...
2
votes
0answers
13 views

Custom feed get only hidden image Magento 2.3.1

I am working on a module which creates an xml feed for a price comparison engine. I need in there to pull only the hidden image of the products that exist in the xml. All products have one hidden ...
2
votes
3answers
23 views

Move block and set template

I succesfully moved the product related block in my page layout with <move element="catalog.product.related" destination="product.info.right" after='-'/> I want now to apply a custom template ...
0
votes
0answers
28 views

Product Form with Custom Datasource not showing default values except image of product in magneto 2 Admin

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
2
votes
0answers
14 views

Changing config/connection type for consumers

I would like to set this consumers: 'async.operations.all' connection type from rabbitmq (amqp) to crontab+sql (message queue & mysqlmq)as default so my setup of external crontab can execute . ...
2
votes
1answer
39 views

what is translate=“label” in xml file what it does?

I am working with Magento XML files and I found translate=" label" <tabs> <training translate="label" module="training"> <label>training</label> <...
1
vote
2answers
28 views

Move category description from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme: <move element="category....
1
vote
2answers
72 views

How to change footer and header for a CMS page only using layout XML?

I want to change out the footer and header for a minimized version but only on a certain CMS Page. Is it possible to do this with the layout XML input field to remove the header/footer and add static ...
0
votes
0answers
15 views

Magento 2 Data in SSRS Reports

Has anyone been able to query Magento 2 (any entity, but I am specifically using orders) using the XML data source in SSRS Report Builder? I am having difficulty structuring the connection string. If ...
1
vote
1answer
32 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
0answers
23 views

How to add amazon and paypal buttons in the one page checkout module in magento 2?

We have to display Amazon button as a separate block in the checkout page, how can we achieve this?
0
votes
1answer
25 views

Magento2: programmatically add layout for specific products

Good evening. I need to add layout for products, which SKUs start from 9 (so 9XXXX). I've read we can add this though handler or some other methods. If someone had experience with that moment, ...
2
votes
1answer
44 views

Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file

I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to ...
0
votes
0answers
17 views

Grid name=“collection” on di.xml work with an undefined path

When I want to generate the Grid on my admin panel, I need to add that on my di.xml. the code : <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> ...
0
votes
1answer
33 views

my custom module pages title's are moved to bottom in magento 2?

have custom module and pages here my module and customer dashboard title's are moved to the bottom that module xml file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
1answer
33 views

XML declaration allowed only at the start of the document

i am getting this error on developer mode but works in default Exception #0 (Magento\Framework\Config\Dom\ValidationException): Theme layout update file XML declaration allowed only at the start of ...
2
votes
3answers
80 views

Magento 2 : How to update 'Update cart' Button`s Template?

I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button I have update Add to Cart button using catalog_product_view.xml <...
0
votes
0answers
79 views

Magento2 : How to add button in admin custom module page?

I want to add one button here how I can add code?? and how to add action controller any idea ?? i already tried this answer(https://magento.stackexchange.com/a/212656/73525) but showing error ...
0
votes
1answer
25 views

Image Uploader throws Uncaught type Error in Ui Component

I'm Using UI component to upload an image but it throws this error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must ...
0
votes
3answers
73 views

How to move notification message top of the page for all page

I am trying to move all notification message on the top below header(or any specific location) I followed this link but this only achieve top for customer page only Magento 2: Change message ...
0
votes
0answers
17 views

Migrate from opencart to magento is i need to resubmit xml sitemap to google webmaster after successfully migration?

After migration from opencart to magento is i need to submit xml sitemap to google webmaster?
2
votes
0answers
39 views

Magento 2 - product details tab title as an clickable link url to another page

How to make the product details tab title is clickable link, and grab the SKU from the current product page to the link? For example, I created a custom product tab called "Download", and when ...
1
vote
0answers
32 views

Magento 2 - display custom product details tab conditionally & as an URL

I want to create a custom product detail tab "Q&A" and only display the tab when there is an Q&A questions exist for the product, and the tab will be the hyperlink to the FAQ page ( for ...
1
vote
2answers
119 views

Magento 2: Override XML file from vendor folder to app folder doesn't work/update

I tried to override the XML file by copying the file from vendor/magento/module-catalog/view/frontend/layout/catalog_category_view_type_default.xml to app/design/frontend/Infortis/base/...
2
votes
0answers
26 views

Solved: Layered Navigation of Parent Categories

The layered navigation of the Child Categories it's working okay. The problem is with Parent Categories. I'm trying to have the same filters on Parent Categories but i still can't solve it. What I ...
1
vote
0answers
28 views

Magetno 2 get soap api as a xml format

Below is soaporderapi.php created root folder.It is working fine getting order responce but i need to show responce as xml format <?php error_reporting(E_ALL); ini_set('display_errors', 1); ...
0
votes
0answers
17 views

Trying to add an external CSS file to a specific CMS page in Magento 2.2.5

I can't seem to get external CSS file to load on a specific Magento 2.2.5 CMS page. My current XML layout update code is this <body> <attribute name="class" value="stacked"/> <...
1
vote
0answers
280 views

Exception #0 (Exception): Notice: Undefined index: id in \vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63

1 exception(s): Exception #0 (Exception): Notice: Undefined index: id in C:\wamp64\www\codility-magento-market-place\vendor\magento\module-config\Model\Config\Structure\Element\Iterator.php on line 63 ...
1
vote
2answers
62 views

Magento 2 : How to convert class object to string using observer?

I am getting error during to save order data to xml format using observer.. Recoverable Error: Object of class Magento\Sales\Model\Order\Item\Interceptor could not be converted to string in ...
0
votes
3answers
142 views

Magento 2 - Add custom js in admin product edit

I want to add custom js in product edit page (Admin) Is it ok to add it in some xml or is there any other way to do it? If it is xml, which XML do I need to work on?
0
votes
1answer
24 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
28 views

How can we populate the default shipping address country and zipcode in cart page in magento 2 for logged in customers?

Can we populate the default country and postcode for the logged in users using their default shipping address of the customer to get shipping estimates?
1
vote
1answer
14 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/...
2
votes
1answer
178 views

How to parse XML - simplexml_load_string returns error “parser error : StartTag: invalid element name”

I am trying to parse XML to array in my custom module in Magento 2.2.7. Community version (free) I am loading Helper\Data through Block element and this is "working". This is my Helper\Data.php <...
0
votes
1answer
25 views

Magento 2: Errors displaying on setting devolper mode

On setting developer mode this error is displaying want to find the files which are causing this error what should I do remove this error. [2019-02-14 12:58:34] main.INFO: Cache file with merged ...
0
votes
1answer
52 views

Magnifier is not showing

Magnifier is not showing. Option enable set to true. Settings in my theme: Vendor/MyTheme/etc/view.xml <var name="magnifier"> <var name="fullscreenzoom">10</var> <!-- Zoom ...
0
votes
2answers
23 views

Magento 2 describe attrubute property used in Plugin method

I am trying to create a simple module and I can't find the propose of the attribute name and type inside the tag type and plugin in di.xml. can anyone describe attribute name used in plugin? <?...
0
votes
1answer
50 views

Solve warning “User Agent Exception override product and CMS pages rules”

I'm Trying to create a dynamic grid containing multiple fields using this code in my ui_component <fieldset name="multi_answer"> <settings> <collapsible>true</collapsible>...
1
vote
1answer
47 views

User agent exceptions override product and CMS pages rules

I am trying to implement this dynamic grid/ to add multiple records it is working fine but I am getting this "User agent exceptions override product and CMS pages rules." all over it any idea how to ...
0
votes
0answers
55 views

Export Category name in xml feed Magento 1.9.2

I have the script below for exporting product xml feed for magento 1.9.2 The problem is that I cannot export the category name for each product The scipt is: require 'app/Mage.php'; Mage::app(); $...