Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Export correct URL in product feed with XSL

I try to export product URL:s for my Magento 2.3 website using this line of code in an XSL template: <xsl:element name="link"><xsl:value-of select="product_url"/></...
user avatar
0 votes
1 answer
11 views

xml to extract data in php

Her are my code. I can't able to get full data in array format. Only Url get this php code. Where am I wrong. $sitemap = 'videomap-1.xml'; $context = stream_context_create( array( "...
user avatar
0 votes
2 answers
25 views

What is the product attribute for product ID?

Every product recieves a unique ID, shown on the left on the product page screenshot. I do not choose this nunmber, the number is assigned by the system. Now I am trying to create a pricefeed with XML ...
user avatar
0 votes
0 answers
9 views

Load XML in Windows 10 and format using CSS

First let me start of by saying that I am not a programmer or code person. I used to design websites back in the dinosaur ages of the internet but don't have a clue about any of it these days. Here's ...
user avatar
0 votes
0 answers
11 views

standard magento one page checkout, not in 1 column magento 1.9

I'm trying to leave the checkout in just 1 column, but whenever I use the xml, the side column of progress still appears. He is still using 2columns-right.phtml. Why can't I leave the default checkout ...
user avatar
  • 197
0 votes
0 answers
15 views

Magento 2 - Split large dataset XML Files, create a MAIN/INDEX XML RSS feed: Product data for Google parsing compatibility

I am busy creating a custom XML implementation for Google data; following these specifications: Google XML RSS v2.0 specification Question How can I split a RSS feed into multiple XML files, and then ...
user avatar
0 votes
0 answers
14 views

Magento 2: Convert SOAP XML Response into array

I am getting below XML as a response, how can I convert it to an array? I have tried almost all the think available in internet but always getting this error: Decoding failed: Syntax error <soap-...
user avatar
  • 1,019
0 votes
0 answers
66 views

Magento 2 Youtube is not working for configurable product

Using Magento 2.4 version. On simple products, youtube works properly. but on configurable and their children's products youtube is not working. Does Anyone face this type of issue?
user avatar
  • 1,143
0 votes
0 answers
28 views

How to use conditions_encoded in a phtml file

I have a field type xsi:type="conditions" in widget.xml, and I would like to be able to pick it up in phtml. I managed to do this in using $block->getData('conditions_encoded') but what ...
user avatar
  • 27
1 vote
1 answer
44 views

how to override TTL value from theme or module?

<block class="Vendor\Demo\Block\Menu" name="navpro.topnav" template="Vendor_Demo::menu.phtml" ttl="3600" before="-" ifconfig="Demo/top/...
user avatar
0 votes
0 answers
29 views

magento 2 admin grid export to xml file (my custom template)

i already write cistom module who display custom grid with data from sql query (select 3 tables) in Venige/InvoiceGrid/Model/ResourceModel/InvGrid/Collection.php I have custom button in ui_component &...
user avatar
0 votes
3 answers
58 views

How to hide top Navigation link My Account when signed out but still show up when signed in?

I have been looking around on others solutions but I can't seem to find any fix with my issue. I want to hide My Account link when your signed out. But I want to show it when your signed in. I have ...
user avatar
  • 3
0 votes
0 answers
99 views

Magento 2 - CSP whitelist not work for subdomain

I have whitelisted all the resources that come from facebook inside the csp_whitelist.xml file and for my main domain: www.magento2.com works without problems. But for my subdomains the csp_whitelist ...
user avatar
  • 297
0 votes
0 answers
15 views

Magento 2.4.0 PickupDate ignoring in request UPS API

This is my UPS request API Data where I am passing 4 February 2022 for pickup date but UPS API ignore my <pickupDate> and it taking today's date automatically and return today pickup date in ...
user avatar
0 votes
1 answer
16 views

Control manditory fields for customer create from adminside

how to add custom rule from js for firstname in magento2? <validation> <rule name="required-entry" xsi:type="boolean">true</rule&...
user avatar
  • 1
0 votes
1 answer
19 views

Why I can't edit XMLs in my Custom Layout Update via CMS?

I had layout updates via XML configurations per CMS page via admin panel as you can see below. After updating my Magento 2.3 I got another option instead. How could I add my layout changes with an ...
user avatar
0 votes
0 answers
19 views

Move mini cart in second container

I've moved some elements through default.xml file. One of those elements, the top search, is moved. At desktop it's into the right position however not on mobile view. I'm wondering if it's possible ...
user avatar
0 votes
1 answer
35 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 ...
user avatar
0 votes
0 answers
31 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....
user avatar
0 votes
1 answer
263 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/...
user avatar
0 votes
1 answer
118 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"...
user avatar
  • 71
0 votes
1 answer
28 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/...
user avatar
0 votes
1 answer
39 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"> ...
user avatar
  • 1,094
0 votes
0 answers
22 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 ...
user avatar
  • 197
0 votes
3 answers
42 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 ...
user avatar
0 votes
2 answers
26 views

Magneto 2: referencecontainer and container

I want to know the difference between <container> and <referenceContainer> for layout file. Thank you in advance!
user avatar
0 votes
1 answer
31 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?
user avatar
0 votes
0 answers
145 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 ...
user avatar
0 votes
2 answers
28 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?
user avatar
0 votes
1 answer
57 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
user avatar
0 votes
1 answer
22 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 ...
user avatar
0 votes
0 answers
43 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="...
user avatar
0 votes
0 answers
54 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
user avatar
  • 1
0 votes
1 answer
322 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://...
user avatar
  • 2,066
0 votes
0 answers
20 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 ...
user avatar
  • 11
0 votes
0 answers
55 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 ...
user avatar
0 votes
2 answers
54 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....
user avatar
0 votes
2 answers
243 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"?> &...
user avatar
  • 828
0 votes
1 answer
449 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 ...
user avatar
  • 197
0 votes
0 answers
30 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 ...
user avatar
  • 137
0 votes
2 answers
536 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/...
user avatar
  • 1
0 votes
0 answers
22 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
user avatar
2 votes
1 answer
258 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 ...
user avatar
2 votes
1 answer
116 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 ...
user avatar
0 votes
0 answers
23 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 ...
user avatar
  • 197
1 vote
0 answers
72 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 /** *...
user avatar
1 vote
1 answer
140 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.
user avatar
0 votes
2 answers
174 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 ...
user avatar
  • 45
0 votes
2 answers
130 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 ...
user avatar
0 votes
1 answer
151 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 ...
user avatar
  • 320

1
2 3 4 5
24