Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
5
votes
3answers
6k views

Magento2: How to rename the Details tab on the product details page, via overwriting layout file?

How can I use arguments in an xml layout file to overwrite the Details tab title on the product details page? The layout file I hope to overwrite is: vendor/magento/module-catalog/view/frontend/layout/...
3
votes
1answer
954 views

Adding custom layout xml to adminhtml

I want to add a custom layout xml file to update adminhtml. I have it working now by adding the xml file to app/design/adminhtml/default/default/layout/[module]/custom.xml. I don't like adding this ...
0
votes
2answers
277 views

How to disable add to cart in magento 2

I feel like i've read and tried every solution i possibly could and nothing works. I removed from product page by overiding .phtml files in custom theme, easy. I then successfully removed from the ...
0
votes
1answer
73 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
0
votes
1answer
36 views

Magento 2 read custom xml file from third party server and load it in our magento site

I am loading custom xml feed file myfeed.xml from third party server. This file is publically accessible. Not any authentication set. <valley street name="jackson"> <item> &...
1
vote
1answer
29 views

Remove class on div from empty.xml layout

I am running Magento 2.2. I have custom HTML I want to add to a CMS page. After navigating to the page where this HTML resides, the content is automatically displayed inside a div with class page-...
1
vote
1answer
17 views

Add custom block under long description (product.info.description)

I'd like to add a custom block in description tab just after long description field. I Tried <referenceBlock name="product.info.description"> <block class="Magento\Catalog\Block\Product\...
3
votes
1answer
48 views

Custom Theme XML Files Changes 2.2 to 2.3

Does anybody know if there have been changes to the way XML files from custom themes are included in Version 2.3? I have a very simple XML file to modify the Magento Advanced Search page. The custom ...
2
votes
3answers
26 views

Move block and set template

I succesfully moved the product related block in my page layout with <move element="catalog.product.related" destination="product.info.right" after='-'/> I want now to apply a custom template ...
0
votes
0answers
12 views

create custome xml in magento 2

i create custom XML file <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:chalaksoft:...
2
votes
3answers
6k views

How to remove tool bar in Magento 2

I would like to remove the tool bar from my theme since I don't have that many products. So far I have tried this in my /app/design/frontend/VENDORNAME/THEME/Magento_Theme/layout/default.xml <...
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 ...
1
vote
1answer
192 views

Disable/Readonly admin options Magento 1 [duplicate]

How can I disable the size option for catalog products in Magento 1. I've searched Google and StackOverflow and I can't find a good solution. Is there someone that can help me? Thanks a lot!
2
votes
3answers
193 views

Magento 2 : How to update 'Update cart' Button`s Template?

I have develop custom module that can update add to cart and update cart button but I can`t update Update cart button I have update Add to Cart button using catalog_product_view.xml <...
1
vote
2answers
115 views

How to change footer and header for a CMS page only using layout XML?

I want to change out the footer and header for a minimized version but only on a certain CMS Page. Is it possible to do this with the layout XML input field to remove the header/footer and add static ...
0
votes
2answers
1k views

Adding css to a module in Magento 2

I am trying to add custom CSS without creating a theme and these are my steps. Step 1 I create a mycss.css file body{ background-color:green; } and this is the path app/code/vendor/module/...
0
votes
0answers
38 views

Product Form with Custom Datasource not showing default values except image of product in magneto 2 Admin

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
2
votes
0answers
20 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
1answer
48 views

what is translate=“label” in xml file what it does?

I am working with Magento XML files and I found translate=" label" <tabs> <training translate="label" module="training"> <label>training</label> <...
0
votes
1answer
20 views

Magento 404 (expecting controller to load)

I'm trying to follow this tutorial: http://devdocs.magento.com/guides/m1x/magefordev/mage-for-dev-5.html I am using Magento 1.9.x (not 2) I'm stuck at creating a weblog module, the module is ...
0
votes
1answer
683 views

How to add phtml page on shipping page in magento2

i am adding a phtml page on shipping page but its also adding on payment page checkout_index_index.xml. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=...
1
vote
2answers
129 views

Move category description from admin panel (Layout Update XML) in Magento 2

Our customer wanted to show category description after the product list by default, so we added a new container and the following line to the default.xml in out theme: <move element="category....
1
vote
1answer
413 views

How to call the Search bar from homepage to all other pages in Magento 1.9?

My Search bar is currently on my Homepage Code is: <reference name="header"> <block type="core/template" name="top.search" as="topSearch" template="catalogsearch/form.mini.phtml"/> &...
0
votes
2answers
2k views

Magento 2 SimpleXMLElement (array to XML stream conversion error)

$test_array = array ( 'bla' => 'blub', 'foo' => 'bar', 'another_array' => array ( 'stack' => 'overflow', ...
0
votes
0answers
18 views

Magento 2 Data in SSRS Reports

Has anyone been able to query Magento 2 (any entity, but I am specifically using orders) using the XML data source in SSRS Report Builder? I am having difficulty structuring the connection string. If ...
1
vote
1answer
221 views

How to create page in customer account section Magento 2

I want to create new page and link to => HISTORY how i can do this?? where I can add a new link?
3
votes
2answers
2k views

Create plugin LayoutProcessor::process vs override checkout_index_index.xml

To add a custom field, I can create a plugin and it will add input on the checkout. 1) Create plugin LayoutProcessor::process Exapmle : Namespace/Module/etc/frontend/di.xml <config xmlns:xsi="...
0
votes
1answer
238 views

Magento2: programmatically add layout for specific products

Good evening. I need to add layout for products, which SKUs start from 9 (so 9XXXX). I've read we can add this though handler or some other methods. If someone had experience with that moment, ...
1
vote
1answer
37 views

When I switch the mode default to developer of magento2.2.3 then got this error Element 'count': This element is not expected

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'count': This element is not expected. Expected is ( argument ). Line: 1077
1
vote
0answers
45 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?
2
votes
1answer
118 views

Override Magento 2 checkout.cart.methods.onepage.bottom proceed to checkout button Block and template file

I see below configuration in Magento 2 layout at vendor\magento\module-checkout\view\frontend\layout\checkout_cart_index.xml. I created custom module and copied existing Link Block and link.phtml to ...
0
votes
1answer
155 views

Move custom block Magento 2

I have added a custom block to the order information page. But I would like to move it under account information. How would I go on about doing this? view/adminhtml/layout/sales_order_view.xml <?...
0
votes
1answer
43 views

my custom module pages title's are moved to bottom in magento 2?

have custom module and pages here my module and customer dashboard title's are moved to the bottom that module xml file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
0answers
18 views

Grid name=“collection” on di.xml work with an undefined path

When I want to generate the Grid on my admin panel, I need to add that on my di.xml. the code : <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> ...
2
votes
1answer
62 views

module.xml active attribute

Sometimes in module.xml the attribute active="true" is used but I could not find out what difference it makes to use it or not. <module name="xxxx" schema_version="0.0.1" active="true"/>
3
votes
0answers
1k 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, ...
0
votes
2answers
183 views

How to set two page layout in category page?

I using a theme in Magento 2.1.7. In my category page I am having 2-column-left layout with this I am getting this look of my category page given in the Image-1 I want this look in my category ...
0
votes
2answers
411 views

How to give condition in xml file for showing different block in different pages

How to give condition in xml file for showing different block in different pages. Like I place a block name "Footer Block" in default xml file, and I want different footer for different pages. &...
2
votes
0answers
40 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 ...
1
vote
0answers
202 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 ...
0
votes
0answers
177 views

Magento2 : How to add button in admin custom module page?

I want to add one button here how I can add code?? and how to add action controller any idea ?? i already tried this answer(https://magento.stackexchange.com/a/212656/73525) but showing error ...
0
votes
1answer
175 views

Magento 1.9 Override zend lib xml file?

I followed this tutorial: https://www.damianculotta.com.ar/magento/bug-en-los-locales-es-en-magento-1-y-2/ which suggested to override this file: src/lib/Zend/Locale/Data/es_419.xml. I created the new ...
0
votes
1answer
62 views

Image Uploader throws Uncaught type Error in Ui Component

I'm Using UI component to upload an image but it throws this error Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Framework\View\Element\UiComponentFactory::argumentsResolver() must ...
1
vote
3answers
258 views

How to move notification message top of the page for all page

I am trying to move all notification message on the top below header(or any specific location) I followed this link but this only achieve top for customer page only Magento 2: Change message ...
2
votes
3answers
4k views

System.log error simplexml_load_string (Extra content at the end of the document)

System.log error 2016-02-04T03:16:25+00:00 ERR (3): Warning: simplexml_load_string(): Entity: line 9: parser error : Extra content at the end of the document in /var/www/html/magento/app/code/core/...
2
votes
2answers
2k views

Magento 2: Why block initialized but template not rendered?

I have a page that I want to add content to it. My problem is that my block is initialized and setTemplate is called but my template never rendered. I tried adding module name to layout (Vendor_Test::)...
16
votes
1answer
8k views

Magento 2 - ifconfig in layout xml

I'm working with magento 2. I can use ifconfig attribute in the block code, and it works well. <block class="Magento\Catalog\Block\Category\View" name="category_desc_main_column" template="...
0
votes
0answers
23 views

Migrate from opencart to magento is i need to resubmit xml sitemap to google webmaster after successfully migration?

After migration from opencart to magento is i need to submit xml sitemap to google webmaster?
2
votes
0answers
43 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
2answers
2k views

How to add breadcrumbs in my account pages

I want to add Breadcrumbs in my account page & it should be displayed on every tab selection below the Navigation menu bar. But it is not showing anything on my page it is looking like this But ...