Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Show blocks like JQuery UI Tabs on product detail page in magento 2

The related and alternate products blocks are showing as siblings one after the other. See current layout screenshot. The code is inside catalog_product_view.xml: <move element="catalog.product....
0
votes
0answers
38 views
+50

Error: Mismatched anonymous define() module: function(t) in Magento2

i have a problem with requirejs. I want to render a map on, for example catalog_product_view.xml using THIS. So i have to include https://sandbox-geowidget.easypack24.net/js/sdk-for-javascript.js on ...
0
votes
1answer
16 views

What does “catalog_category_view_type_default_without_children.xml” do exactly?

What does the layout file "catalog_category_view_type_default_without_children.xml" do exactly? From the name of the file it sounds like it's purpose is to allow you to customize the layout of ...
0
votes
1answer
24 views

i want to override file vendor/magento/module-theme/view/frontend/layout/default.xml in magento 2.3 porto theme

I am using smartwave porto theme in magneto 2.3.2.I am new in magento.How to override this above title file. But I checked in app/design/frontend/Smartwave/porto/Smartwave_Porto/ In above path module-...
0
votes
2answers
48 views

Element 'handle': Character content other than white space is not allowed because the content type is 'element-only

Migration from Magento1 to Magento2 was done using the data migration tool successfully. However, certain product pages end up throwing the exception as seen on the attached screenshot. To isolate ...
0
votes
0answers
22 views

How to exclude all JS in a custom theme?

I want to include my own js or include only a few js in require.js, but need to exclude all js files / css files being loaded default by Magneto or any module. It is explained here: https://devdocs....
0
votes
0answers
17 views

Please correct the XML data and try again Magento 2.1.9

Getting these errors in my system.logs continuously [2020-03-05 07:11:13] main.INFO: Cache file with merged layout: LAYOUT_adminhtml_STORE1_391fccd54da687afc76a5d6559b714906 and handles default, ...
0
votes
0answers
17 views

Images invisible on catalog page upon resizing images in view.xml

I have changed the size of image in view.xml as <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <view ...
0
votes
0answers
19 views

In checkout page while I'm switching the address the shipping method is not get updated Is there any way to fix the issue?

In checkout page while I'm switching the address the shipping method is not get updated Is there any way to fix the issue ?
2
votes
1answer
42 views

Magento 2 Product page layout change

Magento 2 change the product page layout as below :- <referenceBlock name="head.components"> <block class="Magento\Framework\View\Element\Js\Components" name="...
1
vote
1answer
32 views

How to Set Condition for MetaDescription in Magento 2

I am trying to set a meta description dynamically for Magento 2 categories as default rules. And I did manage to do it, here is my code. public function execute( \Magento\Framework\Event\Observer $...
1
vote
1answer
31 views

Dynamically Set the Category Page Title and Meta Description

I am using Algolia Instant Search for the category to show quick results on the category page the same as on the search result page. I have many categories on the website, and 90% of them missing the ...
1
vote
1answer
18 views

Magento2 - How to create sitemap pro-grammatically with custom script

I want to create sitemap pro-grammatically using script, any one have idea, to create sitemap using API or another way...
0
votes
0answers
28 views

Magento2 - Category filter is not working for all product list

Magento2 - Category filter is not working for all product list Issues page
0
votes
1answer
26 views

Get custom attribute in one step checkout

I'm trying to get a custom attribute (mgs_brand) in MagePlaza's One Step Checkout. I've created a catalog_attributes.xml file like so - <?xml version="1.0"?> <config xmlns:xsi="http://www....
0
votes
2answers
123 views

Layout Update XML for Category in Magento 2.3.4

Can anyone help me how to change number of products per page for a SPECIFIC category. I am on magento 2.3.4 and noticed that Layout Update XML does not exist anymore.
1
vote
1answer
21 views

Error of layout xml : Element 'update': This element is not expected

I'm upgrading a theme from 2.2.x to .2.3 there are so many xml in this theme have the following directive <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1
vote
0answers
20 views

Magento 2 How can I add 2columns-left in container area like the one I have shared

I want to add 2 columns one for the menu and other for the text in container Page.top is the menu container which I have move into a new container Now In that new container page top after banner I ...
0
votes
2answers
40 views

Magento2 - Change my account label to image

I tried to change the my account link to a image but then found that it was called in xml in vendor/magento/module-customer/view/frontend/layout/default.xml as label . So how could I change it to ...
3
votes
2answers
64 views

Move title between sort by and number of items

I need my title of the category page to be placed between the number of items and the sort by option. What should I do? Which container has to be moved to which destination?
0
votes
0answers
28 views

Magento2 - Change position of wishlist on catalog-category view page

I want to change the position of Wishlist icon on the top of image . Do I have to achieve this through xml or through css? I tried through xml but I couldn't move it over the image. Here is the ...
0
votes
0answers
15 views

magento 2 in how to category filter in all subcategory list show?

magento 2 in how to category filter in all subcategory list show ? Category • Technology & gadgets ◦ Power Bank ◦ Fitness Tracker ◦ Smart Watch ◦ Wireless Chargers ◦ Mobile ...
0
votes
1answer
29 views

how to make noindex nofollow for login page

I want to make noindex nofollow for login page, i tried <customer_account_login translate="label"> <label>Customer Account Login Form</label> <!-- Mage_Customer ...
0
votes
0answers
22 views

Magento 2.2.3 admin ui component works on developer not on production page is blank

My Custom admin page isn't loading up. I get a blank screen I have taken a look at the similar questions in Magento.StackExchange but none of them did the trick. it works if I put the MAGE_MODE to ...
0
votes
0answers
27 views

Please correct the XML data and try again. Element 'head': This element is not expected. Line: 2

I am trying to remove the <meta name="robots" content="INDEX,FOLLOW"/> Using Layout Update XML within Magento 2 Design Tab but i am keep getting the following error Please correct the XML ...
0
votes
0answers
10 views

Custom theme magento 2 from Luma missing Customer sign in

I have "create account" but I am missing "Sign in" here is my custom default XML - I am getting system error report, "main.CRITICAL: Broken reference: No element found with ID 'customer. not sure its ...
0
votes
0answers
44 views

How to create a custom table in Magento 2.3 using XML (Declarative Schema) and integrate in custom admin grid?

I need to create an admin grid and for that i need to create a custom table using Declarative Schema in Magento 2.3. How to create a custom table using declarative schema and integrate the table with ...
0
votes
0answers
10 views

Magento 2 in how to upload the image in multiple images (image.jpg,image1.jpg) ? ita not working in this magento fields add options

Magento 2 in how to upload the image in multiple images (image.jpg,image1.jpg) ? ita not working in this magento fields add options I need the upload image with in multiple image select to upload, ...
0
votes
1answer
48 views

Magento 2.3.3: Does catalog_product_view.xml not pass down containers to specific product types?

I have created a catalog_product_view.xml in my theme and when I go to create a widget and select all product types in the layout updates section I can see my custom container I created. If I then ...
0
votes
0answers
9 views

Magento 2 : How to create rss xml file

I want to create RSS feed like this It is a link abc.com/feed.rss Any help? Thank in advance.
0
votes
0answers
31 views

xml code is wrong

was trying to add custom head script for favicons / app icons <link rel="apple-touch-icon" sizes="180x180" href="Magento_Theme::icons/apple-touch-icon.png" /> <link rel="icon" type="...
0
votes
1answer
42 views

Magento - Canonical URL for catagory page is not taking

I am trying to add a canonical URL in category page custom design. But it is not taking. Here is my code, <reference name="head"> <action method="addItem"><type>skin_js</...
0
votes
1answer
27 views

What is the difference between usage of '/' and '\'?

<block class="Magento\Framework\View\Element\Template" name="test" template="test/example.phtml" /> In above example for class used '\' and template '/' use Magento\Framework\...
0
votes
1answer
21 views

Enabled RSS in Magento 2.3 doesn't work

RSS page shows an error This page contains the following errors: error on line 1 at column 7: XML declaration allowed only at the start of the document Below is a rendering of the page up to the ...
0
votes
1answer
24 views

Adding div around footer elements causes issue

I'm trying to add a simple div around the copyright & bug report links in the footer. I can achieve this by doing this: <referenceContainer name="footer-container"> <container name="...
1
vote
1answer
78 views

Exception in Magento log: the element can't have a child

I found the following errors in the exception.log and debug.log files in /var/log folder: [2019-12-17 16:23:05] main.CRITICAL: The element "product.info.options" can't have a child because "product....
0
votes
3answers
60 views

Magento 2.2.4 Overriding vendor/magento/module-catalog/view/adminhtml/layout/catalog_product_edit.xml

I am trying to hide the Store View change option by overriding vendor/magento/module-catalog/view/adminhtml/layout/catalog_product_edit.xml and commenting out like this: <?xml version="1.0"?> &...
1
vote
1answer
78 views

Move bundle options via XML - Magento 2

I've tried absolutely everything I can think of to move the bundle options but for some reason they won't move. When you click the customize and add to cart button it's those options that I want to ...
0
votes
0answers
19 views

How can I use a block I created in my plugin to be used as a CMS block?

What am I trying to achieve? I want to show a block of my plugin on every product page of a specific category. What my problem is right now. In the Magento CMS you can add XML layout to a category ...
1
vote
1answer
52 views

How to disable button url in Magento 2?

I tried to put # places of the url, but the url still works and e.stopImmediatePropagation () with js also didn't help. Is there any way to do this through xml or otherwise? Thanks <item name="...
2
votes
0answers
74 views

Magento 2 Export all coupon codes in the XML format

Like sitemaps, I wanted to export/ get all active coupon code/ cart rule in XML format. Please guide me how to do it?
2
votes
1answer
32 views

How to access a variable declared in a phtml from another phtml?

I have inserted two blocks in the catalog_product_view.xml file: <block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-...
1
vote
0answers
68 views

Magento 2.3.2 LayoutXML Update remove canonical

Under Stores > Configuration > Catalog > Catalog, We have "Use Canonical Link Meta Tag For Categories" set to "Yes" There are a couple of category pages that we want to edit the Canonical Link for. I ...
2
votes
2answers
85 views

How to remove tooltip from email field on checkout

Tell me how to remove tooltip from the checkout email field. I tried this way app/code/Dv/Tooltip/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\...
2
votes
0answers
17 views

Unit Test for XML code Changes in Magento 2

We can run Unit test cases for PHP classes in Magento 2 using phpUnit. I would like to know how to configure and run Unit test cases for XML files like cms_block_form.xml or any other XML files ? ...
2
votes
2answers
278 views

How to fetch post method xml data in Magento2 controller

We have to implement the punchout concept in magento2. There is a 3rd party system they will send data using the cXML format to Magento 2 endpoint. We need to fetch that data in the Magento2 & ...
2
votes
0answers
99 views

Magento 2 Build Xml Request For External API

I would need to pass request payload in XML format for a web service. Below is the code I tried. How do I verify & view XML is constructed properly? Is there a better Magento way to create an ...
0
votes
0answers
33 views

Magento XML feed

I have a magento feed output with filters setup as to which products to export but it still exports absolutely everything on my webshop. I've included the xml code below, is there something wrong ...
0
votes
1answer
36 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
2
votes
1answer
70 views

How to refresh the module configuration after change the etc/config.xml?

I've created a module with default configurations into the etc/config.xml file, but I changed the default configuration and I'm not able to see them reflected into my module installed. How could I ...

1
2 3 4 5
23