Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
0 votes
2 answers
438 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 ...
Tj1997's user avatar
  • 47
0 votes
2 answers
406 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 ...
user2217288's user avatar
0 votes
1 answer
382 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 ...
Aknot's user avatar
  • 292
0 votes
1 answer
91 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 ...
coding ev's user avatar
0 votes
3 answers
1k 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&...
sumeet bajaj's user avatar
  • 1,195
0 votes
3 answers
1k 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. ...
NoDachi's user avatar
  • 139
0 votes
1 answer
26 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="...
Ibrahim S's user avatar
1 vote
2 answers
273 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 ...
Volodymyr's user avatar
0 votes
1 answer
52 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> ... &...
sv3n's user avatar
  • 11.6k
3 votes
1 answer
129 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 ...
Singleton's user avatar
1 vote
1 answer
167 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"> &...
gl360xa's user avatar
  • 13
0 votes
2 answers
661 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 ...
Friska Sianturi's user avatar
0 votes
1 answer
217 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 ...
Anthony's user avatar
  • 431
1 vote
1 answer
350 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 ...
Nang's user avatar
  • 23
0 votes
2 answers
312 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\...
Duncan Wardlaw's user avatar
0 votes
2 answers
1k 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 ...
jt9489's user avatar
  • 155
0 votes
1 answer
349 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/...
vartika sharma's user avatar
1 vote
1 answer
491 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:...
Carter's user avatar
  • 47
0 votes
1 answer
632 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 ...
Jonathan's user avatar
  • 103
0 votes
1 answer
12 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
Malka's user avatar
  • 1
0 votes
1 answer
154 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"> <...
KaMZaTa's user avatar
  • 175
1 vote
1 answer
1k 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 ...
Mr.Devops's user avatar
0 votes
1 answer
820 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 ...
Jackom's user avatar
  • 421
0 votes
1 answer
149 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, ...
Ihor Mandzyuk's user avatar
0 votes
3 answers
1k 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 ...
Ravindrasinh Zala's user avatar
0 votes
1 answer
854 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'...
Black's user avatar
  • 3,003
3 votes
1 answer
841 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.phtml but in xml file the phtml file was not mentioned at any ...
MagentoDev's user avatar
0 votes
4 answers
927 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. <...
MagentoDev's user avatar
0 votes
1 answer
126 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="...
MagentoDev's user avatar
0 votes
1 answer
270 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: <...
Coen Ponsen's user avatar
0 votes
1 answer
85 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 ...
Ricky Aldea's user avatar
0 votes
1 answer
311 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.
Ricky Aldea's user avatar
0 votes
1 answer
37 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\...
Mr.Devops's user avatar
0 votes
2 answers
280 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\...
IvannVerano's user avatar
2 votes
3 answers
420 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 ...
MartinE's user avatar
  • 510
0 votes
1 answer
238 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!!
IvannVerano's user avatar
0 votes
1 answer
116 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 ...
BugHunterUK's user avatar
0 votes
0 answers
236 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 ...
Jack Brooks's user avatar
0 votes
1 answer
308 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="...
Sam's user avatar
  • 163
2 votes
2 answers
445 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 ...
Anthony's user avatar
  • 23
0 votes
1 answer
1k 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 ...
oompahlumpa's user avatar
0 votes
2 answers
31 views

Magento 2.1.9 can't find save button class

I am trying to get a save button on a dynamic row field to fire but on loading a CMS page I get the following error: Class Brancom\PageExtensions\Block\Adminhtml\DynamicRows\Edit\SaveButton ...
Litsher - Nathan's user avatar
0 votes
1 answer
58 views

How can i make a particular block cachable

I have a custom block i want only that block's cache to be cleared I tried 2 methods set cachable = false in layout file for my block (This clears full page cache) in my block I added a method ...
sandesh s's user avatar
0 votes
1 answer
34 views

Magento2 - How to bring a 100% html template?

I have tried several methods to bring an html template to Magento2. One was to simply load style sheets from the template I was working on. The styles were mixed with the standard template, and the ...
Paulo Sérgio Duff's user avatar
0 votes
3 answers
334 views

How to add logo in cms_index_index.xml in magento 2.3.5

app/design/frontend/vendorname/themename/Magento_cms/layout/cms_index_index.xml <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt ...
Ravindrasinh Zala's user avatar
1 vote
0 answers
76 views

How can you have multiple dependences for a single parameter in a widget.xml file?

Like many things with Magento widgets, this should be simple but clearly isn't. How can I use the same depends logic but for multiple parameter values? so <depends> <parameter name="...
Pyper's user avatar
  • 11
0 votes
1 answer
154 views

Move custom product in More Information Tab

I want to move product attributes inside the more Information tab. Can someone help?
gill's user avatar
  • 329
0 votes
0 answers
156 views

how to override framework xml

Is there any way to override core XML file like this vendor/magento/zendframework1/library/Zend/Locale/Data/fa.xml at this file, we have some hidden characters that should be removed or replaced ...
gh darvishani's user avatar
1 vote
1 answer
437 views

Call current product in custom phtml file in Magento 2

On the product page I created a custom module to override the form.phtml file. I also added the option to include a new file called customFile.phtml when the user clicks on a button that is positioned ...
Jackom's user avatar
  • 421
1 vote
1 answer
136 views

covert Text field to drop down selection

HI I downloaded an extension (checkout-custom-form) from here, I want to modify his extension, https://github.com/sbodak/magento2-checkout-custom-form the extension itself work wonderful. having below ...
Paul Fan's user avatar
  • 604

1
2
3 4 5
24