Questions tagged [xml]

Denotes questions about XML files and XML processing.

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

Convert XML via XSLT

I want to convert & compatible the below XML file structure with Magento 2 via XSLT, I start handling it but cannot complete it. product.xml <products> <product> <id>234234&...
0
votes
3answers
34 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 ...
0
votes
1answer
33 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'...
1
vote
1answer
80 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.phtmlbut in xml file the phtml file was not mentioned at any ...
0
votes
4answers
46 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. <...
0
votes
0answers
25 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="...
0
votes
0answers
13 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: <...
0
votes
1answer
9 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 ...
0
votes
0answers
8 views

Move block after price using layout xml in M1.9

We've got a module that prints a message with estimated delivery. This module has an xml layout file with this code <reference name="product.info.simple"> <action method="...
0
votes
1answer
17 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.
0
votes
0answers
12 views

Button in system.xml not working properly

I created a button that shows in a tab, but it does nothing, here's what I've done Custom/ExportSubs/etc/adminhtml/system.xml <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
1answer
20 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\...
0
votes
2answers
23 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\...
0
votes
0answers
10 views

checkout shipping page add custom field in magento 2.3.5

Now i added custom field checkout shipping page but issue add custom module custom.js and define layout checkout_index_index.xml but it's not working checkout_index_index.xml <page xmlns:xsi=&...
2
votes
0answers
23 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 ...
0
votes
1answer
23 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!!
0
votes
0answers
18 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 ...
0
votes
0answers
8 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 ...
0
votes
1answer
19 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="...
1
vote
2answers
37 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 ...
0
votes
0answers
13 views

Magento 2 insert Checkout Item List Into another layout

I am trying to insert the Magento 2 checkout form into another layout. I tried a few things but I think this somehow needs to be expanded: my_index_index.xml <?xml version="1.0"?> <...
0
votes
0answers
5 views

How to set use address attributes

I have attributes wich display in customer_form_address_user_attributes BLOCK. How i can pass or change attributes. Maybe some xml or di?
0
votes
1answer
60 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 ...
0
votes
0answers
11 views

compare product block display left sidebar_additional block in magento 2.3.5

how to compare products block define and call in our theme in magento 2.3.5 Now Please check our xml file app/design/frontend/Mageplaza/simple/Magento_Theme/page_layout/2columns-left.xml <?xml ...
0
votes
2answers
16 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 ...
0
votes
1answer
25 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 ...
0
votes
1answer
24 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 ...
0
votes
3answers
46 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 ...
0
votes
0answers
8 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="...
0
votes
1answer
34 views

Move custom product in More Information Tab

I want to move product attributes inside the more Information tab. Can someone help?
0
votes
0answers
19 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 ...
0
votes
0answers
8 views

Visual editor for custom order attribute

It's possible to add a visual input on user infos form, is it possible to do this to my orders ? I already add the column in filters and I did this to add the field : $salesSetup->addAttribute(...
0
votes
0answers
16 views

How to export customer data as a xml file

Hello i am fairly new to the magento2 development. I want some adivce on how I can perform the following: when a new customer signs up for an account, the magento process should export a xml file with ...
0
votes
0answers
15 views

Magento 2.3.5 - Remove Page Title Suffix for homepage

We want to remove the page title suffix for the homepage in our Magento 2.3 store. Therefore I already created a Custom Layout Update in our theme folder with the following xml. But that does not seem ...
1
vote
1answer
39 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 ...
1
vote
1answer
21 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 ...
2
votes
1answer
27 views

Can not save in db custom json value on block

In my plugin I created a new table 'myapp_staging' made of three columns: 'id', 'id_api_call' and 'f24_options_value'. In the last field I would like to save a response to my Api call in json format. ...
0
votes
1answer
25 views

magento 2.3.4: I want to put brand attributes value after the short description

I tried different xml code but unable to achieve. I am getting attribute value using below code, but above the sku, I want to place it in the short description block after it's content. <...
0
votes
0answers
11 views

Magento 2 backend grid not sorting date

I added a DateColumn component to my backend grid which looks like this <column name="booking_from" class="Magento\Ui\Component\Listing\Columns\Date" component="...
0
votes
2answers
27 views

How to add Slick Slider

I want to add slick slider on my home page in magento using static block and phtml with rotating images. if anyone have idea about that then please answer my question as soon as possible. Thank you ...
2
votes
1answer
51 views

How can I increase the number of related products shown on product detail page in Magento 2? [duplicate]

I am running Magento 2.3.3 and currently show 4 products on the product detail page. Where do I go to increase that number to 6? I have found nothing in the admin panel.
1
vote
0answers
12 views

How to move the block under the sidebar in the payment step of checkout

I have a block that I display on the checkout at the bottom of the page <referenceContainer name="page.wrapper"> <block class="Magento\Framework\View\Element\Template" name="...
0
votes
2answers
28 views

How to call Static content block

I want to create static block in Magento 2.3.5 and call that block in footer content. please anyone can have idea then please share with me. Thank you in Advance.
0
votes
1answer
37 views

How to change the layout for a particular category page

I know that for the category page or product view page, we can change the layout in catalog_product_view.xml or catalog_category_view.xml. But how do I change exactly for a single particular category ...
1
vote
1answer
27 views

How to add text at bottom of checkout in magento 2

How to add text at bottom of checkout in magento 2 after block .checkout-container or column main or maincontent
0
votes
1answer
44 views

How to add a required checkbox to checkout page (policy check)

I know that there is basic functionality, but it does not suit me. How to display my template under the form with the link to the privacy-policy page? Or tell me how to do it right. I need a ...
2
votes
1answer
44 views

Can you redirect CMS page to custom frontend route magento 2.3.5

I am trying to redirect a cms page to a new route which I have created for frontend. I am not sure if we can redirect to the new custom module route frontend with a config in admin area. My aim is I ...
2
votes
1answer
85 views

Magento 2 admin Uncaught TypeError: this.linksFieldset(…).visible is not a function

When we edit product from admin then its showing loading continue and also getting this error "Uncaught TypeError: this.linksFieldset(...).visible is not a function" is showing error in console. We ...
1
vote
1answer
42 views

Want to Learn magento 2.3.5

I am Working as PHP Developer and want to learn about magento 2.3.5 from scratch so can anyone having material related to magento 2.3.5 then please send me for self learning and any demo of modules as ...
0
votes
0answers
6 views

How to create admin form and action for edit and delete in magento 2

I am developing one module for post data to be displayed on front-end and all posts can be add,edit,delete by admin. I want to use UI Component for that, so can anyone can have idea about how to ...

1
2 3 4 5
24