Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

M2.4.2 - XML the footer HTML markup not coming altogether any clue?

Developing a new frontend using BS5, the issue with the layout XML keeps breaking, the footer HTML markup not coming altogether any clue? <?xml version="1.0"?> <page xmlns:xsi="...
0
votes
2answers
39 views

How to add an input field with a date to the checkout page?

I'm studying Magento2, downloaded the module https://github.com/ecomteck/module-delivery-date and added it to the app / code / vendor / module-delivery-date folder I cannot understand in which files ...
0
votes
1answer
17 views

Magento 2 force secure URL via XML?

In M1 it was possible to add some lines to config.xml to force secure urls for certain pages ... <?xml version="1.0"?> <config> ... <frontend> ... &...
2
votes
1answer
70 views

Call to the “Get_Item_Quantity” function in the web service (trying to call soap api using magento restful services)

I have a function in xml document and I want to return it's parameters. My knowledge of connecting the two services is very limited. Do I need to create some middleware or is it possible just to call ...
0
votes
0answers
19 views

Invalid XML Magento 2 theme

Recently I purchased a Magento 2 theme and their support has been less than helpful. I'm still pretty new to Magento 2 and XML Files overall. Is there anything obvious that I'm missing? Exception #0 (...
0
votes
0answers
9 views

Consume xml api from third party in magento2?

I have found an answer for magento 1 here https://stackoverflow.com/questions/47789660/magento-third-api-integration But the directions and example is for magento 1?
0
votes
1answer
17 views

why I can't set a custom template for street field in checkout shipping step via checkout_index_index.xml

Could you explain me please why I can't set custom template for 'Street' fields group via checkout_index_index.xml. My code below: <item name="street" xsi:type="array"> &...
0
votes
2answers
27 views

How to make the input is selected on admin form?

I have a form like this. This is used to save a new custom admin. But I have a problem with showing a value in the store_id field while editing. While showing this form the store field must be ...
0
votes
1answer
23 views

Anybody know the Reference block name for the Footer->Miscellaneous HTML

Within Content->Design->Configuration->Theme->Footer->Miscellaneous HTML I have added some HTML and it works correctly However, I use a popup and it also displays at the bottom of the ...
1
vote
1answer
27 views

Translation doesn't work on breadcrumbs added by xml in Magento 2

I am trying like below to put Breadcrumb and translation in Contact page of Magento 2. But can't translate. I put translation file under /vendor/magento/module-contact/i18n/zh_Hant_TW.csv Is it not ...
0
votes
2answers
23 views

Magento 2 XML product_layout_view.xml conditional

I've got a simple block that I'm using to add a button directly next to "Add to Cart" <referenceBlock name="product.info.addtocart"> <block class="Magento\...
0
votes
2answers
37 views

UK GB Post Code Zip Validation Magento 2 Space

I need some help with UK GB Post Code Zip Validation Magento 2 Space In that I want to force the user to enter spaces so its like this EC1A 1BB or W1A 0AX or M1 1AE so there must be space After the ...
0
votes
1answer
64 views

Warning: simplexml_load_string(): Entity: line 64: parser error : StartTag: invalid element name

I'm using magento 1.9.1.0 and getting this error while accessing the site. Warning: simplexml_load_string(): Entity: line 64: parser error : StartTag: invalid element name in /home/**/public_html/lib/...
1
vote
1answer
21 views

XML Error - Premature end of data in tag widgets line 3 Line: 40

I have looked over a few times and cant see any tags that are not closed so im lost on whats wrong. I am new to XML and would love the help. <?xml version="1.0" ?> <widgets xmlns:...
0
votes
0answers
21 views

Why am I getting a DataProvider\Document instance in mass deletion?

I am using Magento 2.4 and I want to add a custom admin Grid for company products. The problem is that I get a an error when I want to perform a mass delete action. The problem appears in my action ...
0
votes
1answer
40 views

How to change the default catalog ordering direction Date Added on the frontend product lists from ascending to descending?

I am having trouble changing the default arrow from ascending to descending. I have 'Set Product as New to Date' Set as Default, which is what I want. However, I want newer products showing first so I ...
0
votes
0answers
24 views

Magento 2.3.3 Layout Update XML

I'm doing some performance tuning on the Magento 2 system I manage, and as an example I've created a minified (and custom) version of share.js used in the "addtoany" social media plugin. The ...
0
votes
0answers
11 views

Magento 2: Create REST POST webapi to read uploaded xml

I need quick help related to creating a POST web API which will accept XML(Multipart/form-data) and read the uploaded XML.
0
votes
0answers
36 views

Magento 2.3: Override Magento_Sales invoice template phtml for use with Eadesigndev_Pdfgenerator

I am using the Eadesigndev_Pdfgenerator module like other people I've seen asking similar questions but none of the answers help. I have been trying to get this fixed for about 3 weeks and I'm getting ...
0
votes
1answer
9 views

Add a module in other module

good afternoon I have the MageWorx multifee module and Id like to add the multifee on the quotes of the Cart2Quote module (emails ect). How can I do this Thank you for the attention Malka Hakuk
0
votes
1answer
16 views

How to wrap .header.content?

I need to wrap .header.content in a . How can I do that using default.xml file? I think using something like that: <referenceBlock name="header-wrapper"> <...
0
votes
0answers
13 views

Problem importing products with multiple categories from XML files into magento 1.9

I have a php script that extracts the products from the XML file and imports them in magento 1.9 assigning products to the parent category and to all child categories. The problem arises when I want ...
1
vote
1answer
117 views

Magento 2 Additional template to Widget “Catalog products list”

I am trying to find way to add additional template into "Catalog products list" widget. I can do this from inside vendor but its not a good practice to do it. How to do this without changing ...
0
votes
1answer
101 views

Magento 2- How remove js files

I am trying to remove some js files from Magento 2 upload in the frontend. This is my code but it doesn't work because when reload category page and i open sources->coverage of chrome i see ever ...
0
votes
0answers
12 views

Create products through API with xml payload

We are trying to create products by API, if we use json as payload, no problem Endpoint: POST /rest/default/V1/products Payload: { "product": { "sku": "MS-Champ-S", ...
0
votes
1answer
37 views

Invalid security or form key. Please refresh the page. UI Form magento 2

I`m using this plugin , but i have another table structure. I can add new item to database bur if i edit item i get err Invalid security or form key. Please refresh the page. My table structure id, ...
0
votes
0answers
15 views

Convert XML via XSLT

I want to convert & compatible the below XML file structure with Magento 2 via XSLT, I start handling it but cannot complete it. product.xml <products> <product> <id>234234&...
0
votes
3answers
57 views

how to add custom container inside product.info.main container in magento 2.3.1

how to add custom container in class="product-info-main" referenceContainer="content" and inside catalog.product.view.xml file catalog.product.view.xml <referenceContainer ...
0
votes
1answer
47 views

Magento 2 - How to use XML uiComponent instead of text/x-magento-init?

I found an easy hello world example from Max Pronko which uses text/x-magento-init to define a uiComponent. MODULE/view/frontend/templates/script.phtml <div data-bind="scope: 'pronko-component'...
1
vote
1answer
122 views

How to override the Catalog Widget PHTML file into custom module?

I need to override the widget template file /vendor/magento/module-catalog/view/frontend/templates/product/widget/new/content/new_grid.phtmlbut in xml file the phtml file was not mentioned at any ...
0
votes
4answers
49 views

How to give a CSS class via XML?

There is a link in header portion called quick order, I need to add css class for that link but there is no phtml file for that link so I need to add it via xml. Below is the xml file from vendor. <...
0
votes
0answers
27 views

Cannot move the search bar after the logo

I want to move the search bar right after the logo and sign-in, and sign-up link next to search bar. I have used the below instruction in my theme xml file but its not working. <move element="...
0
votes
1answer
38 views

Magento 2: Edit data-mage-init attribute from body tag

I am trying to edit the data-mage-init attribute from the Magento 2 body element. I am optimizing page load and this attribute is passing a gif file that is not needed. I tried to remove it with: <...
0
votes
1answer
9 views

Height option not working on var gallery in view.xml

I tried adding <var name="height">530</var> inside <var name="gallery"></var> as this is the parameter to add height in fotorama as per the documentation ...
0
votes
0answers
8 views

Move block after price using layout xml in M1.9

We've got a module that prints a message with estimated delivery. This module has an xml layout file with this code <reference name="product.info.simple"> <action method="...
0
votes
1answer
26 views

Fotorama Fullscreen

Is it possible to override the product image size declared in view.xml when you're in fotorama fullscreen mode in PDP? My goal is to change the image sizes when you're in fullscreen mode.
0
votes
0answers
15 views

Button in system.xml not working properly

I created a button that shows in a tab, but it does nothing, here's what I've done Custom/ExportSubs/etc/adminhtml/system.xml <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
1answer
25 views

Magento 2: Custom Attribute into Product Page

I am trying to add custom attribute into product page, but for some reason its generating error even after running all imp commands. <block class="Magento\Catalog\Block\Product\View\...
0
votes
2answers
29 views

Magento 2: How to add custom block after the add to cart [Custom Theme]

I want to add a block after add to cart but this code doesn´t work: app/design/frontend/Mgs/claue/Magento_Catalog/layout/catalog_product_view.xml <block class="Magento\Catalog\Block\...
0
votes
0answers
11 views

checkout shipping page add custom field in magento 2.3.5

Now i added custom field checkout shipping page but issue add custom module custom.js and define layout checkout_index_index.xml but it's not working checkout_index_index.xml <page xmlns:xsi=&...
2
votes
0answers
49 views

Magento 2.3.4 new layout update doesnt work

I have an issue with the new Magento layout update xml feature. I added a custom layout update file to change a category. It shows up in the Magento backend, but when I select it, nothing changes on ...
0
votes
1answer
53 views

Magento 2 : How to move a block next to size attribute label on product page. [Size Chart]

I want to move a block next to size attribute label: How can I do this? Thank you very much!!
0
votes
0answers
22 views

How to remove compare product icon from new products widget?

As the title asks, how do I remove the "add to compare" button from a "new products" widget? Currently this is what's I'm seeing ... but only within this widget: I've got the ...
0
votes
0answers
13 views

Magento 2 how to add image upload from product page as a attribute

How to add product attribute which is a image uploader. I have tried few methods none of them are working. I have tried this following code which didn’t get me anywhere it doesn’t show up in my ...
0
votes
1answer
20 views

Link to logo within XML layout file

I'm getting 404 for my logo in my default.xml Existing code: <referenceBlock name="logo"> <arguments> <argument name="logo_src" xsi:type="...
1
vote
2answers
43 views

override vendor xml file in magento 2

Dears, I have a xml file in the vendor directory: vendor/the_vendor/the_module/view/frontend/layout/the_file.xml I know that I should never make any change in this directory as it may be overrided by ...
0
votes
0answers
14 views

Magento 2 insert Checkout Item List Into another layout

I am trying to insert the Magento 2 checkout form into another layout. I tried a few things but I think this somehow needs to be expanded: my_index_index.xml <?xml version="1.0"?> <...
0
votes
0answers
5 views

How to set use address attributes

I have attributes wich display in customer_form_address_user_attributes BLOCK. How i can pass or change attributes. Maybe some xml or di?
0
votes
1answer
208 views

How to move add to wishlist button next to add to cart button [blank theme]

How can I go about moving the Add to Wish List Button next to the add to cart button? I can get the wishlist button to dissapear which I definitely don't want, but I can not get it to move next to ...
0
votes
0answers
13 views

compare product block display left sidebar_additional block in magento 2.3.5

how to compare products block define and call in our theme in magento 2.3.5 Now Please check our xml file app/design/frontend/Mageplaza/simple/Magento_Theme/page_layout/2columns-left.xml <?xml ...

1
2 3 4 5
24