Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
1
vote
2answers
20 views

How to unselect value from ui-select component in magento 2?

I have created a UI select field using PHP, with the below code of lines. $data = [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('...
0
votes
1answer
28 views

How to Integrate Button component with Form component? [duplicate]

I try to add my custom button to the form, not to the header of the form, but after some fields inside the fieldset, I found some examples here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/...
0
votes
1answer
16 views

How to filter admin grid collection based on certain condition in Ui component xml file New method

I have a grid which is replicated from the sales_order_grid. I want to show only the processing orders in the grid.So what can be done to filter that?
0
votes
1answer
28 views

Getting Error on Add Item Page in Admin UI Component

I just created a Form with Ui_components, but When I go to this page, I'm getting the following error.
0
votes
1answer
53 views

Magento 2 How to add the custom categories attribute field in product form? [duplicate]

I am trying to add the categories and subcategories in a small panel Exactly like the one in the Product Form in the admin panel. I need to add it in Product Form How to achieve this?
0
votes
1answer
19 views

Form ui fieldset load data

I used the Magento 2 plugin in PhpStorm to create an entity with grid and form. It seems to work great until I renamed the fieldset name to “foo” and added tabs. I already looked up many related posts/...
1
vote
2answers
38 views

Why Magento uiRegistry not list some UI Component?

Field Create Code $data = [ 'arguments' => [ 'data' => [ 'config' => [ 'component' => 'vendor_module/js/form/element/ui-select-...
1
vote
1answer
55 views

How to get product id in admin product edit page when using component grid

I am trying to get request param id when editing the page in my component dataprovider file. But getting always null value in it. I am rendering a grid in the product edit page and I need to filter my ...
0
votes
2answers
18 views

load region by country multi select in ui component magento 2

In the Ui-component of Magento 2, I see that we can do this to load region by country. <fieldset name="delivery_area" sortOrder="90"> <argument name="data&...
0
votes
0answers
26 views

Custom backend Modifier for custom product attribute with custom template for additionalInfo

I have a custom attribute and added a modifier to it, the custom attribute is a text field, the following is the modifyMeta function /** * {@inheritdoc} */ public function modifyMeta(...
0
votes
0answers
26 views

switcherConfig to hide fieldset magento 2

In the UI component of Magento 2, we have switcherConfig that can hide fields depending on drop-down options. But it can only hide field but not fieldset. Does anyone have suggestions on how to do ...
0
votes
1answer
34 views

Adding Dynamic Ui Components on select value change

I have a modal where I put a select ui component. I want than when the value of that select is changed I send an Ajax request to one of my controllers search in database an get a json response wich ...
0
votes
0answers
27 views

How to create Ui Component to manage related custom data in product edit

I am trying to create a section to manage custom data (like blog) associated with Product in Product Edit in Admin . It is similar to this function of the Magefan Blog extension: Display Post on ...
0
votes
1answer
35 views

Magento 2.4.x add datetime field in design configuration form using ui component

In Magento 2.4.x, How to add date time field in Content -> Design -> Config-> HtmlHead. I tried the below code it is showing in UI(design_config_form.xml) but it is not saving. <field ...
0
votes
0answers
16 views

Is it possible to import a UI Component view in a mixin?

I created a mixin that works, but when I try and import my view model into it, I get what seems to be a blank copy of that view model, not the one previously instantiated. I'd assumed when you ...
0
votes
0answers
15 views

How can I communicate between a grandchild UI component and its grandparent?

I have a UI form component, which contains a single child UI component that defines a region, which in turn contains multiple form field components. When one of the form fields is updated by the user, ...
0
votes
0answers
11 views

Use layout XML to conditionally hide UI element based on state of a UI model

I've added a new field UI component to an existing form, using layout XML, but I'd like that new field to be visible only under certain conditions. In my module's layout XML I can manually switch that ...
0
votes
0answers
6 views

Render content on the fly based on current quantity - Product View Page

So I have a product view page, I want to get the current quantity (e.g. onChange()) of the product and then pass it to the PHP class to perform some calculations. After calculation, I want to render ...
0
votes
0answers
17 views

Magento 2 custom admin grid get all categories

I want to create admin grid in custom module to to show category id,name and a custom attribute from catalog_category_entity table, how to do this ? I created a ui component but table is empty. any ...
0
votes
0answers
14 views

Admin UI component form send GET request

I am working with UI component form in Admin. I created form and after clicking on button it must load on next page Grid depends on choose values. Form is: <form xmlns:xsi="http://www.w3.org/...
0
votes
0answers
10 views

Magento2: How to show message if UI component Grid columns has no data

Magento2: How to show message if UI component Grid columns has no data: For example: Like product grid or cms pages grid in admin side or sales grid in admin side when there is no data or no cms pages ...
0
votes
0answers
12 views

How to link a custom button to a controller file in magento form

So I have a custom module where I have custom form and custom product grid section. So I have created some custom button on both pages through UI components. Now I want to link these buttons with a ...
0
votes
0answers
42 views

how do I override a lib/web/jquery/ui-modules/slider.js function with a mixin?

I'm having some issue making a mixin for slider.js, I have created my module with the following structure, . ├── composer.json ├── etc │   └── module.xml ├── registration.php └── view └── frontend ...
0
votes
0answers
21 views

Checkout js file called in custom ui component : M2

I want to called this "Magento_Checkout/js/model/resource-url-manager" file in my custom component . phtml file is: <?php $mycollection = $block->getMyCollection(); ?> <?php if ...
0
votes
0answers
7 views

Extent core js file in M2

JS File: Magento_Checkkout/js/model/resource-url-manager /** * @param {Object} quote * @return {*} */ getUrlForCartTotals: function (quote) { ...
0
votes
1answer
8 views

How to make column sorting false using UI component

make column sorting false using UI component in magento2
0
votes
0answers
8 views

How to hide uI component grid on frontend if there is no data

How to hide uI component grid on frontend if there is no data using block Thanks in advance
0
votes
3answers
155 views

Failed to load the component. : M2

phtml file: <?php $mycollection = $block->getMyCollection(); ?> <?php if ($mycollection) : ?> <div id="my-component" data-bind="scope:'myComponent'"> ...
1
vote
0answers
20 views

Magento 2.4: UI component paging with non-collection DataProvider

I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
0
votes
0answers
30 views

Use Magento 2 Product's Scope Switcher in custom module

My problem is, that I wan't to use scope switcher that is, for example, in product editor in the toolbar: It has a really nice ability to quickly switch between store views and usage default values ...
0
votes
1answer
33 views

Same min and max length character validation for UI Component form field

I have created a form using UI components. I am able to add min and max length field validation using the below code. <field name="sku"> <argument name="data" ...
0
votes
0answers
29 views

How to open another grid in popup on clicking button in Magento 2 admin UI form

I have created one UI grid. In this UI form, I have added one custom button, want to open another grid in popup when clicking that custom button
0
votes
2answers
59 views

Change label for Cart Price Rule

Tell me how can I remove the word "Discount" and parentheses from the label
0
votes
0answers
20 views

Ui component checbox value is 0 with js element

This is my component field <field name="is_campaign_plp" formElement="checkbox"> <argument name="data" xsi:type="array"> <...
0
votes
0answers
25 views

Magento 2 : Overriden UI Component in Custom Theme is not Working

Overriden UI Component in custom theme is not working. If I delete the existing/original ui_component file then only it is correctly loading from custom theme (from app/design/../..) Why this, How ...
0
votes
1answer
74 views

How to refresh or observe the Item is been added to cart using knockout JS UI component?

I have added a custom function which checks if the product has already been added in a quote or not. This works fine and shows button text accordingly. The only issue that it requires to refresh the ...
0
votes
0answers
17 views

UI Component : Error while exporting customer column data

I have renamed a custom customer attribute from 'email' to 'ship-email' for displaying in column. The code added in customer_listing.xml ui_component is as follow: <column name="...
0
votes
1answer
20 views

Product Grid show raw HTML code. Need Help about Ui Component

I join my custom table and add column to Product Grid as Ui_Component text. But it show data in raw code. How to make it show as HTML code? Ui_Component setting <columns name="product_columns&...
0
votes
2answers
96 views

Get selected country id and region name in class LayoutProcessor of custom module

I have a custom module app/code/Learning/FirstUnit/ and in that i have LayoutProcessor.php file in app/code/Learning/FirstUnit/Plugin. Please see the below code in LayoutProcessor.php <?php ...
0
votes
0answers
15 views

Magento 2 how to get DataRange filter value?

I have added a DataRange filter like this on a listing ui component: <column name="fecha_order" sortOrder="20"> <settings> <filter>...
0
votes
0answers
72 views

Magento 2 how to send filter data to Data Provider?

I have a listing ui component and I need to send parameters. this is my listing.xml <dataSource name="insert_listing_example_data_source" component="Magento_Ui/js/grid/provider"&...
0
votes
0answers
19 views

magento 2 ui components field in the same container not showing label

I have 3 checkboxes in the same container group, but just 1 label is being showed, and if I add label to container it gets mixed with the first checkbox, here is my code: <container name="...
0
votes
1answer
22 views

Magento 2 ui component disable fields based on checkbox admin panel

How can I disable some fields if a checkbox is enabled in admin panel? I'm using UI Components and Field component. I tried something like below but it's not working. 24 hours is a checkbox, if it's ...
0
votes
0answers
10 views

Magento 2 how to filter data on admin grid using insertListing?

Hi all I'm doing a report where I need to filter data. I have 2 uicomponents, 1 form and 1 listing/grid. Basically I need the form to filter the listing, but I don't know if I can accomplish this by ...
0
votes
0answers
12 views

Getting some Junk Value for billing and shipping address

In grid for shipping address I am getting value like this: На Ваш счет пришел денежный бонус http://maisbarnabes.com/cryptogods?keyword=kutsola123@gmail.com На Ваш счет пришел денежный бонус http://...
2
votes
1answer
43 views

How to upload media files in app/code/Vendor/Module/web/images directory?

How can I upload media files inside the "app/code/Vendor/Module/web/images" directory? I am creating a custom form page on the admin page. In that form, I have created an image uploader ...
0
votes
1answer
24 views

"validate-number-range" validation not working in Adminhtml form created using Ui Component

I am trying to implement the validate-number-range but it is not working. Please find the implementation below <field name="custom_sequence" sortOrder="40" formElement="...
0
votes
0answers
24 views

Cannot create field in customer_form.xml with source model Magento\Eav\Model\Entity\Attribute\Source\Table

I'm trying to create additional tabs in adminhtml > customer > edit and have done so successfully. However, I'm trying to "move" a field from the "Account Information" tab to ...
0
votes
1answer
120 views

Execute jQuery after foreach loop in knockout template [duplicate]

I am trying to execute some custom code after a knockout template has fully rendered. The template is Magento_Catalog/list/listing.html The relevant part of the template for this problem is: &...
0
votes
1answer
80 views

Magento 2.4 - Make uiComponent a slick slider / run jQuery after uiComponent finished rendering [duplicate]

I want to make the "recently viewed products" widget a Slideshow, using slick Slider. Here's what I did so far, although this might not be the correct approach: I copied template and ...

1
2 3 4 5
24