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
18 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....
0
votes
0answers
11 views

Can you change footer and header for a CMS page only with 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 to remove the header/footer and add static blocks in ...
0
votes
0answers
14 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
25 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
30 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
20 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
18 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
31 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
32 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
19 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
2answers
56 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
52 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
15 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
51 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
16 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
34 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
31 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
95 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
24 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
25 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
13 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
175 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
54 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
58 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
19 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
25 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
126 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
20 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
36 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
22 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
45 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
43 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
52 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(); $...
0
votes
1answer
39 views

magento 2 how to edit custom header in site which path i can edit

here is the code for custom header <div class="message global demo"> <div class="content"> <p>This is demo store. No orders will be fulfilled.</p> ...
0
votes
1answer
55 views

Magento 1.9 Override zend lib xml file?

I followed this tutorial: https://www.damianculotta.com.ar/magento/bug-en-los-locales-es-en-magento-1-y-2/ which suggested to override this file: src/lib/Zend/Locale/Data/es_419.xml. I created the new ...
0
votes
1answer
343 views

Exception #0 (Exception): Notice: Undefined index: id in Iterator

I'm tryingto extend Magento2 Adminhtml with some custom nodes, which has worked good so far. What I'm trying to do now is to figure out how this error is happening: Exception #0 (Exception): Notice: ...
0
votes
0answers
28 views

Magento Amasty FPC and Dynamic Content

We have Amasty FPC and want to use their hole punch method for Dynamic Content but I’m a little confused on the XML configuration file. Their is two methods which have the block exclusions - one is ...
1
vote
0answers
15 views

Generate xml php code problem

I am using a php script to generate an xml from my magento 1.9 to a comparison engine. I have a field in the engine called mpn which need to be filled from my product's SKUs $aData['id']=$iProduct; $...
0
votes
0answers
15 views

Magento2 make logo inline with navigation

To make the logo and nav sections inline is it better to move the logo into the nav or the nav into the header?
0
votes
2answers
72 views

How to override order sales model in magento 1.9

I have stuck with this. I am trying to override sales/ order model _saveafter function with my custom module. I have the following code \app\code\local\Rkt\SalesNew\etc\config.xml <modules> ...
0
votes
1answer
20 views

add a section/tab on the right section of all categories in front end magento2

Hi there I want to add my custom section/tab on the right section of all the categories for getting a clear idea I am attaching this image This is the men section I want to add the same custom tab ...
0
votes
0answers
15 views

Magento2 If I move containers with XML it kills css

I applied custom css to my navigation bar. Then when I moved the nav bar into the header via xml my css was no longer working. Why is that? The correct css is in the section.
0
votes
0answers
144 views

Magento2 set image size in etc/view.xml

I have this XML to set my image sizes for both related products and my catalog widget on my home page. The Related Products portion works but the home page one doesn't. <media> <images ...
0
votes
0answers
39 views

Move element is not working as expected in magento 2.1

In category_catelog_view.xml I need to move a custom layered navigation above the product grid. I tried all of the listed below <move element="custom.left.layered_nav" destination="content" before=...
0
votes
1answer
111 views

Element 'block', attribute 'remove': The attribute 'remove' is not allowed. Line: 745

I'm getting this error when I hit the front end. Couldn't able to find any solution regarding this. 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block'...
0
votes
0answers
43 views

Magento 2 on mobile display layered navigation before products

In default Magento theme, on the category page, the layered navigation is at the left column, and products in the main. This is OK. However on mobile, it first displays the products, and after the ...
0
votes
0answers
27 views

Change Module position in xml

I used a module Product Videos in Magento 1. I like to show a videos in description tab ? It is possible ?
0
votes
0answers
26 views

In mftf, popup elements are not getting identified

In Test folder xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> <...