Questions tagged [xml]

Denotes questions about XML files and XML processing.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

Xml not rendering correctly on endpoint

I'm developing an endpoint that must return a well-formed xml, the XMl structure is formed with the following function: private function formatAsXml(Collection $categories): SimpleXMLElement { $...
1
vote
1answer
16 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
24 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
14 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
21 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
17 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
10 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
27 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
31 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
22 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
25 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
36 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
62 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 ...
0
votes
1answer
35 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 ...
0
votes
0answers
3 views

set full width only on a particular category page

I need to set the particular category page with full width. Is it is possible with xml and how?
0
votes
0answers
22 views

Custom template file is loading after hard refreshing the page in Magento 2

I override vendor sale module template file Module-sales/view/adminhtml/templates/order/create/sidebar/items.phtml in custom module with directory name Vendorname/Companyname/view/adminhtml/layout/...
1
vote
0answers
18 views

add custom banner on specific product view page

I tried to add a banner for a specific product but when I looked for the options, I can add in the content of the product, but I need the banner on the top of the specific product view page. Is there'...
0
votes
0answers
10 views

move xml only for desktop view

I'm using a single theme for both the mobile view and desktop view. I have used so much move elements or the desktop view. It has affected for the mobile view also. I don't think that responsive.js ...
1
vote
1answer
24 views

How to change date format of yyyy-mm-dd for dd-mm-yyyy on admin grid?

Hi i'm new at magento 2 and i want to change the date format on admin grid of yyyy-mm-dd for dd-mm-yyyy.
0
votes
0answers
21 views

Add customer in grid on category edit page at admin panel Magento 2

As in the product page we can add related product with modal, I want to add the special customer to the grid table in the category page.I list,show customers in modal,i can select but when I add the ...
0
votes
1answer
19 views

How to disable the authorization form on the checkout page using xml

How to disable the authorization form which is located on the checkout and appears if the user is not authorized. Need to disable completely or in the second step
1
vote
0answers
16 views

How to change driver between amqp and db

We have an extension that can make use of either MySQL driver db or RabbitMQ amqp. The drive is mentioned on these files: etc/queue_consumer.xml etc/queue_publisher.xml etc/queue_topology.xml https:...
0
votes
0answers
7 views

Making dynamic page from custom attribute

I am trying to generate the dynamic creator page for each creator name and its product. I have custom attribute called "creator", and drop down list of different author names. Each author is assigned ...
0
votes
0answers
7 views

A layout for Grid View and a layout for List View on Category pages

Is there a way to have a catalog_category_view.xml for a grid view and then another for the list view? Currently, I am using the phtml file to manipulate the columns however, I need a completely new ...
0
votes
0answers
7 views

How to update addItemRender action through layout file for changing the template in Magento 1.9

I have this piece of code in my custom theme in layout file: <default> <reference name="header"> <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/...
0
votes
1answer
34 views

Move “Cross Selling” products inside the “Related Product” tab in Product Page

I modified the catalog_product_view.xml to created a "Related Product" tab, and show related product in the tab. Also, there is a cross sell section show under Every tab. How do I move the Cross-...
0
votes
1answer
34 views

Creating a custom theme for Magento2 from the Luma theme as parent

Referencing this article below: https://www.codextblog.com/magento-2/create-a-custom-child-theme-from-luma-theme/ Having followed all of the steps, our theme is created and applied, but none of the ...
0
votes
1answer
27 views

Magento 2 - custom layout extending 2columns-left not working

I know there are 2 or 3 similar questions but there's no response for them. I'm creating a custom layout based on the 2columns-left layout. I have investigated from everywhere on the internet and the ...
1
vote
1answer
12 views

Default checkbox in ui_component admin customer_form to true and checked?

https://devdocs.magento.com/guides/v2.3/ui_comp_guide/components/ui-checkbox.html devdocs says default value is false but there is no clue how to turn it to true. Anyone know what to add in xml file ...
1
vote
0answers
19 views

How to control block XML cache via admin?

I've created a condition in my admin panel to enable or disable a feature in my module. In my XML I used the ifconfig to check if it's enabled or disabled. I want to disable the cache in the entire ...
1
vote
1answer
31 views

Calling ReferenceContainer or ReferenceBlock into phtml file

I am trying to call Template into list.phtml, this file is categories list file, here is the ReferenceBlock and ReferenceContainer code in xml file. <page xmlns:xsi="http://www.w3.org/2001/...
0
votes
0answers
18 views

Magento 2 - How to use swticherConfig for hiding a fieldset, not a field

As we all know switcherConfig can be used to show/hide fields inside a form or fieldset, How can we use it to hide fieldset not just a field.
0
votes
1answer
157 views

Magento 2.3.4 custom layout update - insert different facebook OG on each page

I need to have a different Facebook OG:IMAGE for each CMS PAGE. I found on official documentation how to add a custom layout update on Magento 2.3.4 --> I've already created this file ...
0
votes
0answers
9 views

How can I get store config value in ui_component xml file?

any idea on get store config value in ui_component xml file? EX: I want to get weight unit for a input form, then I tried <item name="addafter" xsi:type="helper" helper="Magento\Directory\Helper\...
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
1answer
23 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
36 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
3answers
82 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
25 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
65 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
34 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
38 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
24 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
33 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
31 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....

1
2 3 4 5
23