Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

How to avoid JS minification in an external file add via requirejs-config.js?

I have a custom module called Quicklink it has its own JS files and external JS files too, I've added an external JS from a third-party CDN, but when I enable the JS minification in a Magento 2 clean ...
0
votes
0answers
14 views

Core_config_data value in crontab.xml

I am creating a module to monintor teh cronjobas in Magento. I have created a field in system.xml where we cab store a value to schedule the job in de cron. And I want to place this value in cronbtab....
0
votes
1answer
28 views

How to Integrate Button component with Form component? [duplicate]

I try to add my custom button to the form, not to the header of the form, but after some fields inside the fieldset, I found some examples here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/...
0
votes
1answer
34 views

How can I display the categories and subcategories in my admin form like in the product page?

I am trying to add the categories and subcategories in a small panel Exactly like the one in the product panel and I want to add it in here instead of this XML field like the "toOptionArray"...
0
votes
1answer
14 views

Magento DOM error XML

I got some errors when I setup:upgrade my file in Magento 2. this is the error : Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/cloudpanel/htdocs/swift/vendor/magento/...
0
votes
1answer
24 views

In Magento 2.4.x, How to remove the breadcrumb link and add custom class?

In Magento 2.4.x, I want to add the breadcrumb without a link and need to add a custom class for that. How to add that? Here is my XML code. <referenceBlock name="breadcrumbs"> ...
0
votes
0answers
16 views

create catalog_category_view for a different layout template

I'm following this tutorial: Magento 2: Add custom category layout to multiple categories however in the end the catalog_category_view is created. however, I already have this file created what I need ...
0
votes
3answers
33 views

How to add block for Specific category's products in Magento 2 by layout/catalog_product_view_attribute_set_id_[id]?

I am trying to the make block visible only in Category 3. The block renders fine in catalog_product_view.xml. However when I change the file to catalog_product_view_attribute_set_id_3.xml, it doesn't ...
0
votes
2answers
21 views

Magneto 2: referencecontainer and container

I want to know the difference between <container> and <referenceContainer> for layout file. Thank you in advance!
0
votes
1answer
23 views

What's the difference between a XML preference with slash and without it?

Checking the Magento core I see two patterns a class with the slash in the beginning and a class without it. What would be the difference?
0
votes
0answers
54 views

How do I pass in a viewModel to a core block that has been overridden?

I am rewritting the /vendor/magento/module-catalog/view/base/templates/product/price/amount/default.phtml file. The file MyCompany_MyApp::product/default.phtml works fine, but I want to pass a ...
0
votes
2answers
22 views

Check current language in XML

The website has multiple store views. By default, the form is shown in the footer. I need to place it under the header, but only for one store view. Is there any way to move it there via XML?
0
votes
1answer
29 views

can I use ```<svg> <path></svg> </path>``` instead of logo picture in magento2?

I'm trying to find a way that I want to use <svg> <path>content</svg> </path> instead of logo picture
0
votes
1answer
12 views

Adding an XML array in the user session

I'm getting some data from an API. I want to save those data in my user session so that the API isn't called each time the page is reached. First time: load API, save in session After, load session ...
0
votes
0answers
11 views

some of the columns are missing in custom grid CSV export

I'm having a custom Grid here most of the columns are getting exported in CSV but few columns only column names are displaying data is not capturing, my XML file example <column name="...
0
votes
0answers
31 views

Upgrading from Magento 2.1 to Magento 2.4 problem with smile/elasticsuite elasticsuite_indices.xml

The XML in file "path/to/file/etc/elasticsuite_indices.xml" is invalid: Element 'dataSources': This element is not expected. Expected is ( mapping ). Line: 24
0
votes
1answer
64 views

Magento 2 Insert / Move page.main.title inside my custom block

I have create a custom xml for Category Page and I need to move the Category Title inside my Block. This is my custom.xml code: <?xml version="1.0"?> <page xmlns:xsi="http://...
0
votes
0answers
10 views

How to add block to main container from custom theme?

I've created a custom theme: app/design/frontend/TestVendor/testTheme with registration.php and theme.xml files. Inside the testTheme folder I've created another folder: TestFolder and inside this ...
0
votes
0answers
27 views

Update product's custom_attributes in Magento 2 using Rest API?

I need to update the product custom_attributes. I use the rest API and XML (this is important) in the Postman. But I get an error message (see Attachments). If I try to update only one ...
0
votes
2answers
39 views

Magento 2.4.2 : Override third party layout file

I have third party module where I want override its layout file. Third party module file: /app/code/Magecomp/Savecartpro/view/frontend/layout/savecartpro_customer_viewcart.xml <?xml version="1....
0
votes
0answers
30 views

How to add view model to existing phtml and block

Is there any possibility to add ViewModel to the existing block and PHTMl file? I'm trying to add ViewModel to the file below. sales_email_order_renderers Code: <?xml version="1.0"?> &...
0
votes
1answer
142 views

How to use SortOrder in magento 2 xml files?

I was studying the construction of the checkout_index_index file on the checkout page, and I realized that there is no way to move an element using the "move element". But it is possible to ...
0
votes
0answers
27 views

Importing Magento\Catalog\Block\Product\View to theme phtml file

so I'm trying to overwrite the title.phtml in my Magento_Theme file, and its working, but now I want to get product data from Magento\Catalog\Block\Product\View, but it says that the variable in ...
0
votes
2answers
265 views

Magento 2: Page Builder Product Carousel custom options 2 column Layout

I am trying to set the Page Builder carousel to show less items on a 2 column layout compared to a 1 column layout. Already I have updated the following file app/design/frontend/{Vendor}/{theme}/etc/...
0
votes
0answers
16 views

Broken reference: No element found with ID 'sidebar.main'. [] []

I am getting this error " Broken reference: No element found with ID 'sidebar.main'. [] [] " in system.log file and in frontend and admin i am getting this error
1
vote
1answer
139 views

How to add checkbox default value below attributtes in xml

Hello everyone I want to add "Use Default Value" checkbox , for each attribute in that I have added , PS : 'If you have ever seen "Use default value" checkbox in Magento admin, it ...
1
vote
1answer
33 views

Custom CMS page XML identifier when URL key contains a "/"

I need to create an XML file for a custom CMS page but the URL key contains a "/": i.e. my/page-id Is there a way to do the equivalent to cms_page_view_id_my/page-id.xml for this? I've tried ...
0
votes
0answers
19 views

Elements disappear when manipulating the xml. Checkout_Cart_iten (Cart)

Whenever I try to move or remove a block, some elements on the page just seem to disappear. The cart page is being too complicated for me, I don't understand why this is happening. The price next to ...
1
vote
0answers
56 views

Magento 2: How to put products on separate rows in export order XML?

I want to display product names in separate rows along with their weight and sku's when I export orders using xml. Here is my custom code(ConvertToXml.php) where I added sku and weight: <?php /** *...
1
vote
1answer
85 views

Magento 2: how can I remove columns in exported XML from order grid?

I want to remove columns such as shipping address and billing address from order export xml file.
0
votes
0answers
9 views

Remove Custom Category Attribute from Another Module

I have a module has created a custom attribute on my category pages which I need hidden. I do not want to mess with functionality or break anything by actually deleting the attribute or remove module ...
0
votes
0answers
22 views

Product page layout 2.4.2-p1

I would like to override the product page layout because the current one is not ok and not suitable for my needs. Can somebody give me and idea how to do it. I have tried to move blocks inside xml ...
0
votes
0answers
15 views

How to analysis url path="rolepermissions/product/allowed" in view/adminhtml/adminhtml_user_role_editrole.xml

I am adding new tab in user role I added new label but I am facing with this code <block class="Magento\Backend\Block\Widget\Tab" name="adminhtml.user.tab....
0
votes
2answers
91 views

Magento 2 Can i call two phtml file into one?

I have two phtml files, I want to use one for just the heading title and content. then the second phtml file I want to use it to call a table with a simple form submission. is this possible, if anyone ...
0
votes
2answers
69 views

Hide customer navigation links based on user group

I would like to hide link in user account customer_account.xml based on role they are in. Let say we have group B2B and i want to hide block customer-account-navigation-product-reviews-link. To remove ...
0
votes
0answers
23 views

Show list of simple products by modifying item renderer magento 2

Modify the way configurable products are rendered in the shopping cart by modifying their item renderer. Show in the line item a list of all simple product names that are assigned to the configurable ...
0
votes
0answers
7 views

How to move "associated products" from a grouped product to a new tab?

I would like to know how to move the Associated Products that are inside my grouped product to a brand new tab, which would be "Select your products":
0
votes
0answers
16 views

Critical CSS file position

Is there a way to include inline styles after the <title> tag as shown on this image: If I edit the file default_head_blocks.xml I can only get this to show after the merged css file which ...
0
votes
1answer
95 views

Override sales_order_grid.xml to remove print options from mass action drop down in sales orders

Hello everyone, I'm trying to override the file sales_order_grid.xml to remove some print options from the mass action drop down in sales orders. I'm using Magento 2.4.2. The original file is located ...
0
votes
1answer
24 views

adding tag to a specific page

hello everyone i have added a specific tag to all page of my website , but I want to add it to just the home page , can i achieve that ? i have added the meta tag like below, but it appears on all ...
0
votes
0answers
11 views

Resize just bundge and grouped images for list and PDP

How to resize just bundge and grouped images for list and PDP? Looks like it's necessary to do via view.xml, but IDs are not clear
0
votes
0answers
37 views

Migration from M 1.9.2.4 to M 2.4.1 XML file is invalid

I have created a custom module then override the config.xml & map.xml for 1.9.2.4 folder as instructed by magento. I have added the source and destination db info. and M1's key as requested there. ...
0
votes
3answers
346 views

Magento 2 how to show custom block before product.info.details and after media

Magento 2.3.5-p2 how to show custom block before product.info.details and after media ? <div class="product-info-main"></div> <div class="product media"></div&...
0
votes
3answers
65 views

Magento 2 - How to render a block inside another?

On the PDP I am trying to create a new block (product.info.main.inner) inside of product.info.main so I can pass arguments to it and then move all off the child blocks inside product.info.main.inner. ...
0
votes
1answer
23 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="...
1
vote
2answers
113 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
26 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> ... &...
3
votes
1answer
116 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 an XML document and I want to return its parameters. My knowledge of connecting the two services is very limited. Do I need to create some middleware or is it possible just to ...
0
votes
0answers
45 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
11 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?

1
2 3 4 5
24