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.

6
votes
0answers
684 views

Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar

I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
5
votes
0answers
900 views

Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns

What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
3
votes
0answers
50 views

Product's “Layout Update XML” code disappears from the site every 24 hours

I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
3
votes
0answers
379 views

Magento SOAP Fault “Invalid XML”

When i try to access https://www.example.com/index.php/api/v2_soap/index/ It always gives <SOAP-ENV:Envelope xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-...
3
votes
0answers
962 views

Magento 2 - Overwrite di.xml for Core Cms module

I've looked and looked, but can't find anything explaining what i need to do. Problem is, i want to add an svg file to the image uploader in the WYSIWYG. I know i need to extend the core to do this, ...
3
votes
0answers
474 views

Magento 2: Customer session not getting on enabling cache in backend

This is my XML file. <referenceBlock name="category.products.list"> <action method="setTemplate"> <argument name="template" xsi:type="string" cacheable="false">Company_Module::...
2
votes
0answers
14 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
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
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 ...
2
votes
0answers
28 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 ...
2
votes
0answers
61 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
0answers
130 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
0answers
45 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&...
2
votes
0answers
55 views

Custom REST API returns duplicate “response” tag

I am struggling because I get an invalid response from my custom API module for Magento 2 (2.2.5). When I send a request to my endpoint via GET with the header "Accept application/xml" (which is ...
2
votes
0answers
431 views

Magento 2 How to add Magnifier to product list page?

I have enabled Magnifier to product detail page from theme etc/view.xml <var name="magnifier"> <var name="fullscreenzoom">20</var> <!-- Zoom for fullscreen (integer)--> ...
2
votes
0answers
260 views

Get upload_dir for custom system configuration file upload || getFieldConfig for custom system configuration

Im trying to add a file_upload to my custom module system configuration. The backend part works flawlessly and im able to upload the files to the directory i want them to. But i cant read the file ...
2
votes
0answers
311 views

How can I change grand total when user Clicks on Custom Payment method?

I am using the one-page checkout module. I want to change the grand total when user/customer selects the payment method. If customer/user selects the online payment option then grand total should ...
2
votes
0answers
20 views

missing XML start tag in theme.xml

Normally a XML file always needs at least the following starting line: <?xml version="1.0"?> The theme.xml files in the official distribution lack this tag, see for example the luma theme's ...
2
votes
0answers
304 views

Magento 2.2: Add/Remove class in a div from default.xml

How to add or remove a class in the store-switcher div from default.xml ? I tried this : <referenceBlock name="store_switcher"> <arguments> <argument name="...
2
votes
0answers
373 views

Warning: simplexml_load_string(): lib/Varien/Simplexml/Config.php on line 383

I know this is a very general error but i need help getting it fixed. I believe there is an extension with invalid XML and that's the cause of this error. So if i have a syntax error somewhere in an ...
2
votes
0answers
573 views

Magento 2 name attribute shows empty when creating custom fields on product page

When i try to add new fields to product creationg form in Magento 2 the html name attribute shows up empty, I tried more or less everything and by everything i mean: 1) Adding the custom field i ...
2
votes
0answers
24 views

How to change the /contact router to something else?

By default Magento2 offers a contact form. This can be reached under http://domain.tld/mage2orwhatever/contact. But we want to have the router to be translated, in our case it'd be kontakt. How can ...
2
votes
0answers
222 views

Move a specific widget to another container via XML

I want to move a specific widget, lets name it demoWidget to the top container, when it is on a site. How can I achieve this? I've thought about this solution, but have no idea how to do it: give ...
2
votes
0answers
46 views

How do I specify structure of all child elements of a node in XSD where the node names vary?

I am building Magento 1 XSDs (XML Schema Definitions). Magento very often uses node names as a unique identifier for a node in XML. For example: <config> <events> <...
2
votes
0answers
313 views

Magento 2 - make head element translatable

I wish to translate the "Forgot Your Password" string which is created as a head and body element on the Forgotten password page. I found that this string is generated via xml in: Magento_Customer/...
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?
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
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); ...
1
vote
0answers
297 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
0answers
16 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; $...
1
vote
0answers
45 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-...
1
vote
0answers
61 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 ...
1
vote
0answers
11 views

how to fetch value from URL and post in form M2

I have product grid in admin panel where I have edit link too. Edit link looks like http://localhost:8888/backend/division/products/productedit/a_id/10/id/26794/ in ui form I need to send this id :...
1
vote
0answers
59 views

Magento 2.2.5: How to create Button in Widget

i'm looking for the way to create Button in Widget I've done this but it throw an error said "Invalid xml type". So i thing that there's no such thing called xsi:type="button" in magento 2 widget. &...
1
vote
0answers
29 views

Magento 2: Alternative layout for bundle

I need two different layouts for bundles. For this I created an alternative page layout in the page_layout folder. I am able to access the page layout in the backend of the bundle what works like a ...
1
vote
0answers
120 views

Adding a widget into a tab - Magento 2

When you add a new widget you can specify a layout update container. I want to create a custom container that inserts the widget into a tab on the product page. If the tab is empty then hide it. I ...
1
vote
0answers
23 views

Remove/Unset content of CMS page

I have created a custom module which shows some custom product listing and banner data. I have created a system setting to set those things in homepage or use default one. Now what i want if admin ...
1
vote
0answers
44 views

ifconfig does not work in <css /> tags in Magento 2

ifconfig does not work in <css /> tags in Magento 2. 0 (Magento\Framework\Config\Dom\ValidationException): Element 'css', attribute 'ifconfig': <page xmlns:xsi="http://www.w3.org/2001/...
1
vote
0answers
192 views

Magento 2: How to add custom attribute in an admin field?

I created a new field using the file system.xml, but I need to add a custom attribute, for example, data-mycustomattr="true". You can see an example on this image below, the console shows a custom ...
1
vote
0answers
24 views

Toggle data in xml for ui_configuration

I want to be able to enable/disable the following ui_configuration fieldset via configuration conditions. Much like an ifconfig. I know I can provide a boolean item named 'disabled' in ordered to ...
1
vote
0answers
100 views

How content from layout_update table is set?

I have a row in the layout_update table that adds element to pages. I'd like to know how [some xml] from this row was set in the backed: id | handle | xml | sort_order | updated_at 194 | ...
1
vote
0answers
111 views

Recoverable Error: Object of class Credis_Client could not be converted to string

I'll add items to the cart and then they will disappear. I don't have too much more information at this point. line 374 is the last line here: if ($lock != 1) { $this->_log(...
1
vote
0answers
110 views

Change select value toggle name

How can i change Yes to Active and No to Deactive? i've tried it with toOptionArray(): class ActiveDeactive implements \Magento\Framework\Option\ArrayInterface { public function toOptionArray() ...
1
vote
0answers
22 views

XML Error in storeviews Magento 1.9

Hello i try to create an xml feed, but it works only in some of my store views. I get the following error on line 419 at column 29: Input is not proper UTF-8, indicate encoding ! Bytes: 0x1F 0x63 ...
1
vote
0answers
93 views

Magento 2 override Magento_Checkout updatecart.phtml and include js file

I want to override updatecart.phtml and put some custom javascript in this file. When i put it in my theme file it goed wel, but how to include the javascript? I prefer it to do it in my own module ...
1
vote
0answers
20 views

Theme execution flow

I would like to know theme execution flow of Magento 2. I select a theme name 'A' and try to visit a page. Then I change the theme to 'B' and try to visit that same page. Which execution flow the ...
1
vote
0answers
149 views

Add wishlist to my dashboard (customer_account_index)

I want to add the wishlist in my dashboard in the customer account. Problem is I have to make a new block like this. <block class="Magento\Framework\View\Element\Template" name="...
1
vote
0answers
361 views

Magento 2.2 - custom attribute module fails

I've made a custom attribute module using this magento stackexchange Link to article. etc/frontend/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
510 views

How to create custom XML file for new .phtml template page in Magento 2.1?

I can't find a clear guide as to how to link a custom XML file to a custom PHTML template file in Magento 2.1. I created a test.phtml in app/code/Custom/Module/view/frontend/templates/ and also ...
1
vote
0answers
389 views

header my account dropdown not showing magento2.1

I have been trying to add my account drop down menu in my magento website. I found that it is there in luma theme by default. But my base theme is magento/blank. My account links are displayed in a ...